/art/test/422-type-conversion/src/ |
H A D | Main.java | 17 // Note that $opt$ is a marker for the optimizing compiler to ensure 141 assertLongEquals(1L, $opt$ByteToLong((byte)1)); 142 assertLongEquals(0L, $opt$ByteToLong((byte)0)); 143 assertLongEquals(-1L, $opt$ByteToLong((byte)-1)); 144 assertLongEquals(51L, $opt$ByteToLong((byte)51)); 145 assertLongEquals(-51L, $opt$ByteToLong((byte)-51)); 146 assertLongEquals(127L, $opt$ByteToLong((byte)127)); // 2^7 - 1 147 assertLongEquals(-127L, $opt$ByteToLong((byte)-127)); // -(2^7 - 1) 148 assertLongEquals(-128L, $opt$ByteToLong((byte)-128)); // -(2^7) 152 assertLongEquals(1L, $opt [all...] |
/art/test/427-bitwise/src/ |
H A D | Main.java | 17 // Note that $opt$ is a marker for the optimizing compiler to ensure 45 expectEquals(1, $opt$And(5, 3)); 46 expectEquals(0, $opt$And(0, 0)); 47 expectEquals(0, $opt$And(0, 3)); 48 expectEquals(0, $opt$And(3, 0)); 49 expectEquals(1, $opt$And(1, -3)); 50 expectEquals(-12, $opt$And(-12, -3)); 52 expectEquals(1, $opt$AndLit8(1)); 53 expectEquals(0, $opt$AndLit8(0)); 54 expectEquals(0, $opt [all...] |
/art/test/403-optimizing-long/src/ |
H A D | Main.java | 17 // Note that $opt$ is a marker for the optimizing compiler to ensure 28 long l = $opt$ReturnLong(); 32 l = $opt$TakeOneLong1(42); 35 l = $opt$TakeOneLong2(0, 42); 38 l = $opt$TakeOneLong3(0, 1, 42); 41 l = $opt$TakeOneLong4(0, 1, 2, 42); 44 l = $opt$AddTwoLongs(42, 41); 47 l = $opt$SubTwoLongs(42, 41); 50 l = $opt$MakeCallsWithLongs1(); 53 l = $opt [all...] |
/art/test/426-monitor/src/ |
H A D | Main.java | 19 $opt$StaticSynchronizedMethod(); 20 new Main().$opt$InstanceSynchronizedMethod(); 21 $opt$SynchronizedBlock(); 22 new Main().$opt$DoubleInstanceSynchronized(); 23 $opt$DoubleStaticSynchronized(); 26 public static synchronized void $opt$StaticSynchronizedMethod() { 30 public synchronized void $opt$InstanceSynchronizedMethod() { 34 public static void $opt$SynchronizedBlock() { 41 public synchronized void $opt$DoubleInstanceSynchronized() { 47 public synchronized static void $opt [all...] |
/art/test/431-optimizing-arith-shifts/src/ |
H A D | Main.java | 41 expectEquals(48, $opt$ShlConst2(12)); 42 expectEquals(12, $opt$ShlConst0(12)); 43 expectEquals(-48, $opt$Shl(-12, 2)); 44 expectEquals(1024, $opt$Shl(32, 5)); 46 expectEquals(7, $opt$Shl(7, 0)); 47 expectEquals(14, $opt$Shl(7, 1)); 48 expectEquals(0, $opt$Shl(0, 30)); 50 expectEquals(1073741824L, $opt$Shl(1, 30)); 51 expectEquals(Integer.MIN_VALUE, $opt$Shl(1, 31)); // overflow 52 expectEquals(Integer.MIN_VALUE, $opt [all...] |
/art/test/422-instanceof/src/ |
H A D | Main.java | 32 public static boolean $opt$InstanceOfMain() { 36 public static boolean $opt$InstanceOfFinalClass() { 41 $opt$TestMain(); 42 $opt$TestFinalClass(); 45 public static void $opt$TestMain() { 47 assertTrue($opt$InstanceOfMain()); 49 assertFalse($opt$InstanceOfMain()); 51 assertTrue($opt$InstanceOfMain()); 53 assertFalse($opt$InstanceOfMain()); 56 public static void $opt [all...] |
/art/test/424-checkcast/src/ |
H A D | Main.java | 20 public static Object $opt$CheckCastMain() { 24 public static Object $opt$CheckCastFinalClass() { 29 $opt$TestMain(); 30 $opt$TestFinalClass(); 33 public static void $opt$TestMain() { 35 $opt$CheckCastMain(); 38 $opt$CheckCastMain(); 41 $opt$CheckCastMain(); 45 $opt$CheckCastMain(); 50 public static void $opt [all...] |
/art/test/421-exceptions/src/ |
H A D | Main.java | 18 public static void $opt$bar() { 20 $opt$foo(1); 22 $opt$foo(2); 24 $opt$foo(3); 26 $opt$foo(4); 35 $opt$runTest(); 37 $opt$runTest(); 40 public static void $opt$runTest() { 42 $opt$bar(); 44 $opt [all...] |
/art/test/419-long-parameter/src/ |
H A D | Main.java | 19 if ($opt$TestCallee(1.0, 2.0, 1L, 2L) != 1L) { 22 if ($opt$TestCaller() != 1L) { 27 public static long $opt$TestCallee(double a, double b, long c, long d) { 31 public static long $opt$TestCaller() { 32 return $opt$TestCallee(1.0, 2.0, 1L, 2L);
|
/art/test/402-optimizing-control-flow/src/ |
H A D | Main.java | 17 // Note that $opt$ is a marker for the optimizing compiler to ensure 29 int result = $opt$testIfEq1(42); 32 result = $opt$testIfEq2(42); 35 result = $opt$testWhileLoop(42); 38 result = $opt$testDoWhileLoop(42); 41 result = $opt$testForLoop(42); 44 result = $opt$testIfWithLocal(5); 48 static int $opt$testIfEq1(int a) { 56 static int $opt$testIfEq2(int a) { 64 static int $opt [all...] |
/art/test/418-const-string/src/ |
H A D | Main.java | 20 System.out.println($opt$ReturnHelloWorld()); 22 System.out.println($opt$ReturnHelloWorld()); 25 public static String $opt$ReturnHelloWorld() {
|
/art/test/436-rem-float/src/ |
H A D | Main.java | 25 expectApproxEquals(1.98F, $opt$Rem(1.98F, 2F)); 26 expectApproxEquals(0F, $opt$Rem(2F, 0.5F)); 27 expectApproxEquals(0.09999F, $opt$Rem(1.0F, 0.1F)); 28 expectApproxEquals(1.9F, $opt$Rem(6.5F, 2.3F)); 29 expectApproxEquals(0.48F, $opt$Rem(1.98F, 1.5F)); 30 expectApproxEquals(0.9999F, $opt$Rem(0.9999F, 1.222F)); 31 expectApproxEquals(0.9999F, $opt$Rem(0.9999F, 1.0001F)); 32 expectApproxEquals(-1.98F, $opt$Rem(-1.98F, 2F)); 33 expectApproxEquals(-0F, $opt$Rem(-2F, 0.5F)); 34 expectApproxEquals(-0.09999F, $opt [all...] |
/art/test/437-inline/src/ |
H A D | Main.java | 19 if ($opt$inline$returnInt() != 4) { 23 if ($opt$inline$returnParameter(42) != 42) { 27 if ($opt$inline$returnWide() != 12L) { 31 if ($opt$inline$returnWideParameter(0x100000001L) != 0x100000001L) { 35 if ($opt$inline$returnReferenceParameter(Main.class) != Main.class) { 39 $opt$inline$returnVoid(); 40 $opt$inline$returnVoidWithOneParameter(32); 42 if ($opt$inline$returnAdd(42, 1) != 43) { 46 if ($opt$inline$returnSub(42, 1) != 41) { 68 public static int $opt [all...] |
/art/test/415-optimizing-arith-neg/src/ |
H A D | Main.java | 17 // Note that $opt$ is a marker for the optimizing compiler to ensure 71 $opt$InplaceNegOneInt(1); 74 $opt$InplaceNegOneLong(1L); 81 assertEquals(-1, $opt$NegInt(1)); 82 assertEquals(1, $opt$NegInt(-1)); 83 assertEquals(0, $opt$NegInt(0)); 84 assertEquals(51, $opt$NegInt(-51)); 85 assertEquals(-51, $opt$NegInt(51)); 86 assertEquals(2147483647, $opt$NegInt(-2147483647)); // -(2^31 - 1) 87 assertEquals(-2147483647, $opt [all...] |
/art/test/414-optimizing-arith-sub/src/ |
H A D | Main.java | 17 // Note that $opt$ is a marker for the optimizing compiler to ensure 81 expectEquals(2, $opt$Sub(5, 3)); 82 expectEquals(0, $opt$Sub(0, 0)); 83 expectEquals(-3, $opt$Sub(0, 3)); 84 expectEquals(3, $opt$Sub(3, 0)); 85 expectEquals(4, $opt$Sub(1, -3)); 86 expectEquals(-9, $opt$Sub(-12, -3)); 87 expectEquals(134217724, $opt$Sub(134217729, 5)); // (2^27 + 1) - 5 91 expectEquals(2L, $opt$Sub(5L, 3L)); 92 expectEquals(0L, $opt [all...] |
/art/test/420-const-class/src/ |
H A D | Main.java | 40 System.out.println($opt$LoadThisClass()); 41 System.out.println($opt$LoadThisClass()); 43 System.out.println($opt$LoadOtherClass()); 44 System.out.println($opt$LoadOtherClass()); 46 System.out.println($opt$LoadSystemClass()); 47 System.out.println($opt$LoadSystemClass()); 49 $opt$ClinitCheckAndLoad(); 50 $opt$ClinitCheckAndLoad(); 52 $opt$LoadAndClinitCheck(); 53 $opt [all...] |
/art/test/428-optimizing-arith-rem/src/ |
H A D | Main.java | 25 expectEquals(2, $opt$RemConst(6)); 26 expectEquals(2, $opt$Rem(6, 4)); 27 expectEquals(2, $opt$Rem(6, -4)); 28 expectEquals(0, $opt$Rem(6, 3)); 29 expectEquals(0, $opt$Rem(6, -3)); 30 expectEquals(0, $opt$Rem(6, 1)); 31 expectEquals(0, $opt$Rem(6, -1)); 32 expectEquals(-1, $opt$Rem(-7, 3)); 33 expectEquals(-1, $opt$Rem(-7, -3)); 34 expectEquals(0, $opt [all...] |
/art/test/417-optimizing-arith-div/src/ |
H A D | Main.java | 17 // Note that $opt$ is a marker for the optimizing compiler to ensure 77 $opt$Div(value, 0); 82 $opt$DivZero(value); 90 $opt$Div(value, 0L); 95 $opt$DivZero(value); 113 expectEquals(2, $opt$DivConst(6)); 114 expectEquals(2, $opt$Div(6, 3)); 115 expectEquals(6, $opt$Div(6, 1)); 116 expectEquals(-2, $opt$Div(6, -3)); 117 expectEquals(1, $opt [all...] |
/art/test/411-optimizing-arith/src/ |
H A D | Main.java | 17 // Note that $opt$ is a marker for the optimizing compiler to ensure 87 expectEquals(15, $opt$Mul(5, 3)); 88 expectEquals(0, $opt$Mul(0, 0)); 89 expectEquals(0, $opt$Mul(0, 3)); 90 expectEquals(0, $opt$Mul(3, 0)); 91 expectEquals(-3, $opt$Mul(1, -3)); 92 expectEquals(36, $opt$Mul(-12, -3)); 93 expectEquals(33, $opt$Mul(1, 3) * 11); 94 expectEquals(671088645, $opt$Mul(134217729, 5)); // (2^27 + 1) * 5 98 expectEquals(15L, $opt [all...] |
/art/test/414-static-fields/src/ |
H A D | Main.java | 19 $opt$TestThisClassStaticField(); 20 $opt$TestOtherClassStaticField(); 21 $opt$TestAddThisClassStaticField(); 22 $opt$TestAddOtherClassStaticField(); 23 $opt$TestOtherClassWithClinitStaticField(); 24 $opt$TestAccess(); 33 static void $opt$TestThisClassStaticField() { 37 static void $opt$TestOtherClassStaticField() { 41 static void $opt$TestAddThisClassStaticField() { 46 static void $opt [all...] |
/art/test/404-optimizing-allocator/src/ |
H A D | Main.java | 17 // Note that $opt$reg$ is a marker for the optimizing compiler to ensure 23 expectEquals(4, $opt$reg$TestLostCopy()); 24 expectEquals(-10, $opt$reg$TestTwoLive()); 25 expectEquals(-20, $opt$reg$TestThreeLive()); 26 expectEquals(5, $opt$reg$TestFourLive()); 27 expectEquals(10, $opt$reg$TestMultipleLive()); 28 expectEquals(1, $opt$reg$TestWithBreakAndContinue()); 29 expectEquals(-15, $opt$reg$testSpillInIf(5, 6, 7)); 30 expectEquals(-567, $opt$reg$TestAgressiveLive1(1, 2, 3, 4, 5, 6, 7)); 31 expectEquals(-77, $opt [all...] |
/art/test/438-volatile/src/ |
H A D | Main.java | 31 public static long $opt$update(long a) { 36 public static double $opt$update(double a) { 42 if (value != $opt$update(value)) { 48 if (value != $opt$update(value)) {
|
/art/test/439-npe/src/ |
H A D | Main.java | 29 public static void $opt$setObjectField(Main m) { 33 public static void $opt$setIntField(Main m) { 37 public static void $opt$setFloatField(Main m) { 41 public static void $opt$setLongField(Main m) { 45 public static void $opt$setDoubleField(Main m) { 49 public static void $opt$setByteField(Main m) { 53 public static void $opt$setBooleanField(Main m) { 57 public static void $opt$setCharField(Main m) { 61 public static void $opt$setShortField(Main m) { 65 public static Object $opt [all...] |
/art/test/405-optimizing-long-allocator/src/ |
H A D | Main.java | 17 // Note that $opt$ is a marker for the optimizing compiler to ensure 23 expectEquals(4, $opt$TestLostCopy()); 24 expectEquals(-10, $opt$TestTwoLive()); 25 expectEquals(-20, $opt$TestThreeLive()); 26 expectEquals(5, $opt$TestFourLive()); 27 expectEquals(10, $opt$TestMultipleLive()); 28 expectEquals(1, $opt$TestWithBreakAndContinue()); 29 expectEquals(-15, $opt$testSpillInIf(5, 6, 7)); 30 expectEquals(-567, $opt$TestAgressiveLive1(1, 2, 3, 4, 5, 6, 7)); 31 expectEquals(-77, $opt [all...] |
/art/test/429-ssa-builder/src/ |
H A D | Main.java | 19 if (new Main().$opt$TestFloatPhi() != 33.0f) { 24 public float $opt$TestFloatPhi() {
|