Home | History | Annotate | Download | only in src

Lines Matching refs:noinline

61   /// CHECK-START: long Main.$noinline$Add0(long) instruction_simplifier (before)
67 /// CHECK-START: long Main.$noinline$Add0(long) instruction_simplifier (after)
71 /// CHECK-START: long Main.$noinline$Add0(long) instruction_simplifier (after)
74 public static long $noinline$Add0(long arg) {
78 /// CHECK-START: int Main.$noinline$AddAddSubAddConst(int) instruction_simplifier (before)
90 /// CHECK-START: int Main.$noinline$AddAddSubAddConst(int) instruction_simplifier (after)
96 public static int $noinline$AddAddSubAddConst(int arg) {
100 /// CHECK-START: int Main.$noinline$AndAllOnes(int) instruction_simplifier (before)
106 /// CHECK-START: int Main.$noinline$AndAllOnes(int) instruction_simplifier (after)
110 /// CHECK-START: int Main.$noinline$AndAllOnes(int) instruction_simplifier (after)
113 public static int $noinline$AndAllOnes(int arg) {
117 /// CHECK-START: int Main.$noinline$UShr28And15(int) instruction_simplifier (before)
125 /// CHECK-START: int Main.$noinline$UShr28And15(int) instruction_simplifier (after)
131 /// CHECK-START: int Main.$noinline$UShr28And15(int) instruction_simplifier (after)
134 public static int $noinline$UShr28And15(int arg) {
138 /// CHECK-START: long Main.$noinline$UShr60And15(long) instruction_simplifier (before)
146 /// CHECK-START: long Main.$noinline$UShr60And15(long) instruction_simplifier (after)
152 /// CHECK-START: long Main.$noinline$UShr60And15(long) instruction_simplifier (after)
155 public static long $noinline$UShr60And15(long arg) {
159 /// CHECK-START: int Main.$noinline$UShr28And7(int) instruction_simplifier (before)
167 /// CHECK-START: int Main.$noinline$UShr28And7(int) instruction_simplifier (after)
175 public static int $noinline$UShr28And7(int arg) {
179 /// CHECK-START: long Main.$noinline$UShr60And7(long) instruction_simplifier (before)
187 /// CHECK-START: long Main.$noinline$UShr60And7(long) instruction_simplifier (after)
195 public static long $noinline$UShr60And7(long arg) {
199 /// CHECK-START: int Main.$noinline$Shr24And255(int) instruction_simplifier (before)
207 /// CHECK-START: int Main.$noinline$Shr24And255(int) instruction_simplifier (after)
213 /// CHECK-START: int Main.$noinline$Shr24And255(int) instruction_simplifier (after)
217 public static int $noinline$Shr24And255(int arg) {
221 /// CHECK-START: int Main.$noinline$Shr25And127(int) instruction_simplifier (before)
229 /// CHECK-START: int Main.$noinline$Shr25And127(int) instruction_simplifier (after)
235 /// CHECK-START: int Main.$noinline$Shr25And127(int) instruction_simplifier (after)
239 public static int $noinline$Shr25And127(int arg) {
243 /// CHECK-START: long Main.$noinline$Shr56And255(long) instruction_simplifier (before)
251 /// CHECK-START: long Main.$noinline$Shr56And255(long) instruction_simplifier (after)
257 /// CHECK-START: long Main.$noinline$Shr56And255(long) instruction_simplifier (after)
261 public static long $noinline$Shr56And255(long arg) {
265 /// CHECK-START: long Main.$noinline$Shr57And127(long) instruction_simplifier (before)
273 /// CHECK-START: long Main.$noinline$Shr57And127(long) instruction_simplifier (after)
279 /// CHECK-START: long Main.$noinline$Shr57And127(long) instruction_simplifier (after)
283 public static long $noinline$Shr57And127(long arg) {
287 /// CHECK-START: int Main.$noinline$Shr24And127(int) instruction_simplifier (before)
295 /// CHECK-START: int Main.$noinline$Shr24And127(int) instruction_simplifier (after)
303 public static int $noinline$Shr24And127(int arg) {
307 /// CHECK-START: long Main.$noinline$Shr56And127(long) instruction_simplifier (before)
315 /// CHECK-START: long Main.$noinline$Shr56And127(long) instruction_simplifier (after)
323 public static long $noinline$Shr56And127(long arg) {
327 /// CHECK-START: long Main.$noinline$Div1(long) instruction_simplifier (before)
333 /// CHECK-START: long Main.$noinline$Div1(long) instruction_simplifier (after)
337 /// CHECK-START: long Main.$noinline$Div1(long) instruction_simplifier (after)
340 public static long $noinline$Div1(long arg) {
344 /// CHECK-START: int Main.$noinline$DivN1(int) instruction_simplifier (before)
350 /// CHECK-START: int Main.$noinline$DivN1(int) instruction_simplifier (after)
355 /// CHECK-START: int Main.$noinline$DivN1(int) instruction_simplifier (after)
358 public static int $noinline$DivN1(int arg) {
362 /// CHECK-START: long Main.$noinline$Mul1(long) instruction_simplifier (before)
368 /// CHECK-START: long Main.$noinline$Mul1(long) instruction_simplifier (after)
372 /// CHECK-START: long Main.$noinline$Mul1(long) instruction_simplifier (after)
375 public static long $noinline$Mul1(long arg) {
379 /// CHECK-START: int Main.$noinline$MulN1(int) instruction_simplifier (before)
385 /// CHECK-START: int Main.$noinline$MulN1(int) instruction_simplifier (after)
390 /// CHECK-START: int Main.$noinline$MulN1(int) instruction_simplifier (after)
393 public static int $noinline$MulN1(int arg) {
397 /// CHECK-START: long Main.$noinline$MulPowerOfTwo128(long) instruction_simplifier (before)
403 /// CHECK-START: long Main.$noinline$MulPowerOfTwo128(long) instruction_simplifier (after)
409 /// CHECK-START: long Main.$noinline$MulPowerOfTwo128(long) instruction_simplifier (after)
412 public static long $noinline$MulPowerOfTwo128(long arg) {
416 /// CHECK-START: long Main.$noinline$MulMulMulConst(long) instruction_simplifier (before)
426 /// CHECK-START: long Main.$noinline$MulMulMulConst(long) instruction_simplifier (after)
432 public static long $noinline$MulMulMulConst(long arg) {
436 /// CHECK-START: int Main.$noinline$Or0(int) instruction_simplifier (before)
442 /// CHECK-START: int Main.$noinline$Or0(int) instruction_simplifier (after)
446 /// CHECK-START: int Main.$noinline$Or0(int) instruction_simplifier (after)
449 public static int $noinline$Or0(int arg) {
453 /// CHECK-START: long Main.$noinline$OrSame(long) instruction_simplifier (before)
458 /// CHECK-START: long Main.$noinline$OrSame(long) instruction_simplifier (after)
462 /// CHECK-START: long Main.$noinline$OrSame(long) instruction_simplifier (after)
465 public static long $noinline$OrSame(long arg) {
469 /// CHECK-START: int Main.$noinline$Shl0(int) instruction_simplifier (before)
475 /// CHECK-START: int Main.$noinline$Shl0(int) instruction_simplifier (after)
479 /// CHECK-START: int Main.$noinline$Shl0(int) instruction_simplifier (after)
482 public static int $noinline$Shl0(int arg) {
486 /// CHECK-START: long Main.$noinline$Shr0(long) instruction_simplifier (before)
492 /// CHECK-START: long Main.$noinline$Shr0(long) instruction_simplifier (after)
496 /// CHECK-START: long Main.$noinline$Shr0(long) instruction_simplifier (after)
499 public static long $noinline$Shr0(long arg) {
503 /// CHECK-START: long Main.$noinline$Shr64(long) instruction_simplifier (before)
509 /// CHECK-START: long Main.$noinline$Shr64(long) instruction_simplifier (after)
513 /// CHECK-START: long Main.$noinline$Shr64(long) instruction_simplifier (after)
516 public static long $noinline$Shr64(long arg) {
520 /// CHECK-START: long Main.$noinline$Sub0(long) instruction_simplifier (before)
526 /// CHECK-START: long Main.$noinline$Sub0(long) instruction_simplifier (after)
530 /// CHECK-START: long Main.$noinline$Sub0(long) instruction_simplifier (after)
533 public static long $noinline$Sub0(long arg) {
537 /// CHECK-START: int Main.$noinline$SubAliasNeg(int) instruction_simplifier (before)
543 /// CHECK-START: int Main.$noinline$SubAliasNeg(int) instruction_simplifier (after)
548 /// CHECK-START: int Main.$noinline$SubAliasNeg(int) instruction_simplifier (after)
551 public static int $noinline$SubAliasNeg(int arg) {
555 /// CHECK-START: int Main.$noinline$SubAddConst1(int) instruction_simplifier (before)
563 /// CHECK-START: int Main.$noinline$SubAddConst1(int) instruction_simplifier (after)
569 public static int $noinline$SubAddConst1(int arg) {
573 /// CHECK-START: int Main.$noinline$SubAddConst2(int) instruction_simplifier (before)
581 /// CHECK-START: int Main.$noinline$SubAddConst2(int) instruction_simplifier (after)
587 public static int $noinline$SubAddConst2(int arg) {
591 /// CHECK-START: long Main.$noinline$SubSubConst(long) instruction_simplifier (before)
599 /// CHECK-START: long Main.$noinline$SubSubConst(long) instruction_simplifier (after)
605 public static long $noinline$SubSubConst(long arg) {
609 /// CHECK-START: long Main.$noinline$UShr0(long) instruction_simplifier (before)
615 /// CHECK-START: long Main.$noinline$UShr0(long) instruction_simplifier (after)
619 /// CHECK-START: long Main.$noinline$UShr0(long) instruction_simplifier (after)
622 public static long $noinline$UShr0(long arg) {
626 /// CHECK-START: int Main.$noinline$Xor0(int) instruction_simplifier (before)
632 /// CHECK-START: int Main.$noinline$Xor0(int) instruction_simplifier (after)
636 /// CHECK-START: int Main.$noinline$Xor0(int) instruction_simplifier (after)
639 public static int $noinline$Xor0(int arg) {
650 /// CHECK-START: int Main.$noinline$AddNegs1(int, int) instruction_simplifier (before)
658 /// CHECK-START: int Main.$noinline$AddNegs1(int, int) instruction_simplifier (after)
666 public static int $noinline$AddNegs1(int arg1, int arg2) {
681 /// CHECK-START: int Main.$noinline$AddNegs2(int, int) instruction_simplifier (before)
691 /// CHECK-START: int Main.$noinline$AddNegs2(int, int) instruction_simplifier (after)
702 /// CHECK-START: int Main.$noinline$AddNegs2(int, int) GVN (after)
711 public static int $noinline$AddNegs2(int arg1, int arg2) {
725 /// CHECK-START: long Main.$noinline$AddNegs3(long, long) instruction_simplifier (before)
737 /// CHECK-START: long Main.$noinline$AddNegs3(long, long) instruction_simplifier (after)
750 public static long $noinline$AddNegs3(long arg1, long arg2) {
766 /// CHECK-START: long Main.$noinline$AddNeg1(long, long) instruction_simplifier (before)
773 /// CHECK-START: long Main.$noinline$AddNeg1(long, long) instruction_simplifier (after)
779 /// CHECK-START: long Main.$noinline$AddNeg1(long, long) instruction_simplifier (after)
783 public static long $noinline$AddNeg1(long arg1, long arg2) {
796 /// CHECK-START: long Main.$noinline$AddNeg2(long, long) instruction_simplifier (before)
805 /// CHECK-START: long Main.$noinline$AddNeg2(long, long) instruction_simplifier (after)
814 /// CHECK-START: long Main.$noinline$AddNeg2(long, long) instruction_simplifier (after)
817 public static long $noinline$AddNeg2(long arg1, long arg2) {
827 /// CHECK-START: long Main.$noinline$NegNeg1(long) instruction_simplifier (before)
833 /// CHECK-START: long Main.$noinline$NegNeg1(long) instruction_simplifier (after)
837 /// CHECK-START: long Main.$noinline$NegNeg1(long) instruction_simplifier (after)
840 public static long $noinline$NegNeg1(long arg) {
851 /// CHECK-START: int Main.$noinline$NegNeg2(int) instruction_simplifier (before)
858 /// CHECK-START: int Main.$noinline$NegNeg2(int) instruction_simplifier (after)
863 /// CHECK-START: int Main.$noinline$NegNeg2(int) instruction_simplifier (after)
867 /// CHECK-START: int Main.$noinline$NegNeg2(int) constant_folding$after_gvn (after)
873 public static int $noinline$NegNeg2(int arg) {
885 /// CHECK-START: long Main.$noinline$NegNeg3(long) instruction_simplifier (before)
892 /// CHECK-START: long Main.$noinline$NegNeg3(long) instruction_simplifier (after)
896 /// CHECK-START: long Main.$noinline$NegNeg3(long) instruction_simplifier (after)
900 public static long $noinline$NegNeg3(long arg) {
910 /// CHECK-START: int Main.$noinline$NegSub1(int, int) instruction_simplifier (before)
917 /// CHECK-START: int Main.$noinline$NegSub1(int, int) instruction_simplifier (after)
923 /// CHECK-START: int Main.$noinline$NegSub1(int, int) instruction_simplifier (after)
926 public static int $noinline$NegSub1(int arg1, int arg2) {
940 /// CHECK-START: int Main.$noinline$NegSub2(int, int) instruction_simplifier (before)
949 /// CHECK-START: int Main.$noinline$NegSub2(int, int) instruction_simplifier (after)
958 public static int $noinline$NegSub2(int arg1, int arg2) {
968 /// CHECK-START: int Main.$noinline$SubNeg1(int, int) instruction_simplifier (before)
975 /// CHECK-START: int Main.$noinline$SubNeg1(int, int) instruction_simplifier (after)
982 /// CHECK-START: int Main.$noinline$SubNeg1(int, int) instruction_simplifier (after)
985 public static int $noinline$SubNeg1(int arg1, int arg2) {
999 /// CHECK-START: int Main.$noinline$SubNeg2(int, int) instruction_simplifier (before)
1008 /// CHECK-START: int Main.$noinline$SubNeg2(int, int) instruction_simplifier (after)
1017 /// CHECK-START: int Main.$noinline$SubNeg2(int, int) instruction_simplifier (after)
1020 public static int $noinline$SubNeg2(int arg1, int arg2) {
1032 /// CHECK-START: long Main.$noinline$SubNeg3(long, long) instruction_simplifier (before)
1043 /// CHECK-START: long Main.$noinline$SubNeg3(long, long) instruction_simplifier (after)
1055 public static long $noinline$SubNeg3(long arg1, long arg2) {
1064 /// CHECK-START: boolean Main.$noinline$EqualBoolVsIntConst(boolean) dead_code_elimination$after_inlining (before)
1076 /// CHECK-START: boolean Main.$noinline$EqualBoolVsIntConst(boolean) dead_code_elimination$after_inlining (after)
1080 public static boolean $noinline$EqualBoolVsIntConst(boolean arg) {
1090 /// CHECK-START: boolean Main.$noinline$NotEqualBoolVsIntConst(boolean) instruction_simplifier$after_inlining (before)
1102 /// CHECK-START: boolean Main.$noinline$NotEqualBoolVsIntConst(boolean) dead_code_elimination$after_inlining (after)
1106 public static boolean $noinline$NotEqualBoolVsIntConst(boolean arg) {
1112 /// CHECK-START: float Main.$noinline$Div2(float) instruction_simplifier (before)
1118 /// CHECK-START: float Main.$noinline$Div2(float) instruction_simplifier (after)
1124 /// CHECK-START: float Main.$noinline$Div2(float) instruction_simplifier (after)
1127 public static float $noinline$Div2(float arg) {
1131 /// CHECK-START: double Main.$noinline$Div2(double) instruction_simplifier (before)
1137 /// CHECK-START: double Main.$noinline$Div2(double) instruction_simplifier (after)
1143 /// CHECK-START: double Main.$noinline$Div2(double) instruction_simplifier (after)
1145 public static double $noinline$Div2(double arg) {
1149 /// CHECK-START: float Main.$noinline$DivMP25(float) instruction_simplifier (before)
1155 /// CHECK-START: float Main.$noinline$DivMP25(float) instruction_simplifier (after)
1161 /// CHECK-START: float Main.$noinline$DivMP25(float) instruction_simplifier (after)
1164 public static float $noinline$DivMP25(float arg) {
1168 /// CHECK-START: double Main.$noinline$DivMP25(double) instruction_simplifier (before)
1174 /// CHECK-START: double Main.$noinline$DivMP25(double) instruction_simplifier (after)
1180 /// CHECK-START: double Main.$noinline$DivMP25(double) instruction_simplifier (after)
1182 public static double $noinline$DivMP25(double arg) {
1190 /// CHECK-START: int Main.$noinline$mulPow2Plus1(int) instruction_simplifier (before)
1195 /// CHECK-START: int Main.$noinline$mulPow2Plus1(int) instruction_simplifier (after)
1201 public static int $noinline$mulPow2Plus1(int arg) {
1209 /// CHECK-START: long Main.$noinline$mulPow2Minus1(long) instruction_simplifier (before)
1214 /// CHECK-START: long Main.$noinline$mulPow2Minus1(long) instruction_simplifier (after)
1220 public static long $noinline$mulPow2Minus1(long arg) {
1224 /// CHECK-START: int Main.$noinline$booleanFieldNotEqualOne() instruction_simplifier$after_inlining (before)
1234 /// CHECK-START: int Main.$noinline$booleanFieldNotEqualOne() select_generator (after)
1241 public static int $noinline$booleanFieldNotEqualOne() {
1245 /// CHECK-START: int Main.$noinline$booleanFieldEqualZero() instruction_simplifier$after_inlining (before)
1255 /// CHECK-START: int Main.$noinline$booleanFieldEqualZero() select_generator (after)
1262 public static int $noinline$booleanFieldEqualZero() {
1266 /// CHECK-START: int Main.$noinline$intConditionNotEqualOne(int) instruction_simplifier$after_inlining (before)
1281 /// CHECK-START: int Main.$noinline$intConditionNotEqualOne(int) select_generator (after)
1292 public static int $noinline$intConditionNotEqualOne(int i) {
1296 /// CHECK-START: int Main.$noinline$intConditionEqualZero(int) instruction_simplifier$after_inlining (before)
1311 /// CHECK-START: int Main.$noinline$intConditionEqualZero(int) select_generator (after)
1322 public static int $noinline$intConditionEqualZero(int i) {
1328 /// CHECK-START: int Main.$noinline$floatConditionNotEqualOne(float) builder (after)
1331 /// CHECK-START: int Main.$noinline$floatConditionNotEqualOne(float) instruction_simplifier$before_codegen (after)
1340 public static int $noinline$floatConditionNotEqualOne(float f) {
1344 /// CHECK-START: int Main.$noinline$doubleConditionEqualZero(double) builder (after)
1347 /// CHECK-START: int Main.$noinline$doubleConditionEqualZero(double) instruction_simplifier$before_codegen (after)
1356 public static int $noinline$doubleConditionEqualZero(double d) {
1360 /// CHECK-START: int Main.$noinline$intToDoubleToInt(int) instruction_simplifier (before)
1366 /// CHECK-START: int Main.$noinline$intToDoubleToInt(int) instruction_simplifier (after)
1370 /// CHECK-START: int Main.$noinline$intToDoubleToInt(int) instruction_simplifier (after)
1373 public static int $noinline$intToDoubleToInt(int value) {
1378 /// CHECK-START: java.lang.String Main.$noinline$intToDoubleToIntPrint(int) instruction_simplifier (before)
1383 /// CHECK-START: java.lang.String Main.$noinline$intToDoubleToIntPrint(int) instruction_simplifier (after)
1387 /// CHECK-START: java.lang.String Main.$noinline$intToDoubleToIntPrint(int) instruction_simplifier (after)
1391 public static String $noinline$intToDoubleToIntPrint(int value) {
1399 /// CHECK-START: int Main.$noinline$byteToDoubleToInt(byte) instruction_simplifier (before)
1405 /// CHECK-START: int Main.$noinline$byteToDoubleToInt(byte) instruction_simplifier (after)
1409 /// CHECK-START: int Main.$noinline$byteToDoubleToInt(byte) instruction_simplifier (after)
1412 public static int $noinline$byteToDoubleToInt(byte value) {
1417 /// CHECK-START: int Main.$noinline$floatToDoubleToInt(float) instruction_simplifier (before)
1423 /// CHECK-START: int Main.$noinline$floatToDoubleToInt(float) instruction_simplifier (after)
1428 /// CHECK-START: int Main.$noinline$floatToDoubleToInt(float) instruction_simplifier (after)
1432 public static int $noinline$floatToDoubleToInt(float value) {
1437 /// CHECK-START: java.lang.String Main.$noinline$floatToDoubleToIntPrint(float) instruction_simplifier (before)
1442 /// CHECK-START: java.lang.String Main.$noinline$floatToDoubleToIntPrint(float) instruction_simplifier (after)
1447 public static String $noinline$floatToDoubleToIntPrint(float value) {
1455 /// CHECK-START: short Main.$noinline$byteToDoubleToShort(byte) instruction_simplifier (before)
1462 /// CHECK-START: short Main.$noinline$byteToDoubleToShort(byte) instruction_simplifier (after)
1466 /// CHECK-START: short Main.$noinline$byteToDoubleToShort(byte) instruction_simplifier (after)
1469 public static short $noinline$byteToDoubleToShort(byte value) {
1476 /// CHECK-START: short Main.$noinline$charToDoubleToShort(char) instruction_simplifier (before)
1483 /// CHECK-START: short Main.$noinline$charToDoubleToShort(char) instruction_simplifier (after)
1488 /// CHECK-START: short Main.$noinline$charToDoubleToShort(char) instruction_simplifier (after)
1492 public static short $noinline$charToDoubleToShort(char value) {
1499 /// CHECK-START: short Main.$noinline$floatToIntToShort(float) instruction_simplifier (before)
1505 /// CHECK-START: short Main.$noinline$floatToIntToShort(float) instruction_simplifier (after)
1511 public static short $noinline$floatToIntToShort(float value) {
1516 /// CHECK-START: int Main.$noinline$intToFloatToInt(int) instruction_simplifier (before)
1522 /// CHECK-START: int Main.$noinline$intToFloatToInt(int) instruction_simplifier (after)
1528 public static int $noinline$intToFloatToInt(int value) {
1533 /// CHECK-START: double Main.$noinline$longToIntToDouble(long) instruction_simplifier (before)
1539 /// CHECK-START: double Main.$noinline$longToIntToDouble(long) instruction_simplifier (after)
1545 public static double $noinline$longToIntToDouble(long value) {
1550 /// CHECK-START: long Main.$noinline$longToIntToLong(long) instruction_simplifier (before)
1556 /// CHECK-START: long Main.$noinline$longToIntToLong(long) instruction_simplifier (after)
1562 public static long $noinline$longToIntToLong(long value) {
1567 /// CHECK-START: short Main.$noinline$shortToCharToShort(short) instruction_simplifier (before)
1573 /// CHECK-START: short Main.$noinline$shortToCharToShort(short) instruction_simplifier (after)
1577 public static short $noinline$shortToCharToShort(short value) {
1582 /// CHECK-START: int Main.$noinline$shortToLongToInt(short) instruction_simplifier (before)
1588 /// CHECK-START: int Main.$noinline$shortToLongToInt(short) instruction_simplifier (after)
1592 public static int $noinline$shortToLongToInt(short value) {
1597 /// CHECK-START: byte Main.$noinline$shortToCharToByte(short) instruction_simplifier (before)
1603 /// CHECK-START: byte Main.$noinline$shortToCharToByte(short) instruction_simplifier (after)
1608 public static byte $noinline$shortToCharToByte(short value) {
1614 /// CHECK-START: java.lang.String Main.$noinline$shortToCharToBytePrint(short) instruction_simplifier (before)
1619 /// CHECK-START: java.lang.String Main.$noinline$shortToCharToBytePrint(short) instruction_simplifier (after)
1624 public static String $noinline$shortToCharToBytePrint(short value) {
1632 /// CHECK-START: long Main.$noinline$intAndSmallLongConstant(int) instruction_simplifier (before)
1639 /// CHECK-START: long Main.$noinline$intAndSmallLongConstant(int) instruction_simplifier (after)
1646 public static long $noinline$intAndSmallLongConstant(int value) {
1650 /// CHECK-START: long Main.$noinline$intAndLargeLongConstant(int) instruction_simplifier (before)
1657 /// CHECK-START: long Main.$noinline$intAndLargeLongConstant(int) instruction_simplifier (after)
1664 public static long $noinline$intAndLargeLongConstant(int value) {
1668 /// CHECK-START: long Main.$noinline$intShr28And15L(int) instruction_simplifier (before)
1677 /// CHECK-START: long Main.$noinline$intShr28And15L(int) instruction_simplifier (after)
1684 public static long $noinline$intShr28And15L(int value) {
1688 /// CHECK-START: byte Main.$noinline$longAnd0xffToByte(long) instruction_simplifier (before)
1696 /// CHECK-START: byte Main.$noinline$longAnd0xffToByte(long) instruction_simplifier (after)
1701 /// CHECK-START: byte Main.$noinline$longAnd0xffToByte(long) instruction_simplifier (after)
1704 public static byte $noinline$longAnd0xffToByte(long value) {
1708 /// CHECK-START: char Main.$noinline$intAnd0x1ffffToChar(int) instruction_simplifier (before)
1715 /// CHECK-START: char Main.$noinline$intAnd0x1ffffToChar(int) instruction_simplifier (after)
1720 /// CHECK-START: char Main.$noinline$intAnd0x1ffffToChar(int) instruction_simplifier (after)
1723 public static char $noinline$intAnd0x1ffffToChar(int value) {
1728 /// CHECK-START: short Main.$noinline$intAnd0x17fffToShort(int) instruction_simplifier (before)
1735 /// CHECK-START: short Main.$noinline$intAnd0x17fffToShort(int) instruction_simplifier (after)
1742 public static short $noinline$intAnd0x17fffToShort(int value) {
1747 /// CHECK-START: double Main.$noinline$shortAnd0xffffToShortToDouble(short) instruction_simplifier (before)
1755 /// CHECK-START: double Main.$noinline$shortAnd0xffffToShortToDouble(short) instruction_simplifier (after)
1760 public static double $noinline$shortAnd0xffffToShortToDouble(short value) {
1765 noinline$intReverseCondition(int) instruction_simplifier (before)
1770 /// CHECK-START: int Main.$noinline$intReverseCondition(int) instruction_simplifier (after)
1775 public static int $noinline$intReverseCondition(int i) {
1779 /// CHECK-START: int Main.$noinline$intReverseConditionNaN(int) instruction_simplifier (before)
1784 /// CHECK-START: int Main.$noinline$intReverseConditionNaN(int) instruction_simplifier (after)
1789 public static int $noinline$intReverseConditionNaN(int i) {
1793 public static int $noinline$runSmaliTest(String name, boolean input) {
1803 public static boolean $noinline$runSmaliTest2Boolean(String name, boolean input) {
1813 public static int $noinline$runSmaliTestInt(String postfix, String name, int arg) {
1823 public static int $noinline$runSmaliTestInt(String name, int arg) {
1824 return $noinline$runSmaliTestInt("", name, arg);
1827 public static long $noinline$runSmaliTest2Long(String name, long arg) {
1837 /// CHECK-START: int Main.$noinline$intUnnecessaryShiftMasking(int, int) instruction_simplifier (before)
1845 /// CHECK-START: int Main.$noinline$intUnnecessaryShiftMasking(int, int) instruction_simplifier (after)
1851 public static int $noinline$intUnnecessaryShiftMasking(int value, int shift) {
1855 /// CHECK-START: long Main.$noinline$longUnnecessaryShiftMasking(long, int) instruction_simplifier (before)
1863 /// CHECK-START: long Main.$noinline$longUnnecessaryShiftMasking(long, int) instruction_simplifier (after)
1869 public static long $noinline$longUnnecessaryShiftMasking(long value, int shift) {
1873 /// CHECK-START: int Main.$noinline$intUnnecessaryWiderShiftMasking(int, int) instruction_simplifier (before)
1881 /// CHECK-START: int Main.$noinline$intUnnecessaryWiderShiftMasking(int, int) instruction_simplifier (after)
1887 public static int $noinline$intUnnecessaryWiderShiftMasking(int value, int shift) {
1891 /// CHECK-START: long Main.$noinline$longSmallerShiftMasking(long, int) instruction_simplifier (before)
1899 /// CHECK-START: long Main.$noinline$longSmallerShiftMasking(long, int) instruction_simplifier (after)
1907 public static long $noinline$longSmallerShiftMasking(long value, int shift) {
1911 /// CHECK-START: int Main.$noinline$otherUseOfUnnecessaryShiftMasking(int, int) instruction_simplifier (before)
1920 /// CHECK-START: int Main.$noinline$otherUseOfUnnecessaryShiftMasking(int, int) instruction_simplifier (after)
1929 public static int $noinline$otherUseOfUnnecessaryShiftMasking(int value, int shift) {
1934 /// CHECK-START: int Main.$noinline$intUnnecessaryShiftModifications(int, int) instruction_simplifier (before)
1952 /// CHECK-START: int Main.$noinline$intUnnecessaryShiftModifications(int, int) instruction_simplifier (after)
1961 public static int $noinline$intUnnecessaryShiftModifications(int value, int shift) {
1970 /// CHECK-START: int Main.$noinline$intNecessaryShiftModifications(int, int) instruction_simplifier (before)
1986 /// CHECK-START: int Main.$noinline$intNecessaryShiftModifications(int, int) instruction_simplifier (after)
2002 public static int $noinline$intNecessaryShiftModifications(int value, int shift) {
2010 /// CHECK-START: int Main.$noinline$intAddSubSimplifyArg1(int, int) instruction_simplifier (before)
2017 /// CHECK-START: int Main.$noinline$intAddSubSimplifyArg1(int, int) instruction_simplifier (after)
2023 public static int $noinline$intAddSubSimplifyArg1(int x, int y) {
2028 /// CHECK-START: int Main.$noinline$intAddSubSimplifyArg2(int, int) instruction_simplifier (before)
2035 /// CHECK-START: int Main.$noinline$intAddSubSimplifyArg2(int, int) instruction_simplifier (after)
2041 public static int $noinline$intAddSubSimplifyArg2(int x, int y) {
2046 /// CHECK-START: int Main.$noinline$intSubAddSimplifyLeft(int, int) instruction_simplifier (before)
2053 /// CHECK-START: int Main.$noinline$intSubAddSimplifyLeft(int, int) instruction_simplifier (after)
2059 public static int $noinline$intSubAddSimplifyLeft(int x, int y) {
2064 /// CHECK-START: int Main.$noinline$intSubAddSimplifyRight(int, int) instruction_simplifier (before)
2071 /// CHECK-START: int Main.$noinline$intSubAddSimplifyRight(int, int) instruction_simplifier (after)
2077 public static int $noinline$intSubAddSimplifyRight(int x, int y) {
2082 /// CHECK-START: float Main.$noinline$floatAddSubSimplifyArg1(float, float) instruction_simplifier (before)
2089 /// CHECK-START: float Main.$noinline$floatAddSubSimplifyArg1(float, float) instruction_simplifier (after)
2096 public static float $noinline$floatAddSubSimplifyArg1(float x, float y) {
2101 /// CHECK-START: float Main.$noinline$floatAddSubSimplifyArg2(float, float) instruction_simplifier (before)
2108 /// CHECK-START: float Main.$noinline$floatAddSubSimplifyArg2(float, float) instruction_simplifier (after)
2115 public static float $noinline$floatAddSubSimplifyArg2(float x, float y) {
2120 /// CHECK-START: float Main.$noinline$floatSubAddSimplifyLeft(float, float) instruction_simplifier (before)
2127 /// CHECK-START: float Main.$noinline$floatSubAddSimplifyLeft(float, float) instruction_simplifier (after)
2134 public static float $noinline$floatSubAddSimplifyLeft(float x, float y) {
2139 /// CHECK-START: float Main.$noinline$floatSubAddSimplifyRight(float, float) instruction_simplifier (before)
2146 /// CHECK-START: float Main.$noinline$floatSubAddSimplifyRight(float, float) instruction_simplifier (after)
2153 public static float $noinline$floatSubAddSimplifyRight(float x, float y) {
2158 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteField(Main) instruction_simplifier (before)
2164 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteField(Main) instruction_simplifier (after)
2168 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteField(Main) instruction_simplifier (after)
2171 public static int $noinline$getUint8FromInstanceByteField(Main m) {
2175 /// CHECK-START: int Main.$noinline$getUint8FromStaticByteField() instruction_simplifier (before)
2181 /// CHECK-START: int Main.$noinline$getUint8FromStaticByteField() instruction_simplifier (after)
2185 /// CHECK-START: int Main.$noinline$getUint8FromStaticByteField() instruction_simplifier (after)
2188 public static int $noinline$getUint8FromStaticByteField() {
2192 /// CHECK-START: int Main.$noinline$getUint8FromByteArray(byte[]) instruction_simplifier (before)
2198 /// CHECK-START: int Main.$noinline$getUint8FromByteArray(byte[]) instruction_simplifier (after)
2202 /// CHECK-START: int Main.$noinline$getUint8FromByteArray(byte[]) instruction_simplifier (after)
2205 public static int $noinline$getUint8FromByteArray(byte[] a) {
2209 /// CHECK-START: int Main.$noinline$getUint16FromInstanceShortField(Main) instruction_simplifier (before)
2215 /// CHECK-START: int Main.$noinline$getUint16FromInstanceShortField(Main) instruction_simplifier (after)
2219 /// CHECK-START: int Main.$noinline$getUint16FromInstanceShortField(Main) instruction_simplifier (after)
2222 public static int $noinline$getUint16FromInstanceShortField(Main m) {
2226 /// CHECK-START: int Main.$noinline$getUint16FromStaticShortField() instruction_simplifier (before)
2232 /// CHECK-START: int Main.$noinline$getUint16FromStaticShortField() instruction_simplifier (after)
2236 /// CHECK-START: int Main.$noinline$getUint16FromStaticShortField() instruction_simplifier (after)
2239 public static int $noinline$getUint16FromStaticShortField() {
2243 /// CHECK-START: int Main.$noinline$getUint16FromShortArray(short[]) instruction_simplifier (before)
2249 /// CHECK-START: int Main.$noinline$getUint16FromShortArray(short[]) instruction_simplifier (after)
2253 /// CHECK-START: int Main.$noinline$getUint16FromShortArray(short[]) instruction_simplifier (after)
2256 public static int $noinline$getUint16FromShortArray(short[] a) {
2260 /// CHECK-START: int Main.$noinline$getInt16FromInstanceCharField(Main) instruction_simplifier (before)
2265 /// CHECK-START: int Main.$noinline$getInt16FromInstanceCharField(Main) instruction_simplifier (after)
2269 /// CHECK-START: int Main.$noinline$getInt16FromInstanceCharField(Main) instruction_simplifier (after)
2272 public static int $noinline$getInt16FromInstanceCharField(Main m) {
2276 /// CHECK-START: int Main.$noinline$getInt16FromStaticCharField() instruction_simplifier (before)
2281 /// CHECK-START: int Main.$noinline$getInt16FromStaticCharField() instruction_simplifier (after)
2285 /// CHECK-START: int Main.$noinline$getInt16FromStaticCharField() instruction_simplifier (after)
2288 public static int $noinline$getInt16FromStaticCharField() {
2292 /// CHECK-START: int Main.$noinline$getInt16FromCharArray(char[]) instruction_simplifier (before)
2297 /// CHECK-START: int Main.$noinline$getInt16FromCharArray(char[]) instruction_simplifier (after)
2301 /// CHECK-START: int Main.$noinline$getInt16FromCharArray(char[]) instruction_simplifier (after)
2304 public static int $noinline$getInt16FromCharArray(char[] a) {
2308 /// CHECK-START: int Main.$noinline$byteToUint8AndBack() instruction_simplifier (before)
2315 /// CHECK-START: int Main.$noinline$byteToUint8AndBack() instruction_simplifier (after)
2320 /// CHECK-START: int Main.$noinline$byteToUint8AndBack() instruction_simplifier$after_inlining (before)
2325 /// CHECK-START: int Main.$noinline$byteToUint8AndBack() instruction_simplifier$after_inlining (after)
2328 public static int $noinline$byteToUint8AndBack() {
2336 /// CHECK-START: int Main.$noinline$getStaticCharFieldAnd0xff() instruction_simplifier (before)
2342 /// CHECK-START: int Main.$noinline$getStaticCharFieldAnd0xff() instruction_simplifier (after)
2348 /// CHECK-START: int Main.$noinline$getStaticCharFieldAnd0xff() instruction_simplifier (after)
2350 public static int $noinline$getStaticCharFieldAnd0xff() {
2354 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteFieldWithAnotherUse(Main) instruction_simplifier (before)
2363 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteFieldWithAnotherUse(Main) instruction_simplifier (after)
2372 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteFieldWithAnotherUse(Main) instruction_simplifier (after)
2374 public static int $noinline$getUint8FromInstanceByteFieldWithAnotherUse(Main m) {
2381 /// CHECK-START: int Main.$noinline$intAnd0xffToChar(int) instruction_simplifier (before)
2388 /// CHECK-START: int Main.$noinline$intAnd0xffToChar(int) instruction_simplifier (after)
2392 public static int $noinline$intAnd0xffToChar(int value) {
2396 /// CHECK-START: int Main.$noinline$intAnd0x1ffToChar(int) instruction_simplifier (before)
2403 // TODO: Simplify this. Unlike the $noinline$intAnd0xffToChar(), the TypeConversion
2406 // CHECK-START: int Main.$noinline$intAnd0x1ffToChar(int) instruction_simplifier (after)
2411 public static int $noinline$intAnd0x1ffToChar(int value) {
2415 /// CHECK-START: int Main.$noinline$getInstanceCharFieldAnd0x1ffff(Main) instruction_simplifier (before)
2421 /// CHECK-START: int Main.$noinline$getInstanceCharFieldAnd0x1ffff(Main) instruction_simplifier (after)
2424 public static int $noinline$getInstanceCharFieldAnd0x1ffff(Main m) {
2428 /// CHECK-START: int Main.$noinline
2436 /// CHECK-START: int Main.$noinline$bug68142795Byte(byte) instruction_simplifier (after)
2439 public static int $noinline$bug68142795Byte(byte b) {
2443 /// CHECK-START: int Main.$noinline$bug68142795Elaborate(byte) instruction_simplifier (before)
2454 /// CHECK-START: int Main.$noinline$bug68142795Elaborate(byte) instruction_simplifier (after)
2457 public static int $noinline$bug68142795Elaborate(byte b) {
2461 /// CHECK-START: int Main.$noinline$emptyStringIndexOf(int) instruction_simplifier (before)
2467 /// CHECK-START: int Main.$noinline$emptyStringIndexOf(int) instruction_simplifier (after)
2470 /// CHECK-START: int Main.$noinline$emptyStringIndexOf(int) instruction_simplifier (after)
2473 public static int $noinline$emptyStringIndexOf(int ch) {
2477 /// CHECK-START: int Main.$noinline$emptyStringIndexOfAfter(int, int) instruction_simplifier (before)
2484 /// CHECK-START: int Main.$noinline$emptyStringIndexOfAfter(int, int) instruction_simplifier (after)
2487 /// CHECK-START: int Main.$noinline$emptyStringIndexOfAfter(int, int) instruction_simplifier (after)
2490 public static int $noinline$emptyStringIndexOfAfter(int ch, int fromIndex) {
2494 /// CHECK-START: int Main.$noinline$singleCharStringIndexOf(int) instruction_simplifier (before)
2500 /// CHECK-START: int Main.$noinline$singleCharStringIndexOf(int) instruction_simplifier (after)
2503 /// CHECK-START: int Main.$noinline$singleCharStringIndexOf(int) instruction_simplifier (after)
2511 public static int $noinline$singleCharStringIndexOf(int ch) {
2515 /// CHECK-START: int Main.$noinline$singleCharStringIndexOfAfter(int, int) instruction_simplifier (before)
2522 /// CHECK-START: int Main.$noinline$singleCharStringIndexOfAfter(int, int) instruction_simplifier (after)
2528 public static int $noinline$singleCharStringIndexOfAfter(int ch, int fromIndex) {
2534 Method $noinline$XorAllOnes = smaliTests2.getMethod("$noinline$XorAllOnes", int.class);
2535 Method $noinline$NotNot1 = smaliTests2.getMethod("$noinline$NotNot1", long.class);
2536 Method $noinline$NotNot2 = smaliTests2.getMethod("$noinline$NotNot2", int.class);
2537 Method $noinline$NotNotBool = smaliTests2.getMethod("$noinline$NotNotBool", boolean.class);
2538 Method $noinline$bug68142795Short = smaliTests2.getMethod("$noinline$bug68142795Short", short.class);
2539 Method $noinline$bug68142795Boolean = smaliTests2.getMethod("$noinline$bug68142795Boolean", boolean.class);
2544 assertLongEquals(arg, $noinline$Add0(arg));
2545 assertIntEquals(5, $noinline$AddAddSubAddConst(1));
2546 assertIntEquals(arg, $noinline$AndAllOnes(arg));
2547 assertLongEquals(arg, $noinline$Div1(arg));
2548 assertIntEquals(-arg, $noinline$DivN1(arg));
2549 assertLongEquals(arg, $noinline$Mul1(arg));
2550 assertIntEquals(-arg, $noinline$MulN1(arg));
2551 assertLongEquals((128 * arg), $noinline$MulPowerOfTwo128(arg));
2552 assertLongEquals(2640, $noinline$MulMulMulConst(2));
2553 assertIntEquals(arg, $noinline$Or0(arg));
2554 assertLongEquals(arg, $noinline$OrSame(arg));
2555 assertIntEquals(arg, $noinline$Shl0(arg));
2556 assertLongEquals(arg, $noinline$Shr0(arg));
2557 assertLongEquals(arg, $noinline$Shr64(arg));
2558 assertLongEquals(arg, $noinline$Sub0(arg));
2559 assertIntEquals(-arg, $noinline$SubAliasNeg(arg));
2560 assertIntEquals(9, $noinline$SubAddConst1(2));
2561 assertIntEquals(-2, $noinline$SubAddConst2(3));
2562 assertLongEquals(3, $noinline$SubSubConst(4));
2563 assertLongEquals(arg, $noinline$UShr0(arg));
2564 assertIntEquals(arg, $noinline$Xor0(arg));
2565 assertIntEquals(~arg, (int)$noinline$XorAllOnes.invoke(null, arg));
2566 assertIntEquals(-(arg + arg + 1), $noinline$AddNegs1(arg, arg + 1));
2567 assertIntEquals(-(arg + arg + 1), $noinline$AddNegs2(arg, arg + 1));
2568 assertLongEquals(-(2 * arg + 1), $noinline$AddNegs3(arg, arg + 1));
2569 assertLongEquals(1, $noinline$AddNeg1(arg, arg + 1));
2570 assertLongEquals(-1, $noinline$AddNeg2(arg, arg + 1));
2571 assertLongEquals(arg, $noinline$NegNeg1(arg));
2572 assertIntEquals(0, $noinline$NegNeg2(arg));
2573 assertLongEquals(arg, $noinline$NegNeg3(arg));
2574 assertIntEquals(1, $noinline$NegSub1(arg, arg + 1));
2575 assertIntEquals(1, $noinline$NegSub2(arg, arg + 1));
2576 assertLongEquals(arg, (long)$noinline$NotNot1.invoke(null, arg));
2577 assertLongEquals(arg, $noinline$runSmaliTest2Long("$noinline$NotNot1", arg));
2578 assertIntEquals(-1, (int)$noinline$NotNot2.invoke(null, arg));
2579 assertIntEquals(-1, $noinline$runSmaliTestInt("2", "$noinline$NotNot2", arg));
2580 assertIntEquals(-(arg + arg + 1), $noinline$SubNeg1(arg, arg + 1));
2581 assertIntEquals(-(arg + arg + 1), $noinline$SubNeg2(arg, arg + 1));
2582 assertLongEquals(-(2 * arg + 1), $noinline$SubNeg3(arg, arg + 1));
2583 assertBooleanEquals(true, $noinline$EqualBoolVsIntConst(true));
2584 assertBooleanEquals(true, $noinline$EqualBoolVsIntConst(true));
2585 assertBooleanEquals(false, $noinline$NotEqualBoolVsIntConst(false));
2586 assertBooleanEquals(false, $noinline$NotEqualBoolVsIntConst(false));
2587 assertBooleanEquals(true, (boolean)$noinline$NotNotBool.invoke(null, true));
2588 assertBooleanEquals(true, $noinline$runSmaliTest2Boolean("$noinline$NotNotBool", true));
2589 assertBooleanEquals(false, (boolean)$noinline$NotNotBool.invoke(null, false));
2590 assertBooleanEquals(false, $noinline$runSmaliTest2Boolean("$noinline$NotNotBool", false));
2591 assertFloatEquals(50.0f, $noinline$Div2(100.0f));
2592 assertDoubleEquals(75.0, $noinline$Div2(150.0));
2593 assertFloatEquals(-400.0f, $noinline$DivMP25(100.0f));
2594 assertDoubleEquals(-600.0, $noinline$DivMP25(150.0));
2595 assertIntEquals(0xc, $noinline$UShr28And15(0xc1234567));
2596 assertLongEquals(0xcL, $noinline$UShr60And15(0xc123456787654321L));
2597 assertIntEquals(0x4, $noinline$UShr28And7(0xc1234567));
2598 assertLongEquals(0x4L, $noinline$UShr60And7(0xc123456787654321L));
2599 assertIntEquals(0xc1, $noinline$Shr24And255(0xc1234567));
2600 assertIntEquals(0x60, $noinline$Shr25And127(0xc1234567));
2601 assertLongEquals(0xc1L, $noinline$Shr56And255(0xc123456787654321L));
2602 assertLongEquals(0x60L, $noinline$Shr57And127(0xc123456787654321L));
2603 assertIntEquals(0x41, $noinline$Shr24And127(0xc1234567));
2604 assertLongEquals(0x41L, $noinline$Shr56And127(0xc123456787654321L));
2605 assertIntEquals(0, $noinline$mulPow2Plus1(0));
2606 assertIntEquals(9, $noinline$mulPow2Plus1(1));
2607 assertIntEquals(18, $noinline$mulPow2Plus1(2));
2608 assertIntEquals(900, $noinline$mulPow2Plus1(100));
2609 assertIntEquals(111105, $noinline$mulPow2Plus1(12345));
2610 assertLongEquals(0, $noinline$mulPow2Minus1(0));
2611 assertLongEquals(31, $noinline$mulPow2Minus1(1));
2612 assertLongEquals(62, $noinline$mulPow2Minus1(2));
2613 assertLongEquals(3100, $noinline$mulPow2Minus1(100));
2614 assertLongEquals(382695, $noinline$mulPow2Minus1(12345));
2617 assertIntEquals($noinline$booleanFieldNotEqualOne(), 54);
2618 assertIntEquals($noinline$booleanFieldEqualZero(), 54);
2620 assertIntEquals(13, $noinline$booleanFieldNotEqualOne());
2621 assertIntEquals(13, $noinline$booleanFieldEqualZero());
2622 assertIntEquals(54, $noinline$intConditionNotEqualOne(6));
2623 assertIntEquals(13, $noinline$intConditionNotEqualOne(43));
2624 assertIntEquals(54, $noinline$intConditionEqualZero(6));
2625 assertIntEquals(13, $noinline$intConditionEqualZero(43));
2626 assertIntEquals(54, $noinline$floatConditionNotEqualOne(6.0f));
2627 assertIntEquals(13, $noinline$floatConditionNotEqualOne(43.0f));
2628 assertIntEquals(54, $noinline$doubleConditionEqualZero(6.0));
2629 assertIntEquals(13, $noinline$doubleConditionEqualZero(43.0));
2631 assertIntEquals(1234567, $noinline$intToDoubleToInt(1234567));
2632 assertIntEquals(Integer.MIN_VALUE, $noinline$intToDoubleToInt(Integer.MIN_VALUE));
2633 assertIntEquals(Integer.MAX_VALUE, $noinline$intToDoubleToInt(Integer.MAX_VALUE));
2634 assertStringEquals("d=7654321.0, i=7654321", $noinline$intToDoubleToIntPrint(7654321));
2635 assertIntEquals(12, $noinline$byteToDoubleToInt((byte) 12));
2636 assertIntEquals(Byte.MIN_VALUE, $noinline$byteToDoubleToInt(Byte.MIN_VALUE));
2637 assertIntEquals(Byte.MAX_VALUE, $noinline$byteToDoubleToInt(Byte.MAX_VALUE));
2638 assertIntEquals(11, $noinline$floatToDoubleToInt(11.3f));
2639 assertStringEquals("d=12.25, i=12", $noinline$floatToDoubleToIntPrint(12.25f));
2640 assertIntEquals(123, $noinline$byteToDoubleToShort((byte) 123));
2641 assertIntEquals(Byte.MIN_VALUE, $noinline$byteToDoubleToShort(Byte.MIN_VALUE));
2642 assertIntEquals(Byte.MAX_VALUE, $noinline$byteToDoubleToShort(Byte.MAX_VALUE));
2643 assertIntEquals(1234, $noinline$charToDoubleToShort((char) 1234));
2644 assertIntEquals(Character.MIN_VALUE, $noinline$charToDoubleToShort(Character.MIN_VALUE));
2645 assertIntEquals(/* sign-extended */ -1, $noinline$charToDoubleToShort(Character.MAX_VALUE));
2646 assertIntEquals(12345, $noinline$floatToIntToShort(12345.75f));
2647 assertIntEquals(Short.MAX_VALUE, $noinline$floatToIntToShort((float)(Short.MIN_VALUE - 1)));
2648 assertIntEquals(Short.MIN_VALUE, $noinline$floatToIntToShort((float)(Short.MAX_VALUE + 1)));
2649 assertIntEquals(-54321, $noinline$intToFloatToInt(-54321));
2650 assertDoubleEquals((double) 0x12345678, $noinline$longToIntToDouble(0x1234567812345678L));
2651 assertDoubleEquals(0.0, $noinline$longToIntToDouble(Long.MIN_VALUE));
2652 assertDoubleEquals(-1.0, $noinline$longToIntToDouble(Long.MAX_VALUE));
2653 assertLongEquals(0x0000000012345678L, $noinline$longToIntToLong(0x1234567812345678L));
2654 assertLongEquals(0xffffffff87654321L, $noinline$longToIntToLong(0x1234567887654321L));
2655 assertLongEquals(0L, $noinline$longToIntToLong(Long.MIN_VALUE));
2656 assertLongEquals(-1L, $noinline$longToIntToLong(Long.MAX_VALUE));
2657 assertIntEquals((short) -5678, $noinline$shortToCharToShort((short) -5678));
2658 assertIntEquals(Short.MIN_VALUE, $noinline$shortToCharToShort(Short.MIN_VALUE));
2659 assertIntEquals(Short.MAX_VALUE, $noinline$shortToCharToShort(Short.MAX_VALUE));
2660 assertIntEquals(5678, $noinline$shortToLongToInt((short) 5678));
2661 assertIntEquals(Short.MIN_VALUE, $noinline$shortToLongToInt(Short.MIN_VALUE));
2662 assertIntEquals(Short.MAX_VALUE, $noinline$shortToLongToInt(Short.MAX_VALUE));
2663 assertIntEquals(0x34, $noinline$shortToCharToByte((short) 0x1234));
2664 assertIntEquals(-0x10, $noinline$shortToCharToByte((short) 0x12f0));
2665 assertIntEquals(0, $noinline$shortToCharToByte(Short.MIN_VALUE));
2666 assertIntEquals(-1, $noinline$shortToCharToByte(Short.MAX_VALUE));
2667 assertStringEquals("c=1025, b=1", $noinline$shortToCharToBytePrint((short) 1025));
2668 assertStringEquals("c=1023, b=-1", $noinline$shortToCharToBytePrint((short) 1023));
2669 assertStringEquals("c=65535, b=-1", $noinline$shortToCharToBytePrint((short) -1));
2671 assertLongEquals(0x55411410L, $noinline$intAndSmallLongConstant(0x55555555));
2672 assertLongEquals(0xffffffffaa028aa2L, $noinline$intAndSmallLongConstant(0xaaaaaaaa));
2673 assertLongEquals(0x44101440L, $noinline$intAndLargeLongConstant(0x55555555));
2674 assertLongEquals(0x208a002aaL, $noinline$intAndLargeLongConstant(0xaaaaaaaa));
2675 assertLongEquals(7L, $noinline$intShr28And15L(0x76543210));
2677 assertIntEquals(0x21, $noinline$longAnd0xffToByte(0x1234432112344321L));
2678 assertIntEquals(0, $noinline$longAnd0xffToByte(Long.MIN_VALUE));
2679 assertIntEquals(-1, $noinline$longAnd0xffToByte(Long.MAX_VALUE));
2680 assertIntEquals(0x1234, $noinline$intAnd0x1ffffToChar(0x43211234));
2681 assertIntEquals(0, $noinline$intAnd0x1ffffToChar(Integer.MIN_VALUE));
2682 assertIntEquals(Character.MAX_VALUE, $noinline$intAnd0x1ffffToChar(Integer.MAX_VALUE));
2683 assertIntEquals(0x4321, $noinline$intAnd0x17fffToShort(0x87654321));
2684 assertIntEquals(0x0888, $noinline$intAnd0x17fffToShort(0x88888888));
2685 assertIntEquals(0, $noinline$intAnd0x17fffToShort(Integer.MIN_VALUE));
2686 assertIntEquals(Short.MAX_VALUE, $noinline$intAnd0x17fffToShort(Integer.MAX_VALUE));
2688 assertDoubleEquals(0.0, $noinline$shortAnd0xffffToShortToDouble((short) 0));
2689 assertDoubleEquals(1.0, $noinline$shortAnd0xffffToShortToDouble((short) 1));
2690 assertDoubleEquals(-2.0, $noinline$shortAnd0xffffToShortToDouble((short) -2));
2691 assertDoubleEquals(12345.0, $noinline$shortAnd0xffffToShortToDouble((short) 12345));
2693 $noinline$shortAnd0xffffToShortToDouble(Short.MAX_VALUE));
2695 $noinline
2697 assertIntEquals(13, $noinline$intReverseCondition(41));
2698 assertIntEquals(13, $noinline$intReverseConditionNaN(-5));
2704 assertIntEquals(5, $noinline$runSmaliTest(name, true));
2705 assertIntEquals(3, $noinline$runSmaliTest(name, false));
2710 assertIntEquals(0, $noinline$runSmaliTestInt("AddSubConst", 1));
2711 assertIntEquals(3, $noinline$runSmaliTestInt("SubAddConst", 2));
2712 assertIntEquals(-16, $noinline$runSmaliTestInt("SubSubConst1", 3));
2713 assertIntEquals(-5, $noinline$runSmaliTestInt("SubSubConst2", 4));
2714 assertIntEquals(26, $noinline$runSmaliTestInt("SubSubConst3", 5));
2715 assertIntEquals(0x5e6f7808, $noinline$intUnnecessaryShiftMasking(0xabcdef01, 3));
2716 assertIntEquals(0x5e6f7808, $noinline$intUnnecessaryShiftMasking(0xabcdef01, 3 + 32));
2718 $noinline$longUnnecessaryShiftMasking(0xabcdef0123456789L, 50));
2720 $noinline$longUnnecessaryShiftMasking(0xabcdef0123456789L, 50 + 64));
2721 assertIntEquals(0x2af37b, $noinline$intUnnecessaryWiderShiftMasking(0xabcdef01, 10));
2722 assertIntEquals(0x2af37b, $noinline$intUnnecessaryWiderShiftMasking(0xabcdef01, 10 + 128));
2724 $noinline$longSmallerShiftMasking(0xabcdef0123456789L, 2));
2726 $noinline$longSmallerShiftMasking(0xabcdef0123456789L, 2 + 256));
2727 assertIntEquals(0xfffd5e7c, $noinline$otherUseOfUnnecessaryShiftMasking(0xabcdef01, 13));
2728 assertIntEquals(0xfffd5e7c, $noinline$otherUseOfUnnecessaryShiftMasking(0xabcdef01, 13 + 512));
2729 assertIntEquals(0x5f49eb48, $noinline$intUnnecessaryShiftModifications(0xabcdef01, 2));
2730 assertIntEquals(0xbd4c29b0, $noinline$intUnnecessaryShiftModifications(0xabcdef01, 3));
2731 assertIntEquals(0xc0fed1ca, $noinline$intNecessaryShiftModifications(0xabcdef01, 2));
2732 assertIntEquals(0x03578ebc, $noinline$intNecessaryShiftModifications(0xabcdef01, 3));
2734 assertIntEquals(654321, $noinline$intAddSubSimplifyArg1(arg, 654321));
2735 assertIntEquals(arg, $noinline$intAddSubSimplifyArg2(arg, 654321));
2736 assertIntEquals(arg, $noinline$intSubAddSimplifyLeft(arg, 654321));
2737 assertIntEquals(arg, $noinline$intSubAddSimplifyRight(arg, 654321));
2738 assertFloatEquals(654321.125f, $noinline$floatAddSubSimplifyArg1(floatArg, 654321.125f));
2739 assertFloatEquals(floatArg, $noinline$floatAddSubSimplifyArg2(floatArg, 654321.125f));
2740 assertFloatEquals(floatArg, $noinline$floatSubAddSimplifyLeft(floatArg, 654321.125f));
2741 assertFloatEquals(floatArg, $noinline$floatSubAddSimplifyRight(floatArg, 654321.125f));
2745 assertIntEquals(0xff, $noinline$getUint8FromInstanceByteField(m));
2747 assertIntEquals(0xfe, $noinline$getUint8FromStaticByteField());
2748 assertIntEquals(0xfd, $noinline$getUint8FromByteArray(new byte[] { -3 }));
2750 assertIntEquals(0xfffc, $noinline$getUint16FromInstanceShortField(m));
2752 assertIntEquals(0xfffb, $noinline$getUint16FromStaticShortField());
2753 assertIntEquals(0xfffa, $noinline$getUint16FromShortArray(new short[] { -6 }));
2755 assertIntEquals(-7, $noinline$getInt16FromInstanceCharField(m));
2757 assertIntEquals(-8, $noinline$getInt16FromStaticCharField());
2758 assertIntEquals(-9, $noinline$getInt16FromCharArray(new char[] { 0xfff7 }));
2761 assertIntEquals(0xf6, $noinline$getStaticCharFieldAnd0xff());
2764 assertIntEquals(-11, $noinline$byteToUint8AndBack());
2767 assertIntEquals(0xfffff4f4, $noinline$getUint8FromInstanceByteFieldWithAnotherUse(m));
2769 assertIntEquals(0x21, $noinline$intAnd0xffToChar(0x87654321));
2770 assertIntEquals(0x121, $noinline$intAnd0x1ffToChar(0x87654321));
2773 assertIntEquals('x', $noinline$getInstanceCharFieldAnd0x1ffff(m));
2775 assertIntEquals(0x7f, $noinline$bug68142795Byte((byte) 0x7f));
2776 assertIntEquals((byte) 0x80, $noinline$bug68142795Byte((byte) 0x80));
2777 assertIntEquals(0x7fff, (int)$noinline$bug68142795Short.invoke(null, (short) 0x7fff));
2778 assertIntEquals((short) 0x8000, (int)$noinline$bug68142795Short.invoke(null, (short) 0x8000));
2779 assertIntEquals(0, (int)$noinline$bug68142795Boolean.invoke(null, false));
2780 assertIntEquals(1, (int)$noinline$bug68142795Boolean.invoke(null, true));
2781 assertIntEquals(0x7f, $noinline$bug68142795Elaborate((byte) 0x7f));
2782 assertIntEquals((byte) 0x80, $noinline$bug68142795Elaborate((byte) 0x80));
2784 assertIntEquals(-1, $noinline$emptyStringIndexOf('a'));
2785 assertIntEquals(-1, $noinline$emptyStringIndexOf('Z'));
2786 assertIntEquals(-1, $noinline$emptyStringIndexOfAfter('a', 0));
2787 assertIntEquals(-1, $noinline$emptyStringIndexOfAfter('Z', -1));
2789 assertIntEquals(-1, $noinline$singleCharStringIndexOf('a'));
2790 assertIntEquals(0, $noinline$singleCharStringIndexOf('x'));
2791 assertIntEquals(-1, $noinline$singleCharStringIndexOf('Z'));
2792 assertIntEquals(-1, $noinline$singleCharStringIndexOfAfter('a', 0));
2793 assertIntEquals(0, $noinline$singleCharStringIndexOfAfter('x', -1));
2794 assertIntEquals(-1, $noinline$singleCharStringIndexOfAfter('x', 1));
2795 assertIntEquals(-1, $noinline$singleCharStringIndexOfAfter('Z', -1));