/**
 test put/get field opcodes
 exactly one of each get/put (8 total) and one integer compare branch
 per loop (and few aload_0)
 Compile without -O !!!!
*/

public class TestOpcodeField
{
	int sint;
	long slong;
	float sfloat;
	double sdouble;
	
	public TestOpcodeField() {}
	
	public static void main( String argv[] )
	{
		TestOpcodeField tof = new TestOpcodeField();
		tof.runTest();
	}
	
	private void runTest()
	{
		long startTime = System.currentTimeMillis();
		for( sint =0; sint < 5000000; sint++ )
		{
			slong = slong;
			sfloat = sfloat;
			sdouble = sdouble;
		}
		System.out.println(System.currentTimeMillis() - startTime);
	}
}
