Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 88) sorted by relevance

1234

/art/test/411-optimizing-arith/src/
DShiftsTest.java41 expectEquals(48, $opt$ShlIntConst2(12)); in testShlInt()
42 expectEquals(12, $opt$ShlIntConst0(12)); in testShlInt()
43 expectEquals(-48, $opt$ShlInt(-12, 2)); in testShlInt()
44 expectEquals(1024, $opt$ShlInt(32, 5)); in testShlInt()
46 expectEquals(7, $opt$ShlInt(7, 0)); in testShlInt()
47 expectEquals(14, $opt$ShlInt(7, 1)); in testShlInt()
48 expectEquals(0, $opt$ShlInt(0, 30)); in testShlInt()
50 expectEquals(1073741824L, $opt$ShlInt(1, 30)); in testShlInt()
51 expectEquals(Integer.MIN_VALUE, $opt$ShlInt(1, 31)); // overflow in testShlInt()
52 expectEquals(Integer.MIN_VALUE, $opt$ShlInt(1073741824, 1)); // overflow in testShlInt()
[all …]
DDivTest.java77 $opt$Div(value, 0); in expectDivisionByZero()
82 $opt$DivZero(value); in expectDivisionByZero()
90 $opt$Div(value, 0L); in expectDivisionByZero()
95 $opt$DivZero(value); in expectDivisionByZero()
109 expectEquals(2, $opt$DivConst(6)); in divInt()
110 expectEquals(2, $opt$Div(6, 3)); in divInt()
111 expectEquals(6, $opt$Div(6, 1)); in divInt()
112 expectEquals(-2, $opt$Div(6, -3)); in divInt()
113 expectEquals(1, $opt$Div(4, 3)); in divInt()
114 expectEquals(-1, $opt$Div(4, -3)); in divInt()
[all …]
DMulTest.java83 expectEquals(15, $opt$Mul(5, 3)); in mulInt()
84 expectEquals(0, $opt$Mul(0, 0)); in mulInt()
85 expectEquals(0, $opt$Mul(0, 3)); in mulInt()
86 expectEquals(0, $opt$Mul(3, 0)); in mulInt()
87 expectEquals(-3, $opt$Mul(1, -3)); in mulInt()
88 expectEquals(36, $opt$Mul(-12, -3)); in mulInt()
89 expectEquals(33, $opt$Mul(1, 3) * 11); in mulInt()
90 expectEquals(671088645, $opt$Mul(134217729, 5)); // (2^27 + 1) * 5 in mulInt()
94 expectEquals(15L, $opt$Mul(5L, 3L)); in mulLong()
95 expectEquals(0L, $opt$Mul(0L, 0L)); in mulLong()
[all …]
DSubTest.java81 expectEquals(2, $opt$Sub(5, 3)); in subInt()
82 expectEquals(0, $opt$Sub(0, 0)); in subInt()
83 expectEquals(-3, $opt$Sub(0, 3)); in subInt()
84 expectEquals(3, $opt$Sub(3, 0)); in subInt()
85 expectEquals(4, $opt$Sub(1, -3)); in subInt()
86 expectEquals(-9, $opt$Sub(-12, -3)); in subInt()
87 expectEquals(134217724, $opt$Sub(134217729, 5)); // (2^27 + 1) - 5 in subInt()
91 expectEquals(2L, $opt$Sub(5L, 3L)); in subLong()
92 expectEquals(0L, $opt$Sub(0L, 0L)); in subLong()
93 expectEquals(-3L, $opt$Sub(0L, 3L)); in subLong()
[all …]
DNegTest.java72 $opt$noinline$InplaceNegOneInt(1); in main()
75 $opt$noinline$InplaceNegOneLong(1L); in main()
82 assertEquals(-1, $opt$noinline$NegInt(1)); in negInt()
83 assertEquals(1, $opt$noinline$NegInt(-1)); in negInt()
84 assertEquals(0, $opt$noinline$NegInt(0)); in negInt()
85 assertEquals(51, $opt$noinline$NegInt(-51)); in negInt()
86 assertEquals(-51, $opt$noinline$NegInt(51)); in negInt()
87 assertEquals(2147483647, $opt$noinline$NegInt(-2147483647)); // -(2^31 - 1) in negInt()
88 assertEquals(-2147483647, $opt$noinline$NegInt(2147483647)); // 2^31 - 1 in negInt()
99 assertEquals(-2147483648, $opt$noinline$NegInt(-2147483648)); // -(2^31) in negInt()
[all …]
DRemTest.java25 expectEquals(2, $opt$RemConst(6)); in remInt()
26 expectEquals(2, $opt$Rem(6, 4)); in remInt()
27 expectEquals(2, $opt$Rem(6, -4)); in remInt()
28 expectEquals(0, $opt$Rem(6, 3)); in remInt()
29 expectEquals(0, $opt$Rem(6, -3)); in remInt()
30 expectEquals(0, $opt$Rem(6, 1)); in remInt()
31 expectEquals(0, $opt$Rem(6, -1)); in remInt()
32 expectEquals(-1, $opt$Rem(-7, 3)); in remInt()
33 expectEquals(-1, $opt$Rem(-7, -3)); in remInt()
34 expectEquals(0, $opt$Rem(6, 6)); in remInt()
[all …]
/art/test/427-bitwise/src/
DMain.java45 expectEquals(1, $opt$And(5, 3)); in andInt()
46 expectEquals(0, $opt$And(0, 0)); in andInt()
47 expectEquals(0, $opt$And(0, 3)); in andInt()
48 expectEquals(0, $opt$And(3, 0)); in andInt()
49 expectEquals(1, $opt$And(1, -3)); in andInt()
50 expectEquals(-12, $opt$And(-12, -3)); in andInt()
52 expectEquals(1, $opt$AndLit8(1)); in andInt()
53 expectEquals(0, $opt$AndLit8(0)); in andInt()
54 expectEquals(0, $opt$AndLit8(0)); in andInt()
55 expectEquals(3, $opt$AndLit8(3)); in andInt()
[all …]
/art/test/422-type-conversion/src/
DMain.java141 assertLongEquals(1L, $opt$noinline$ByteToLong((byte)1)); in byteToLong()
142 assertLongEquals(0L, $opt$noinline$ByteToLong((byte)0)); in byteToLong()
143 assertLongEquals(-1L, $opt$noinline$ByteToLong((byte)-1)); in byteToLong()
144 assertLongEquals(51L, $opt$noinline$ByteToLong((byte)51)); in byteToLong()
145 assertLongEquals(-51L, $opt$noinline$ByteToLong((byte)-51)); in byteToLong()
146 assertLongEquals(127L, $opt$noinline$ByteToLong((byte)127)); // 2^7 - 1 in byteToLong()
147 assertLongEquals(-127L, $opt$noinline$ByteToLong((byte)-127)); // -(2^7 - 1) in byteToLong()
148 assertLongEquals(-128L, $opt$noinline$ByteToLong((byte)-128)); // -(2^7) in byteToLong()
152 assertLongEquals(1L, $opt$noinline$ShortToLong((short)1)); in shortToLong()
153 assertLongEquals(0L, $opt$noinline$ShortToLong((short)0)); in shortToLong()
[all …]
/art/test/436-rem-float/src/
DMain.java25 expectApproxEquals(1.98F, $opt$Rem(1.98F, 2F)); in remFloat()
26 expectApproxEquals(0F, $opt$Rem(2F, 0.5F)); in remFloat()
27 expectApproxEquals(0.09999F, $opt$Rem(1.0F, 0.1F)); in remFloat()
28 expectApproxEquals(1.9F, $opt$Rem(6.5F, 2.3F)); in remFloat()
29 expectApproxEquals(0.48F, $opt$Rem(1.98F, 1.5F)); in remFloat()
30 expectApproxEquals(0.9999F, $opt$Rem(0.9999F, 1.222F)); in remFloat()
31 expectApproxEquals(0.9999F, $opt$Rem(0.9999F, 1.0001F)); in remFloat()
32 expectApproxEquals(-1.98F, $opt$Rem(-1.98F, 2F)); in remFloat()
33 expectApproxEquals(-0F, $opt$Rem(-2F, 0.5F)); in remFloat()
34 expectApproxEquals(-0.09999F, $opt$Rem(-1.0F, 0.1F)); in remFloat()
[all …]
/art/test/439-npe/
Dexpected-stdout.txt1 $opt$noinline$setObjectField
2 $opt$noinline$setIntField
3 $opt$noinline$setFloatField
4 $opt$noinline$setLongField
5 $opt$noinline$setDoubleField
6 $opt$noinline$setByteField
7 $opt$noinline$setBooleanField
8 $opt$noinline$setCharField
9 $opt$noinline$setShortField
10 $opt$noinline$getObjectField
[all …]
/art/test/403-optimizing-long/src/
DMain.java28 long l = $opt$ReturnLong(); in main()
32 l = $opt$TakeOneLong1(42); in main()
35 l = $opt$TakeOneLong2(0, 42); in main()
38 l = $opt$TakeOneLong3(0, 1, 42); in main()
41 l = $opt$TakeOneLong4(0, 1, 2, 42); in main()
44 l = $opt$AddTwoLongs(42, 41); in main()
47 l = $opt$SubTwoLongs(42, 41); in main()
50 l = $opt$MakeCallsWithLongs1(); in main()
53 l = $opt$MakeCallsWithLongs2(); in main()
56 l = $opt$SubTwoLongs(-600000000006L, -200000000002L); in main()
[all …]
/art/test/437-inline/src/
DMain.java19 if ($opt$inline$returnInt() != 4) { in main()
23 if ($opt$inline$returnParameter(42) != 42) { in main()
27 if ($opt$inline$returnWide() != 12L) { in main()
31 if ($opt$inline$returnWideParameter(0x100000001L) != 0x100000001L) { in main()
35 if ($opt$inline$returnReferenceParameter(Main.class) != Main.class) { in main()
39 $opt$inline$returnVoid(); in main()
40 $opt$inline$returnVoidWithOneParameter(32); in main()
42 if ($opt$inline$returnAdd(42, 1) != 43) { in main()
46 if ($opt$inline$returnSub(42, 1) != 41) { in main()
68 public static int $opt$inline$returnParameter(int a) { in $opt$inline$returnParameter()
[all …]
/art/test/424-checkcast/src/
DMain.java20 public static Object $opt$CheckCastMain() { in $opt$CheckCastMain()
24 public static Object $opt$CheckCastFinalClass() { in $opt$CheckCastFinalClass()
29 $opt$TestMain(); in main()
30 $opt$TestFinalClass(); in main()
33 public static void $opt$TestMain() { in $opt$TestMain()
35 $opt$CheckCastMain(); in $opt$TestMain()
38 $opt$CheckCastMain(); in $opt$TestMain()
41 $opt$CheckCastMain(); in $opt$TestMain()
45 $opt$CheckCastMain(); in $opt$TestMain()
50 public static void $opt$TestFinalClass() { in $opt$TestFinalClass()
[all …]
/art/test/421-exceptions/src/
DMain.java18 public static void $opt$bar() { in $opt$bar()
20 $opt$foo(1); in $opt$bar()
22 $opt$foo(2); in $opt$bar()
24 $opt$foo(3); in $opt$bar()
26 $opt$foo(4); in $opt$bar()
35 $opt$runTest(); in main()
37 $opt$runTest(); in main()
40 public static void $opt$runTest() { in $opt$runTest()
42 $opt$bar(); in $opt$runTest()
44 $opt$bar(); in $opt$runTest()
[all …]
/art/test/422-instanceof/src/
DMain.java32 public static boolean $opt$InstanceOfMain() { in $opt$InstanceOfMain()
36 public static boolean $opt$InstanceOfFinalClass() { in $opt$InstanceOfFinalClass()
41 $opt$TestMain(); in main()
42 $opt$TestFinalClass(); in main()
45 public static void $opt$TestMain() { in $opt$TestMain()
47 assertTrue($opt$InstanceOfMain()); in $opt$TestMain()
49 assertFalse($opt$InstanceOfMain()); in $opt$TestMain()
51 assertTrue($opt$InstanceOfMain()); in $opt$TestMain()
53 assertFalse($opt$InstanceOfMain()); in $opt$TestMain()
56 public static void $opt$TestFinalClass() { in $opt$TestFinalClass()
[all …]
/art/test/420-const-class/src/
DMain.java40 System.out.println($opt$LoadThisClass()); in main()
41 System.out.println($opt$LoadThisClass()); in main()
43 System.out.println($opt$LoadOtherClass()); in main()
44 System.out.println($opt$LoadOtherClass()); in main()
46 System.out.println($opt$LoadSystemClass()); in main()
47 System.out.println($opt$LoadSystemClass()); in main()
49 $opt$ClinitCheckAndLoad(); in main()
50 $opt$ClinitCheckAndLoad(); in main()
52 $opt$LoadAndClinitCheck(); in main()
53 $opt$LoadAndClinitCheck(); in main()
[all …]
/art/test/401-optimizing-compiler/src/
DMain.java24 $opt$TestInvokeStatic(); in main()
30 $opt$TestInvokeNew(); in main()
32 int result = $opt$TestInvokeIntParameter(42); in main()
38 $opt$TestInvokeObjectParameter(new Object()); in main()
41 Object b = $opt$TestInvokeObjectParameter(a); in main()
46 result = $opt$TestInvokeWith2Parameters(10, 9); in main()
51 result = $opt$TestInvokeWith3Parameters(10, 9, 1); in main()
56 result = $opt$TestInvokeWith5Parameters(10000, 1000, 100, 10, 1); in main()
61 result = $opt$TestInvokeWith7Parameters(100, 6, 5, 4, 3, 2, 1); in main()
67 if (m.$opt$TestThisParameter(m) != m) { in main()
[all …]
/art/test/405-optimizing-long-allocator/src/
DMain.java23 expectEquals(4, $opt$TestLostCopy()); in main()
24 expectEquals(-10, $opt$TestTwoLive()); in main()
25 expectEquals(-20, $opt$TestThreeLive()); in main()
26 expectEquals(5, $opt$TestFourLive()); in main()
27 expectEquals(10, $opt$TestMultipleLive()); in main()
28 expectEquals(1, $opt$TestWithBreakAndContinue()); in main()
29 expectEquals(-15, $opt$testSpillInIf(5, 6, 7)); in main()
30 expectEquals(-567, $opt$TestAgressiveLive1(1, 2, 3, 4, 5, 6, 7)); in main()
31 expectEquals(-77, $opt$TestAgressiveLive2(1, 2, 3, 4, 5, 6, 7)); in main()
33 expectEquals(-55834574850L, $opt$testSpillInIf(5, 6L << 32, 7L << 32)); in main()
[all …]
/art/test/439-npe/src/
DMain.java40 public static void $opt$noinline$setObjectField(Main m) { in $opt$noinline$setObjectField()
45 public static void $opt$noinline$setIntField(Main m) { in $opt$noinline$setIntField()
50 public static void $opt$noinline$setFloatField(Main m) { in $opt$noinline$setFloatField()
55 public static void $opt$noinline$setLongField(Main m) { in $opt$noinline$setLongField()
60 public static void $opt$noinline$setDoubleField(Main m) { in $opt$noinline$setDoubleField()
65 public static void $opt$noinline$setByteField(Main m) { in $opt$noinline$setByteField()
70 public static void $opt$noinline$setBooleanField(Main m) { in $opt$noinline$setBooleanField()
75 public static void $opt$noinline$setCharField(Main m) { in $opt$noinline$setCharField()
80 public static void $opt$noinline$setShortField(Main m) { in $opt$noinline$setShortField()
85 public static Object $opt$noinline$getObjectField(Main m) { in $opt$noinline$getObjectField()
[all …]
/art/test/402-optimizing-control-flow/src/
DMain.java29 int result = $opt$testIfEq1(42); in main()
32 result = $opt$testIfEq2(42); in main()
35 result = $opt$testWhileLoop(42); in main()
38 result = $opt$testDoWhileLoop(42); in main()
41 result = $opt$testForLoop(42); in main()
44 result = $opt$testIfWithLocal(5); in main()
48 static int $opt$testIfEq1(int a) { in $opt$testIfEq1()
56 static int $opt$testIfEq2(int a) { in $opt$testIfEq2()
64 static int $opt$testWhileLoop(int a) { in $opt$testWhileLoop()
69 static int $opt$testDoWhileLoop(int a) { in $opt$testDoWhileLoop()
[all …]
/art/test/426-monitor/src/
DMain.java19 $opt$StaticSynchronizedMethod(); in main()
20 new Main().$opt$InstanceSynchronizedMethod(); in main()
21 $opt$SynchronizedBlock(); in main()
22 new Main().$opt$DoubleInstanceSynchronized(); in main()
23 $opt$DoubleStaticSynchronized(); in main()
26 public static synchronized void $opt$StaticSynchronizedMethod() { in $opt$StaticSynchronizedMethod()
30 public synchronized void $opt$InstanceSynchronizedMethod() { in $opt$InstanceSynchronizedMethod()
34 public static void $opt$SynchronizedBlock() { in $opt$SynchronizedBlock()
41 public synchronized void $opt$DoubleInstanceSynchronized() { in $opt$DoubleInstanceSynchronized()
47 public synchronized static void $opt$DoubleStaticSynchronized() { in $opt$DoubleStaticSynchronized()
/art/test/564-checker-negbitwise/src/
DMain.java76 public static int $opt$noinline$notAnd(int base, int mask) { in $opt$noinline$notAnd()
125 public static long $opt$noinline$notOr(long base, long mask) { in $opt$noinline$notOr()
171 public static int $opt$noinline$notXor(int base, int mask) { in $opt$noinline$notXor()
206 public static int $opt$noinline$notAndConstant(int mask) { in $opt$noinline$notAndConstant()
261 public static int $opt$noinline$notAndMultipleUses(int base, int mask) { in $opt$noinline$notAndMultipleUses()
279 public static int $opt$noinline$deMorganOr(int a, int b) { in $opt$noinline$deMorganOr()
284 assertIntEquals(0xe, $opt$noinline$notAnd(0xf, 0x1)); in main()
285 assertLongEquals(~0x0, $opt$noinline$notOr(0xf, 0x1)); in main()
286 assertIntEquals(~0xe, $opt$noinline$notXor(0xf, 0x1)); in main()
287 assertIntEquals(0xe, $opt$noinline$notAndConstant(0x1)); in main()
[all …]
/art/test/536-checker-intrinsic-optimization/src/
DMain.java67 assertIntEquals(0, $opt$noinline$getStringLength("")); in main()
68 assertIntEquals(3, $opt$noinline$getStringLength("abc")); in main()
69 assertIntEquals(10, $opt$noinline$getStringLength("0123456789")); in main()
71 assertBooleanEquals(true, $opt$noinline$isStringEmpty("")); in main()
72 assertBooleanEquals(false, $opt$noinline$isStringEmpty("abc")); in main()
73 assertBooleanEquals(false, $opt$noinline$isStringEmpty("0123456789")); in main()
75 assertCharEquals('a', $opt$noinline$stringCharAt("a", 0)); in main()
76 assertCharEquals('a', $opt$noinline$stringCharAt("abc", 0)); in main()
77 assertCharEquals('b', $opt$noinline$stringCharAt("abc", 1)); in main()
78 assertCharEquals('c', $opt$noinline$stringCharAt("abc", 2)); in main()
[all …]
/art/test/404-optimizing-allocator/src/
DMain.java23 expectEquals(4, $opt$reg$TestLostCopy()); in main()
24 expectEquals(-10, $opt$reg$TestTwoLive()); in main()
25 expectEquals(-20, $opt$reg$TestThreeLive()); in main()
26 expectEquals(5, $opt$reg$TestFourLive()); in main()
27 expectEquals(10, $opt$reg$TestMultipleLive()); in main()
28 expectEquals(1, $opt$reg$TestWithBreakAndContinue()); in main()
29 expectEquals(-15, $opt$reg$testSpillInIf(5, 6, 7)); in main()
30 expectEquals(-567, $opt$reg$TestAgressiveLive1(1, 2, 3, 4, 5, 6, 7)); in main()
31 expectEquals(-77, $opt$reg$TestAgressiveLive2(1, 2, 3, 4, 5, 6, 7)); in main()
34 public static int $opt$reg$TestLostCopy() { in $opt$reg$TestLostCopy()
[all …]
/art/test/414-static-fields/src/
DMain.java19 $opt$TestThisClassStaticField(); in main()
20 $opt$TestOtherClassStaticField(); in main()
21 $opt$TestAddThisClassStaticField(); in main()
22 $opt$TestAddOtherClassStaticField(); in main()
23 $opt$TestOtherClassWithClinitStaticField(); in main()
24 $opt$TestAccess(); in main()
33 static void $opt$TestThisClassStaticField() { in $opt$TestThisClassStaticField()
37 static void $opt$TestOtherClassStaticField() { in $opt$TestOtherClassStaticField()
41 static void $opt$TestAddThisClassStaticField() { in $opt$TestAddThisClassStaticField()
46 static void $opt$TestAddOtherClassStaticField() { in $opt$TestAddOtherClassStaticField()
[all …]

1234