Lines Matching full: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) {
643 /// CHECK-START: int Main.$noinline$XorAllOnes(int) instruction_simplifier (before)
649 /// CHECK-START: int Main.$noinline$XorAllOnes(int) instruction_simplifier (after)
654 /// CHECK-START: int Main.$noinline$XorAllOnes(int) instruction_simplifier (after)
657 public static int $noinline$XorAllOnes(int arg) {
668 /// CHECK-START: int Main.$noinline$AddNegs1(int, int) instruction_simplifier (before)
676 /// CHECK-START: int Main.$noinline$AddNegs1(int, int) instruction_simplifier (after)
684 public static int $noinline$AddNegs1(int arg1, int arg2) {
699 /// CHECK-START: int Main.$noinline$AddNegs2(int, int) instruction_simplifier (before)
709 /// CHECK-START: int Main.$noinline$AddNegs2(int, int) instruction_simplifier (after)
720 /// CHECK-START: int Main.$noinline$AddNegs2(int, int) GVN (after)
729 public static int $noinline$AddNegs2(int arg1, int arg2) {
743 /// CHECK-START: long Main.$noinline$AddNegs3(long, long) instruction_simplifier (before)
755 /// CHECK-START: long Main.$noinline$AddNegs3(long, long) instruction_simplifier (after)
768 public static long $noinline$AddNegs3(long arg1, long arg2) {
784 /// CHECK-START: long Main.$noinline$AddNeg1(long, long) instruction_simplifier (before)
791 /// CHECK-START: long Main.$noinline$AddNeg1(long, long) instruction_simplifier (after)
797 /// CHECK-START: long Main.$noinline$AddNeg1(long, long) instruction_simplifier (after)
801 public static long $noinline$AddNeg1(long arg1, long arg2) {
814 /// CHECK-START: long Main.$noinline$AddNeg2(long, long) instruction_simplifier (before)
823 /// CHECK-START: long Main.$noinline$AddNeg2(long, long) instruction_simplifier (after)
832 /// CHECK-START: long Main.$noinline$AddNeg2(long, long) instruction_simplifier (after)
835 public static long $noinline$AddNeg2(long arg1, long arg2) {
845 /// CHECK-START: long Main.$noinline$NegNeg1(long) instruction_simplifier (before)
851 /// CHECK-START: long Main.$noinline$NegNeg1(long) instruction_simplifier (after)
855 /// CHECK-START: long Main.$noinline$NegNeg1(long) instruction_simplifier (after)
858 public static long $noinline$NegNeg1(long arg) {
869 /// CHECK-START: int Main.$noinline$NegNeg2(int) instruction_simplifier (before)
876 /// CHECK-START: int Main.$noinline$NegNeg2(int) instruction_simplifier (after)
881 /// CHECK-START: int Main.$noinline$NegNeg2(int) instruction_simplifier (after)
885 /// CHECK-START: int Main.$noinline$NegNeg2(int) constant_folding$after_inlining (after)
891 public static int $noinline$NegNeg2(int arg) {
903 /// CHECK-START: long Main.$noinline$NegNeg3(long) instruction_simplifier (before)
910 /// CHECK-START: long Main.$noinline$NegNeg3(long) instruction_simplifier (after)
914 /// CHECK-START: long Main.$noinline$NegNeg3(long) instruction_simplifier (after)
918 public static long $noinline$NegNeg3(long arg) {
928 /// CHECK-START: int Main.$noinline$NegSub1(int, int) instruction_simplifier (before)
935 /// CHECK-START: int Main.$noinline$NegSub1(int, int) instruction_simplifier (after)
941 /// CHECK-START: int Main.$noinline$NegSub1(int, int) instruction_simplifier (after)
944 public static int $noinline$NegSub1(int arg1, int arg2) {
958 /// CHECK-START: int Main.$noinline$NegSub2(int, int) instruction_simplifier (before)
967 /// CHECK-START: int Main.$noinline$NegSub2(int, int) instruction_simplifier (after)
976 public static int $noinline$NegSub2(int arg1, int arg2) {
986 /// CHECK-START: long Main.$noinline$NotNot1(long) instruction_simplifier (before)
993 /// CHECK-START: long Main.$noinline$NotNot1(long) instruction_simplifier (after)
997 /// CHECK-START: long Main.$noinline$NotNot1(long) instruction_simplifier (after)
1000 public static long $noinline$NotNot1(long arg) {
1004 /// CHECK-START: int Main.$noinline$NotNot2(int) instruction_simplifier (before)
1012 /// CHECK-START: int Main.$noinline$NotNot2(int) instruction_simplifier (after)
1018 /// CHECK-START: int Main.$noinline$NotNot2(int) instruction_simplifier (after)
1022 /// CHECK-START: int Main.$noinline$NotNot2(int) instruction_simplifier (after)
1025 public static int $noinline$NotNot2(int arg) {
1035 /// CHECK-START: int Main.$noinline$SubNeg1(int, int) instruction_simplifier (before)
1042 /// CHECK-START: int Main.$noinline$SubNeg1(int, int) instruction_simplifier (after)
1049 /// CHECK-START: int Main.$noinline$SubNeg1(int, int) instruction_simplifier (after)
1052 public static int $noinline$SubNeg1(int arg1, int arg2) {
1066 /// CHECK-START: int Main.$noinline$SubNeg2(int, int) instruction_simplifier (before)
1075 /// CHECK-START: int Main.$noinline$SubNeg2(int, int) instruction_simplifier (after)
1084 /// CHECK-START: int Main.$noinline$SubNeg2(int, int) instruction_simplifier (after)
1087 public static int $noinline$SubNeg2(int arg1, int arg2) {
1099 /// CHECK-START: long Main.$noinline$SubNeg3(long, long) instruction_simplifier (before)
1110 /// CHECK-START: long Main.$noinline$SubNeg3(long, long) instruction_simplifier (after)
1122 public static long $noinline$SubNeg3(long arg1, long arg2) {
1131 /// CHECK-START: boolean Main.$noinline$EqualBoolVsIntConst(boolean) instruction_simplifier$after_inlining (before)
1141 /// CHECK-START: boolean Main.$noinline$EqualBoolVsIntConst(boolean) instruction_simplifier$after_inlining (after)
1145 public static boolean $noinline$EqualBoolVsIntConst(boolean arg) {
1155 /// CHECK-START: boolean Main.$noinline$NotEqualBoolVsIntConst(boolean) instruction_simplifier$after_inlining (before)
1165 /// CHECK-START: boolean Main.$noinline$NotEqualBoolVsIntConst(boolean) instruction_simplifier$after_inlining (after)
1169 public static boolean $noinline$NotEqualBoolVsIntConst(boolean arg) {
1181 /// CHECK-START: boolean Main.$noinline$NotNotBool(boolean) instruction_simplifier (before)
1188 /// CHECK-START: boolean Main.$noinline$NotNotBool(boolean) instruction_simplifier (after)
1191 /// CHECK-START: boolean Main.$noinline$NotNotBool(boolean) instruction_simplifier (after)
1199 /// CHECK-START: boolean Main.$noinline$NotNotBool(boolean) instruction_simplifier$after_inlining (before)
1204 /// CHECK-START: boolean Main.$noinline$NotNotBool(boolean) instruction_simplifier$after_inlining (before)
1212 /// CHECK-START: boolean Main.$noinline$NotNotBool(boolean) instruction_simplifier$after_inlining (after)
1217 /// CHECK-START: boolean Main.$noinline$NotNotBool(boolean) instruction_simplifier$after_inlining (after)
1220 /// CHECK-START: boolean Main.$noinline$NotNotBool(boolean) dead_code_elimination$final (after)
1229 public static boolean $noinline$NotNotBool(boolean arg) {
1233 /// CHECK-START: float Main.$noinline$Div2(float) instruction_simplifier (before)
1239 /// CHECK-START: float Main.$noinline$Div2(float) instruction_simplifier (after)
1245 /// CHECK-START: float Main.$noinline$Div2(float) instruction_simplifier (after)
1248 public static float $noinline$Div2(float arg) {
1252 /// CHECK-START: double Main.$noinline$Div2(double) instruction_simplifier (before)
1258 /// CHECK-START: double Main.$noinline$Div2(double) instruction_simplifier (after)
1264 /// CHECK-START: double Main.$noinline$Div2(double) instruction_simplifier (after)
1266 public static double $noinline$Div2(double arg) {
1270 /// CHECK-START: float Main.$noinline$DivMP25(float) instruction_simplifier (before)
1276 /// CHECK-START: float Main.$noinline$DivMP25(float) instruction_simplifier (after)
1282 /// CHECK-START: float Main.$noinline$DivMP25(float) instruction_simplifier (after)
1285 public static float $noinline$DivMP25(float arg) {
1289 /// CHECK-START: double Main.$noinline$DivMP25(double) instruction_simplifier (before)
1295 /// CHECK-START: double Main.$noinline$DivMP25(double) instruction_simplifier (after)
1301 /// CHECK-START: double Main.$noinline$DivMP25(double) instruction_simplifier (after)
1303 public static double $noinline$DivMP25(double arg) {
1311 /// CHECK-START: int Main.$noinline$mulPow2Plus1(int) instruction_simplifier (before)
1316 /// CHECK-START: int Main.$noinline$mulPow2Plus1(int) instruction_simplifier (after)
1322 public static int $noinline$mulPow2Plus1(int arg) {
1330 /// CHECK-START: long Main.$noinline$mulPow2Minus1(long) instruction_simplifier (before)
1335 /// CHECK-START: long Main.$noinline$mulPow2Minus1(long) instruction_simplifier (after)
1341 public static long $noinline$mulPow2Minus1(long arg) {
1345 /// CHECK-START: int Main.$noinline$booleanFieldNotEqualOne() instruction_simplifier$after_inlining (before)
1354 /// CHECK-START: int Main.$noinline$booleanFieldNotEqualOne() instruction_simplifier$after_inlining (after)
1361 public static int $noinline$booleanFieldNotEqualOne() {
1365 /// CHECK-START: int Main.$noinline$booleanFieldEqualZero() instruction_simplifier$after_inlining (before)
1374 /// CHECK-START: int Main.$noinline$booleanFieldEqualZero() instruction_simplifier$after_inlining (after)
1381 public static int $noinline$booleanFieldEqualZero() {
1385 /// CHECK-START: int Main.$noinline$intConditionNotEqualOne(int) instruction_simplifier$after_inlining (before)
1398 /// CHECK-START: int Main.$noinline$intConditionNotEqualOne(int) instruction_simplifier$after_inlining (after)
1409 public static int $noinline$intConditionNotEqualOne(int i) {
1413 /// CHECK-START: int Main.$noinline$intConditionEqualZero(int) instruction_simplifier$after_inlining (before)
1426 /// CHECK-START: int Main.$noinline$intConditionEqualZero(int) instruction_simplifier$after_inlining (after)
1437 public static int $noinline$intConditionEqualZero(int i) {
1443 /// CHECK-START: int Main.$noinline$floatConditionNotEqualOne(float) builder (after)
1446 /// CHECK-START: int Main.$noinline$floatConditionNotEqualOne(float) instruction_simplifier$before_codegen (after)
1455 public static int $noinline$floatConditionNotEqualOne(float f) {
1459 /// CHECK-START: int Main.$noinline$doubleConditionEqualZero(double) builder (after)
1462 /// CHECK-START: int Main.$noinline$doubleConditionEqualZero(double) instruction_simplifier$before_codegen (after)
1471 public static int $noinline$doubleConditionEqualZero(double d) {
1475 /// CHECK-START: int Main.$noinline$intToDoubleToInt(int) instruction_simplifier (before)
1481 /// CHECK-START: int Main.$noinline$intToDoubleToInt(int) instruction_simplifier (after)
1485 /// CHECK-START: int Main.$noinline$intToDoubleToInt(int) instruction_simplifier (after)
1488 public static int $noinline$intToDoubleToInt(int value) {
1493 /// CHECK-START: java.lang.String Main.$noinline$intToDoubleToIntPrint(int) instruction_simplifier (before)
1498 /// CHECK-START: java.lang.String Main.$noinline$intToDoubleToIntPrint(int) instruction_simplifier (after)
1502 /// CHECK-START: java.lang.String Main.$noinline$intToDoubleToIntPrint(int) instruction_simplifier (after)
1506 public static String $noinline$intToDoubleToIntPrint(int value) {
1514 /// CHECK-START: int Main.$noinline$byteToDoubleToInt(byte) instruction_simplifier (before)
1520 /// CHECK-START: int Main.$noinline$byteToDoubleToInt(byte) instruction_simplifier (after)
1524 /// CHECK-START: int Main.$noinline$byteToDoubleToInt(byte) instruction_simplifier (after)
1527 public static int $noinline$byteToDoubleToInt(byte value) {
1532 /// CHECK-START: int Main.$noinline$floatToDoubleToInt(float) instruction_simplifier (before)
1538 /// CHECK-START: int Main.$noinline$floatToDoubleToInt(float) instruction_simplifier (after)
1543 /// CHECK-START: int Main.$noinline$floatToDoubleToInt(float) instruction_simplifier (after)
1547 public static int $noinline$floatToDoubleToInt(float value) {
1552 /// CHECK-START: java.lang.String Main.$noinline$floatToDoubleToIntPrint(float) instruction_simplifier (before)
1557 /// CHECK-START: java.lang.String Main.$noinline$floatToDoubleToIntPrint(float) instruction_simplifier (after)
1562 public static String $noinline$floatToDoubleToIntPrint(float value) {
1570 /// CHECK-START: short Main.$noinline$byteToDoubleToShort(byte) instruction_simplifier (before)
1577 /// CHECK-START: short Main.$noinline$byteToDoubleToShort(byte) instruction_simplifier (after)
1581 /// CHECK-START: short Main.$noinline$byteToDoubleToShort(byte) instruction_simplifier (after)
1584 public static short $noinline$byteToDoubleToShort(byte value) {
1591 /// CHECK-START: short Main.$noinline$charToDoubleToShort(char) instruction_simplifier (before)
1598 /// CHECK-START: short Main.$noinline$charToDoubleToShort(char) instruction_simplifier (after)
1603 /// CHECK-START: short Main.$noinline$charToDoubleToShort(char) instruction_simplifier (after)
1607 public static short $noinline$charToDoubleToShort(char value) {
1614 /// CHECK-START: short Main.$noinline$floatToIntToShort(float) instruction_simplifier (before)
1620 /// CHECK-START: short Main.$noinline$floatToIntToShort(float) instruction_simplifier (after)
1626 public static short $noinline$floatToIntToShort(float value) {
1631 /// CHECK-START: int Main.$noinline$intToFloatToInt(int) instruction_simplifier (before)
1637 /// CHECK-START: int Main.$noinline$intToFloatToInt(int) instruction_simplifier (after)
1643 public static int $noinline$intToFloatToInt(int value) {
1648 /// CHECK-START: double Main.$noinline$longToIntToDouble(long) instruction_simplifier (before)
1654 /// CHECK-START: double Main.$noinline$longToIntToDouble(long) instruction_simplifier (after)
1660 public static double $noinline$longToIntToDouble(long value) {
1665 /// CHECK-START: long Main.$noinline$longToIntToLong(long) instruction_simplifier (before)
1671 /// CHECK-START: long Main.$noinline$longToIntToLong(long) instruction_simplifier (after)
1677 public static long $noinline$longToIntToLong(long value) {
1682 /// CHECK-START: short Main.$noinline$shortToCharToShort(short) instruction_simplifier (before)
1688 /// CHECK-START: short Main.$noinline$shortToCharToShort(short) instruction_simplifier (after)
1692 public static short $noinline$shortToCharToShort(short value) {
1697 /// CHECK-START: int Main.$noinline$shortToLongToInt(short) instruction_simplifier (before)
1703 /// CHECK-START: int Main.$noinline$shortToLongToInt(short) instruction_simplifier (after)
1707 public static int $noinline$shortToLongToInt(short value) {
1712 /// CHECK-START: byte Main.$noinline$shortToCharToByte(short) instruction_simplifier (before)
1718 /// CHECK-START: byte Main.$noinline$shortToCharToByte(short) instruction_simplifier (after)
1723 public static byte $noinline$shortToCharToByte(short value) {
1729 /// CHECK-START: java.lang.String Main.$noinline$shortToCharToBytePrint(short) instruction_simplifier (before)
1734 /// CHECK-START: java.lang.String Main.$noinline$shortToCharToBytePrint(short) instruction_simplifier (after)
1739 public static String $noinline$shortToCharToBytePrint(short value) {
1747 /// CHECK-START: long Main.$noinline$intAndSmallLongConstant(int) instruction_simplifier (before)
1754 /// CHECK-START: long Main.$noinline$intAndSmallLongConstant(int) instruction_simplifier (after)
1761 public static long $noinline$intAndSmallLongConstant(int value) {
1765 /// CHECK-START: long Main.$noinline$intAndLargeLongConstant(int) instruction_simplifier (before)
1772 /// CHECK-START: long Main.$noinline$intAndLargeLongConstant(int) instruction_simplifier (after)
1779 public static long $noinline$intAndLargeLongConstant(int value) {
1783 /// CHECK-START: long Main.$noinline$intShr28And15L(int) instruction_simplifier (before)
1792 /// CHECK-START: long Main.$noinline$intShr28And15L(int) instruction_simplifier (after)
1799 public static long $noinline$intShr28And15L(int value) {
1803 /// CHECK-START: byte Main.$noinline$longAnd0xffToByte(long) instruction_simplifier (before)
1811 /// CHECK-START: byte Main.$noinline$longAnd0xffToByte(long) instruction_simplifier (after)
1816 /// CHECK-START: byte Main.$noinline$longAnd0xffToByte(long) instruction_simplifier (after)
1819 public static byte $noinline$longAnd0xffToByte(long value) {
1823 /// CHECK-START: char Main.$noinline$intAnd0x1ffffToChar(int) instruction_simplifier (before)
1830 /// CHECK-START: char Main.$noinline$intAnd0x1ffffToChar(int) instruction_simplifier (after)
1835 /// CHECK-START: char Main.$noinline$intAnd0x1ffffToChar(int) instruction_simplifier (after)
1838 public static char $noinline$intAnd0x1ffffToChar(int value) {
1843 /// CHECK-START: short Main.$noinline$intAnd0x17fffToShort(int) instruction_simplifier (before)
1850 /// CHECK-START: short Main.$noinline$intAnd0x17fffToShort(int) instruction_simplifier (after)
1857 public static short $noinline$intAnd0x17fffToShort(int value) {
1862 /// CHECK-START: double Main.$noinline$shortAnd0xffffToShortToDouble(short) instruction_simplifier (before)
1870 /// CHECK-START: double Main.$noinline$shortAnd0xffffToShortToDouble(short) instruction_simplifier (after)
1875 public static double $noinline$shortAnd0xffffToShortToDouble(short value) {
1880 /// CHECK-START: int Main.$noinline$intReverseCondition(int) instruction_simplifier (before)
1885 /// CHECK-START: int Main.$noinline$intReverseCondition(int) instruction_simplifier (after)
1890 public static int $noinline$intReverseCondition(int i) {
1894 /// CHECK-START: int Main.$noinline$intReverseConditionNaN(int) instruction_simplifier (before)
1899 /// CHECK-START: int Main.$noinline$intReverseConditionNaN(int) instruction_simplifier (after)
1904 public static int $noinline$intReverseConditionNaN(int i) {
1908 public static int $noinline$runSmaliTest(String name, boolean input) {
1918 public static boolean $noinline$runSmaliTestBoolean(String name, boolean input) {
1928 public static int $noinline$runSmaliTestInt(String name, int arg) {
1938 public static long $noinline$runSmaliTestLong(String name, long arg) {
1948 /// CHECK-START: int Main.$noinline$intUnnecessaryShiftMasking(int, int) instruction_simplifier (before)
1956 /// CHECK-START: int Main.$noinline$intUnnecessaryShiftMasking(int, int) instruction_simplifier (after)
1962 public static int $noinline$intUnnecessaryShiftMasking(int value, int shift) {
1966 /// CHECK-START: long Main.$noinline$longUnnecessaryShiftMasking(long, int) instruction_simplifier (before)
1974 /// CHECK-START: long Main.$noinline$longUnnecessaryShiftMasking(long, int) instruction_simplifier (after)
1980 public static long $noinline$longUnnecessaryShiftMasking(long value, int shift) {
1984 /// CHECK-START: int Main.$noinline$intUnnecessaryWiderShiftMasking(int, int) instruction_simplifier (before)
1992 /// CHECK-START: int Main.$noinline$intUnnecessaryWiderShiftMasking(int, int) instruction_simplifier (after)
1998 public static int $noinline$intUnnecessaryWiderShiftMasking(int value, int shift) {
2002 /// CHECK-START: long Main.$noinline$longSmallerShiftMasking(long, int) instruction_simplifier (before)
2010 /// CHECK-START: long Main.$noinline$longSmallerShiftMasking(long, int) instruction_simplifier (after)
2018 public static long $noinline$longSmallerShiftMasking(long value, int shift) {
2022 /// CHECK-START: int Main.$noinline$otherUseOfUnnecessaryShiftMasking(int, int) instruction_simplifier (before)
2031 /// CHECK-START: int Main.$noinline$otherUseOfUnnecessaryShiftMasking(int, int) instruction_simplifier (after)
2040 public static int $noinline$otherUseOfUnnecessaryShiftMasking(int value, int shift) {
2045 /// CHECK-START: int Main.$noinline$intUnnecessaryShiftModifications(int, int) instruction_simplifier (before)
2063 /// CHECK-START: int Main.$noinline$intUnnecessaryShiftModifications(int, int) instruction_simplifier (after)
2072 public static int $noinline$intUnnecessaryShiftModifications(int value, int shift) {
2081 /// CHECK-START: int Main.$noinline$intNecessaryShiftModifications(int, int) instruction_simplifier (before)
2097 /// CHECK-START: int Main.$noinline$intNecessaryShiftModifications(int, int) instruction_simplifier (after)
2113 public static int $noinline$intNecessaryShiftModifications(int value, int shift) {
2121 /// CHECK-START: int Main.$noinline$intAddSubSimplifyArg1(int, int) instruction_simplifier (before)
2128 /// CHECK-START: int Main.$noinline$intAddSubSimplifyArg1(int, int) instruction_simplifier (after)
2134 public static int $noinline$intAddSubSimplifyArg1(int x, int y) {
2139 /// CHECK-START: int Main.$noinline$intAddSubSimplifyArg2(int, int) instruction_simplifier (before)
2146 /// CHECK-START: int Main.$noinline$intAddSubSimplifyArg2(int, int) instruction_simplifier (after)
2152 public static int $noinline$intAddSubSimplifyArg2(int x, int y) {
2157 /// CHECK-START: int Main.$noinline$intSubAddSimplifyLeft(int, int) instruction_simplifier (before)
2164 /// CHECK-START: int Main.$noinline$intSubAddSimplifyLeft(int, int) instruction_simplifier (after)
2170 public static int $noinline$intSubAddSimplifyLeft(int x, int y) {
2175 /// CHECK-START: int Main.$noinline$intSubAddSimplifyRight(int, int) instruction_simplifier (before)
2182 /// CHECK-START: int Main.$noinline$intSubAddSimplifyRight(int, int) instruction_simplifier (after)
2188 public static int $noinline$intSubAddSimplifyRight(int x, int y) {
2193 /// CHECK-START: float Main.$noinline$floatAddSubSimplifyArg1(float, float) instruction_simplifier (before)
2200 /// CHECK-START: float Main.$noinline$floatAddSubSimplifyArg1(float, float) instruction_simplifier (after)
2207 public static float $noinline$floatAddSubSimplifyArg1(float x, float y) {
2212 /// CHECK-START: float Main.$noinline$floatAddSubSimplifyArg2(float, float) instruction_simplifier (before)
2219 /// CHECK-START: float Main.$noinline$floatAddSubSimplifyArg2(float, float) instruction_simplifier (after)
2226 public static float $noinline$floatAddSubSimplifyArg2(float x, float y) {
2231 /// CHECK-START: float Main.$noinline$floatSubAddSimplifyLeft(float, float) instruction_simplifier (before)
2238 /// CHECK-START: float Main.$noinline$floatSubAddSimplifyLeft(float, float) instruction_simplifier (after)
2245 public static float $noinline$floatSubAddSimplifyLeft(float x, float y) {
2250 /// CHECK-START: float Main.$noinline$floatSubAddSimplifyRight(float, float) instruction_simplifier (before)
2257 /// CHECK-START: float Main.$noinline$floatSubAddSimplifyRight(float, float) instruction_simplifier (after)
2264 public static float $noinline$floatSubAddSimplifyRight(float x, float y) {
2269 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteField(Main) instruction_simplifier (before)
2275 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteField(Main) instruction_simplifier (after)
2279 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteField(Main) instruction_simplifier (after)
2282 public static int $noinline$getUint8FromInstanceByteField(Main m) {
2286 /// CHECK-START: int Main.$noinline$getUint8FromStaticByteField() instruction_simplifier (before)
2292 /// CHECK-START: int Main.$noinline$getUint8FromStaticByteField() instruction_simplifier (after)
2296 /// CHECK-START: int Main.$noinline$getUint8FromStaticByteField() instruction_simplifier (after)
2299 public static int $noinline$getUint8FromStaticByteField() {
2303 /// CHECK-START: int Main.$noinline$getUint8FromByteArray(byte[]) instruction_simplifier (before)
2309 /// CHECK-START: int Main.$noinline$getUint8FromByteArray(byte[]) instruction_simplifier (after)
2313 /// CHECK-START: int Main.$noinline$getUint8FromByteArray(byte[]) instruction_simplifier (after)
2316 public static int $noinline$getUint8FromByteArray(byte[] a) {
2320 /// CHECK-START: int Main.$noinline$getUint16FromInstanceShortField(Main) instruction_simplifier (before)
2326 /// CHECK-START: int Main.$noinline$getUint16FromInstanceShortField(Main) instruction_simplifier (after)
2330 /// CHECK-START: int Main.$noinline$getUint16FromInstanceShortField(Main) instruction_simplifier (after)
2333 public static int $noinline$getUint16FromInstanceShortField(Main m) {
2337 /// CHECK-START: int Main.$noinline$getUint16FromStaticShortField() instruction_simplifier (before)
2343 /// CHECK-START: int Main.$noinline$getUint16FromStaticShortField() instruction_simplifier (after)
2347 /// CHECK-START: int Main.$noinline$getUint16FromStaticShortField() instruction_simplifier (after)
2350 public static int $noinline$getUint16FromStaticShortField() {
2354 /// CHECK-START: int Main.$noinline$getUint16FromShortArray(short[]) instruction_simplifier (before)
2360 /// CHECK-START: int Main.$noinline$getUint16FromShortArray(short[]) instruction_simplifier (after)
2364 /// CHECK-START: int Main.$noinline$getUint16FromShortArray(short[]) instruction_simplifier (after)
2367 public static int $noinline$getUint16FromShortArray(short[] a) {
2371 /// CHECK-START: int Main.$noinline$getInt16FromInstanceCharField(Main) instruction_simplifier (before)
2376 /// CHECK-START: int Main.$noinline$getInt16FromInstanceCharField(Main) instruction_simplifier (after)
2380 /// CHECK-START: int Main.$noinline$getInt16FromInstanceCharField(Main) instruction_simplifier (after)
2383 public static int $noinline$getInt16FromInstanceCharField(Main m) {
2387 /// CHECK-START: int Main.$noinline$getInt16FromStaticCharField() instruction_simplifier (before)
2392 /// CHECK-START: int Main.$noinline$getInt16FromStaticCharField() instruction_simplifier (after)
2396 /// CHECK-START: int Main.$noinline$getInt16FromStaticCharField() instruction_simplifier (after)
2399 public static int $noinline$getInt16FromStaticCharField() {
2403 /// CHECK-START: int Main.$noinline$getInt16FromCharArray(char[]) instruction_simplifier (before)
2408 /// CHECK-START: int Main.$noinline$getInt16FromCharArray(char[]) instruction_simplifier (after)
2412 /// CHECK-START: int Main.$noinline$getInt16FromCharArray(char[]) instruction_simplifier (after)
2415 public static int $noinline$getInt16FromCharArray(char[] a) {
2419 /// CHECK-START: int Main.$noinline$byteToUint8AndBack() instruction_simplifier (before)
2426 /// CHECK-START: int Main.$noinline$byteToUint8AndBack() instruction_simplifier (after)
2431 /// CHECK-START: int Main.$noinline$byteToUint8AndBack() instruction_simplifier$after_inlining (before)
2436 noinline$byteToUint8AndBack() instruction_simplifier$after_inlining (after)
2439 public static int $noinline$byteToUint8AndBack() {
2447 /// CHECK-START: int Main.$noinline$getStaticCharFieldAnd0xff() instruction_simplifier (before)
2453 /// CHECK-START: int Main.$noinline$getStaticCharFieldAnd0xff() instruction_simplifier (after)
2459 /// CHECK-START: int Main.$noinline$getStaticCharFieldAnd0xff() instruction_simplifier (after)
2461 public static int $noinline$getStaticCharFieldAnd0xff() {
2465 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteFieldWithAnotherUse(Main) instruction_simplifier (before)
2474 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteFieldWithAnotherUse(Main) instruction_simplifier (after)
2483 /// CHECK-START: int Main.$noinline$getUint8FromInstanceByteFieldWithAnotherUse(Main) instruction_simplifier (after)
2485 public static int $noinline$getUint8FromInstanceByteFieldWithAnotherUse(Main m) {
2492 /// CHECK-START: int Main.$noinline$intAnd0xffToChar(int) instruction_simplifier (before)
2499 /// CHECK-START: int Main.$noinline$intAnd0xffToChar(int) instruction_simplifier (after)
2503 public static int $noinline$intAnd0xffToChar(int value) {
2507 /// CHECK-START: int Main.$noinline$intAnd0x1ffToChar(int) instruction_simplifier (before)
2514 // TODO: Simplify this. Unlike the $noinline$intAnd0xffToChar(), the TypeConversion
2517 // CHECK-START: int Main.$noinline$intAnd0x1ffToChar(int) instruction_simplifier (after)
2522 public static int $noinline$intAnd0x1ffToChar(int value) {
2526 /// CHECK-START: int Main.$noinline$getInstanceCharFieldAnd0x1ffff(Main) instruction_simplifier (before)
2532 /// CHECK-START: int Main.$noinline$getInstanceCharFieldAnd0x1ffff(Main) instruction_simplifier (after)
2535 public static int $noinline$getInstanceCharFieldAnd0x1ffff(Main m) {
2539 /// CHECK-START: int Main.$noinline$bug68142795Byte(byte) instruction_simplifier (before)
2547 /// CHECK-START: int Main.$noinline$bug68142795Byte(byte) instruction_simplifier (after)
2550 public static int $noinline$bug68142795Byte(byte b) {
2554 /// CHECK-START: int Main.$noinline$bug68142795Short(short) instruction_simplifier (before)
2562 /// CHECK-START: int Main.$noinline$bug68142795Short(short) instruction_simplifier (after)
2565 public static int $noinline$bug68142795Short(short s) {
2569 /// CHECK-START: int Main.$noinline$bug68142795Boolean(boolean) instruction_simplifier$after_inlining (before)
2579 /// CHECK-START: int Main.$noinline$bug68142795Boolean(boolean) instruction_simplifier$after_inlining (after)
2582 public static int $noinline$bug68142795Boolean(boolean b) {
2587 /// CHECK-START: int Main.$noinline$bug68142795Elaborate(byte) instruction_simplifier (before)
2598 /// CHECK-START: int Main.$noinline$bug68142795Elaborate(byte) instruction_simplifier (after)
2601 public static int $noinline$bug68142795Elaborate(byte b) {
2609 assertLongEquals(arg, $noinline$Add0(arg));
2610 assertIntEquals(5, $noinline$AddAddSubAddConst(1));
2611 assertIntEquals(arg, $noinline$AndAllOnes(arg));
2612 assertLongEquals(arg, $noinline$Div1(arg));
2613 assertIntEquals(-arg, $noinline$DivN1(arg));
2614 assertLongEquals(arg, $noinline$Mul1(arg));
2615 assertIntEquals(-arg, $noinline$MulN1(arg));
2616 assertLongEquals((128 * arg), $noinline$MulPowerOfTwo128(arg));
2617 assertLongEquals(2640, $noinline$MulMulMulConst(2));
2618 assertIntEquals(arg, $noinline$Or0(arg));
2619 assertLongEquals(arg, $noinline$OrSame(arg));
2620 assertIntEquals(arg, $noinline$Shl0(arg));
2621 assertLongEquals(arg, $noinline$Shr0(arg));
2622 assertLongEquals(arg, $noinline$Shr64(arg));
2623 assertLongEquals(arg, $noinline$Sub0(arg));
2624 assertIntEquals(-arg, $noinline$SubAliasNeg(arg));
2625 assertIntEquals(9, $noinline$SubAddConst1(2));
2626 assertIntEquals(-2, $noinline$SubAddConst2(3));
2627 assertLongEquals(3, $noinline$SubSubConst(4));
2628 assertLongEquals(arg, $noinline$UShr0(arg));
2629 assertIntEquals(arg, $noinline$Xor0(arg));
2630 assertIntEquals(~arg, $noinline$XorAllOnes(arg));
2631 assertIntEquals(-(arg + arg + 1), $noinline$AddNegs1(arg, arg + 1));
2632 assertIntEquals(-(arg + arg + 1), $noinline$AddNegs2(arg, arg + 1));
2633 assertLongEquals(-(2 * arg + 1), $noinline$AddNegs3(arg, arg + 1));
2634 assertLongEquals(1, $noinline$AddNeg1(arg, arg + 1));
2635 assertLongEquals(-1, $noinline$AddNeg2(arg, arg + 1));
2636 assertLongEquals(arg, $noinline$NegNeg1(arg));
2637 assertIntEquals(0, $noinline$NegNeg2(arg));
2638 assertLongEquals(arg, $noinline$NegNeg3(arg));
2639 assertIntEquals(1, $noinline$NegSub1(arg, arg + 1));
2640 assertIntEquals(1, $noinline$NegSub2(arg, arg + 1));
2641 assertLongEquals(arg, $noinline$NotNot1(arg));
2642 assertLongEquals(arg, $noinline$runSmaliTestLong("$noinline$NotNot1", arg));
2643 assertIntEquals(-1, $noinline$NotNot2(arg));
2644 assertIntEquals(-1, $noinline$runSmaliTestInt("$noinline$NotNot2", arg));
2645 assertIntEquals(-(arg + arg + 1), $noinline$SubNeg1(arg, arg + 1));
2646 assertIntEquals(-(arg + arg + 1), $noinline$SubNeg2(arg, arg + 1));
2647 assertLongEquals(-(2 * arg + 1), $noinline$SubNeg3(arg, arg + 1));
2648 assertBooleanEquals(true, $noinline$EqualBoolVsIntConst(true));
2649 assertBooleanEquals(true, $noinline$EqualBoolVsIntConst(true));
2650 assertBooleanEquals(false, $noinline$NotEqualBoolVsIntConst(false));
2651 assertBooleanEquals(false, $noinline$NotEqualBoolVsIntConst(false));
2652 assertBooleanEquals(true, $noinline$NotNotBool(true));
2653 assertBooleanEquals(true, $noinline$runSmaliTestBoolean("$noinline$NotNotBool", true));
2654 assertBooleanEquals(false, $noinline$NotNotBool(false));
2655 assertBooleanEquals(false, $noinline$runSmaliTestBoolean("$noinline$NotNotBool", false));
2656 assertFloatEquals(50.0f, $noinline$Div2(100.0f));
2657 assertDoubleEquals(75.0, $noinline$Div2(150.0));
2658 assertFloatEquals(-400.0f, $noinline$DivMP25(100.0f));
2659 assertDoubleEquals(-600.0, $noinline$DivMP25(150.0));
2660 assertIntEquals(0xc, $noinline$UShr28And15(0xc1234567));
2661 assertLongEquals(0xcL, $noinline$UShr60And15(0xc123456787654321L));
2662 assertIntEquals(0x4, $noinline$UShr28And7(0xc1234567));
2663 assertLongEquals(0x4L, $noinline$UShr60And7(0xc123456787654321L));
2664 assertIntEquals(0xc1, $noinline$Shr24And255(0xc1234567));
2665 assertIntEquals(0x60, $noinline$Shr25And127(0xc1234567));
2666 assertLongEquals(0xc1L, $noinline$Shr56And255(0xc123456787654321L));
2667 assertLongEquals(0x60L, $noinline$Shr57And127(0xc123456787654321L));
2668 assertIntEquals(0x41, $noinline$Shr24And127(0xc1234567));
2669 assertLongEquals(0x41L, $noinline$Shr56And127(0xc123456787654321L));
2670 assertIntEquals(0, $noinline$mulPow2Plus1(0));
2671 assertIntEquals(9, $noinline$mulPow2Plus1(1));
2672 assertIntEquals(18, $noinline$mulPow2Plus1(2));
2673 assertIntEquals(900, $noinline$mulPow2Plus1(100));
2674 assertIntEquals(111105, $noinline$mulPow2Plus1(12345));
2675 assertLongEquals(0, $noinline$mulPow2Minus1(0));
2676 assertLongEquals(31, $noinline$mulPow2Minus1(1));
2677 assertLongEquals(62, $noinline$mulPow2Minus1(2));
2678 assertLongEquals(3100, $noinline$mulPow2Minus1(100));
2679 assertLongEquals(382695, $noinline$mulPow2Minus1(12345));
2682 assertIntEquals($noinline$booleanFieldNotEqualOne(), 54);
2683 assertIntEquals($noinline$booleanFieldEqualZero(), 54);
2685 assertIntEquals(13, $noinline$booleanFieldNotEqualOne());
2686 assertIntEquals(13, $noinline$booleanFieldEqualZero());
2687 assertIntEquals(54, $noinline$intConditionNotEqualOne(6));
2688 assertIntEquals(13, $noinline$intConditionNotEqualOne(43));
2689 assertIntEquals(54, $noinline$intConditionEqualZero(6));
2690 assertIntEquals(13, $noinline$intConditionEqualZero(43));
2691 assertIntEquals(54, $noinline$floatConditionNotEqualOne(6.0f));
2692 assertIntEquals(13, $noinline$floatConditionNotEqualOne(43.0f));
2693 assertIntEquals(54, $noinline$doubleConditionEqualZero(6.0));
2694 assertIntEquals(13, $noinline$doubleConditionEqualZero(43.0));
2696 assertIntEquals(1234567, $noinline$intToDoubleToInt(1234567));
2697 assertIntEquals(Integer.MIN_VALUE, $noinline$intToDoubleToInt(Integer.MIN_VALUE));
2698 assertIntEquals(Integer.MAX_VALUE, $noinline$intToDoubleToInt(Integer.MAX_VALUE));
2699 assertStringEquals("d=7654321.0, i=7654321", $noinline$intToDoubleToIntPrint(7654321));
2700 assertIntEquals(12, $noinline$byteToDoubleToInt((byte) 12));
2701 assertIntEquals(Byte.MIN_VALUE, $noinline$byteToDoubleToInt(Byte.MIN_VALUE));
2702 assertIntEquals(Byte.MAX_VALUE, $noinline$byteToDoubleToInt(Byte.MAX_VALUE));
2703 assertIntEquals(11, $noinline$floatToDoubleToInt(11.3f));
2704 assertStringEquals("d=12.25, i=12", $noinline$floatToDoubleToIntPrint(12.25f));
2705 assertIntEquals(123, $noinline$byteToDoubleToShort((byte) 123));
2706 assertIntEquals(Byte.MIN_VALUE, $noinline$byteToDoubleToShort(Byte.MIN_VALUE));
2707 assertIntEquals(Byte.MAX_VALUE, $noinline$byteToDoubleToShort(Byte.MAX_VALUE));
2708 assertIntEquals(1234, $noinline$charToDoubleToShort((char) 1234));
2709 assertIntEquals(Character.MIN_VALUE, $noinline$charToDoubleToShort(Character.MIN_VALUE));
2710 assertIntEquals(/* sign-extended */ -1, $noinline$charToDoubleToShort(Character.MAX_VALUE));
2711 assertIntEquals(12345, $noinline$floatToIntToShort(12345.75f));
2712 assertIntEquals(Short.MAX_VALUE, $noinline$floatToIntToShort((float)(Short.MIN_VALUE - 1)));
2713 assertIntEquals(Short.MIN_VALUE, $noinline$floatToIntToShort((float)(Short.MAX_VALUE + 1)));
2714 assertIntEquals(-54321, $noinline$intToFloatToInt(-54321));
2715 assertDoubleEquals((double) 0x12345678, $noinline$longToIntToDouble(0x1234567812345678L));
2716 assertDoubleEquals(0.0, $noinline$longToIntToDouble(Long.MIN_VALUE));
2717 assertDoubleEquals(-1.0, $noinline$longToIntToDouble(Long.MAX_VALUE));
2718 assertLongEquals(0x0000000012345678L, $noinline$longToIntToLong(0x1234567812345678L));
2719 assertLongEquals(0xffffffff87654321L, $noinline$longToIntToLong(0x1234567887654321L));
2720 assertLongEquals(0L, $noinline$longToIntToLong(Long.MIN_VALUE));
2721 assertLongEquals(-1L, $noinline$longToIntToLong(Long.MAX_VALUE));
2722 assertIntEquals((short) -5678, $noinline$shortToCharToShort((short) -5678));
2723 assertIntEquals(Short.MIN_VALUE, $noinline$shortToCharToShort(Short.MIN_VALUE));
2724 assertIntEquals(Short.MAX_VALUE, $noinline$shortToCharToShort(Short.MAX_VALUE));
2725 assertIntEquals(5678, $noinline$shortToLongToInt((short) 5678));
2726 assertIntEquals(Short.MIN_VALUE, $noinline$shortToLongToInt(Short.MIN_VALUE));
2727 noinline$shortToLongToInt(Short.MAX_VALUE));
2728 assertIntEquals(0x34, $noinline$shortToCharToByte((short) 0x1234));
2729 assertIntEquals(-0x10, $noinline$shortToCharToByte((short) 0x12f0));
2730 assertIntEquals(0, $noinline$shortToCharToByte(Short.MIN_VALUE));
2731 assertIntEquals(-1, $noinline$shortToCharToByte(Short.MAX_VALUE));
2732 assertStringEquals("c=1025, b=1", $noinline$shortToCharToBytePrint((short) 1025));
2733 assertStringEquals("c=1023, b=-1", $noinline$shortToCharToBytePrint((short) 1023));
2734 assertStringEquals("c=65535, b=-1", $noinline$shortToCharToBytePrint((short) -1));
2736 assertLongEquals(0x55411410L, $noinline$intAndSmallLongConstant(0x55555555));
2737 assertLongEquals(0xffffffffaa028aa2L, $noinline$intAndSmallLongConstant(0xaaaaaaaa));
2738 assertLongEquals(0x44101440L, $noinline$intAndLargeLongConstant(0x55555555));
2739 assertLongEquals(0x208a002aaL, $noinline$intAndLargeLongConstant(0xaaaaaaaa));
2740 assertLongEquals(7L, $noinline$intShr28And15L(0x76543210));
2742 assertIntEquals(0x21, $noinline$longAnd0xffToByte(0x1234432112344321L));
2743 assertIntEquals(0, $noinline$longAnd0xffToByte(Long.MIN_VALUE));
2744 assertIntEquals(-1, $noinline$longAnd0xffToByte(Long.MAX_VALUE));
2745 assertIntEquals(0x1234, $noinline$intAnd0x1ffffToChar(0x43211234));
2746 assertIntEquals(0, $noinline$intAnd0x1ffffToChar(Integer.MIN_VALUE));
2747 assertIntEquals(Character.MAX_VALUE, $noinline$intAnd0x1ffffToChar(Integer.MAX_VALUE));
2748 assertIntEquals(0x4321, $noinline$intAnd0x17fffToShort(0x87654321));
2749 assertIntEquals(0x0888, $noinline$intAnd0x17fffToShort(0x88888888));
2750 assertIntEquals(0, $noinline$intAnd0x17fffToShort(Integer.MIN_VALUE));
2751 assertIntEquals(Short.MAX_VALUE, $noinline$intAnd0x17fffToShort(Integer.MAX_VALUE));
2753 assertDoubleEquals(0.0, $noinline$shortAnd0xffffToShortToDouble((short) 0));
2754 assertDoubleEquals(1.0, $noinline$shortAnd0xffffToShortToDouble((short) 1));
2755 assertDoubleEquals(-2.0, $noinline$shortAnd0xffffToShortToDouble((short) -2));
2756 assertDoubleEquals(12345.0, $noinline$shortAnd0xffffToShortToDouble((short) 12345));
2758 $noinline$shortAnd0xffffToShortToDouble(Short.MAX_VALUE));
2760 $noinline$shortAnd0xffffToShortToDouble(Short.MIN_VALUE));
2762 assertIntEquals(13, $noinline$intReverseCondition(41));
2763 assertIntEquals(13, $noinline$intReverseConditionNaN(-5));
2769 assertIntEquals(5, $noinline$runSmaliTest(name, true));
2770 assertIntEquals(3, $noinline$runSmaliTest(name, false));
2775 assertIntEquals(0, $noinline$runSmaliTestInt("AddSubConst", 1));
2776 assertIntEquals(3, $noinline$runSmaliTestInt("SubAddConst", 2));
2777 assertIntEquals(-16, $noinline$runSmaliTestInt("SubSubConst1", 3));
2778 assertIntEquals(-5, $noinline$runSmaliTestInt("SubSubConst2", 4));
2779 assertIntEquals(26, $noinline$runSmaliTestInt("SubSubConst3", 5));
2780 assertIntEquals(0x5e6f7808, $noinline$intUnnecessaryShiftMasking(0xabcdef01, 3));
2781 assertIntEquals(0x5e6f7808, $noinline$intUnnecessaryShiftMasking(0xabcdef01, 3 + 32));
2783 $noinline$longUnnecessaryShiftMasking(0xabcdef0123456789L, 50));
2785 $noinline$longUnnecessaryShiftMasking(0xabcdef0123456789L, 50 + 64));
2786 assertIntEquals(0x2af37b, $noinline$intUnnecessaryWiderShiftMasking(0xabcdef01, 10));
2787 assertIntEquals(0x2af37b, $noinline$intUnnecessaryWiderShiftMasking(0xabcdef01, 10 + 128));
2789 $noinline$longSmallerShiftMasking(0xabcdef0123456789L, 2));
2791 $noinline$longSmallerShiftMasking(0xabcdef0123456789L, 2 + 256));
2792 assertIntEquals(0xfffd5e7c, $noinline$otherUseOfUnnecessaryShiftMasking(0xabcdef01, 13));
2793 assertIntEquals(0xfffd5e7c, $noinline$otherUseOfUnnecessaryShiftMasking(0xabcdef01, 13 + 512));
2794 assertIntEquals(0x5f49eb48, $noinline$intUnnecessaryShiftModifications(0xabcdef01, 2));
2795 assertIntEquals(0xbd4c29b0, $noinline$intUnnecessaryShiftModifications(0xabcdef01, 3));
2796 assertIntEquals(0xc0fed1ca, $noinline$intNecessaryShiftModifications(0xabcdef01, 2));
2797 assertIntEquals(0x03578ebc, $noinline$intNecessaryShiftModifications(0xabcdef01, 3));
2799 assertIntEquals(654321, $noinline$intAddSubSimplifyArg1(arg, 654321));
2800 assertIntEquals(arg, $noinline$intAddSubSimplifyArg2(arg, 654321));
2801 assertIntEquals(arg, $noinline$intSubAddSimplifyLeft(arg, 654321));
2802 assertIntEquals(arg, $noinline$intSubAddSimplifyRight(arg, 654321));
2803 assertFloatEquals(654321.125f, $noinline$floatAddSubSimplifyArg1(floatArg, 654321.125f));
2804 assertFloatEquals(floatArg, $noinline$floatAddSubSimplifyArg2(floatArg, 654321.125f));
2805 assertFloatEquals(floatArg, $noinline$floatSubAddSimplifyLeft(floatArg, 654321.125f));
2806 assertFloatEquals(floatArg, $noinline$floatSubAddSimplifyRight(floatArg, 654321.125f));
2810 assertIntEquals(0xff, $noinline$getUint8FromInstanceByteField(m));
2812 assertIntEquals(0xfe, $noinline$getUint8FromStaticByteField());
2813 assertIntEquals(0xfd, $noinline$getUint8FromByteArray(new byte[] { -3 }));
2815 assertIntEquals(0xfffc, $noinline$getUint16FromInstanceShortField(m));
2817 assertIntEquals(0xfffb, $noinline$getUint16FromStaticShortField());
2818 assertIntEquals(0xfffa, $noinline$getUint16FromShortArray(new short[] { -6 }));
2820 assertIntEquals(-7, $noinline$getInt16FromInstanceCharField(m));
2822 assertIntEquals(-8, $noinline$getInt16FromStaticCharField());
2823 assertIntEquals(-9, $noinline$getInt16FromCharArray(new char[] { 0xfff7 }));
2826 assertIntEquals(0xf6, $noinline$getStaticCharFieldAnd0xff());
2829 assertIntEquals(-11, $noinline$byteToUint8AndBack());
2832 assertIntEquals(0xfffff4f4, $noinline$getUint8FromInstanceByteFieldWithAnotherUse(m));
2834 assertIntEquals(0x21, $noinline$intAnd0xffToChar(0x87654321));
2835 assertIntEquals(0x121, $noinline$intAnd0x1ffToChar(0x87654321));
2838 assertIntEquals('x', $noinline$getInstanceCharFieldAnd0x1ffff(m));
2840 assertIntEquals(0x7f, $noinline$bug68142795Byte((byte) 0x7f));
2841 assertIntEquals((byte) 0x80, $noinline$bug68142795Byte((byte) 0x80));
2842 assertIntEquals(0x7fff, $noinline$bug68142795Short((short) 0x7fff));
2843 assertIntEquals((short) 0x8000, $noinline$bug68142795Short((short) 0x8000));
2844 assertIntEquals(0, $noinline$bug68142795Boolean(false));
2845 assertIntEquals(1, $noinline$bug68142795Boolean(true));
2846 assertIntEquals(0x7f, $noinline$bug68142795Elaborate((byte) 0x7f));
2847 assertIntEquals((byte) 0x80, $noinline$bug68142795Elaborate((byte) 0x80));