Lines Matching refs:assertIntEquals
27 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
2545 assertIntEquals(5, $noinline$AddAddSubAddConst(1)); in main()
2546 assertIntEquals(arg, $noinline$AndAllOnes(arg)); in main()
2548 assertIntEquals(-arg, $noinline$DivN1(arg)); in main()
2550 assertIntEquals(-arg, $noinline$MulN1(arg)); in main()
2553 assertIntEquals(arg, $noinline$Or0(arg)); in main()
2555 assertIntEquals(arg, $noinline$Shl0(arg)); in main()
2559 assertIntEquals(-arg, $noinline$SubAliasNeg(arg)); in main()
2560 assertIntEquals(9, $noinline$SubAddConst1(2)); in main()
2561 assertIntEquals(-2, $noinline$SubAddConst2(3)); in main()
2564 assertIntEquals(arg, $noinline$Xor0(arg)); in main()
2565 assertIntEquals(~arg, (int)$noinline$XorAllOnes.invoke(null, arg)); in main()
2566 assertIntEquals(-(arg + arg + 1), $noinline$AddNegs1(arg, arg + 1)); in main()
2567 assertIntEquals(-(arg + arg + 1), $noinline$AddNegs2(arg, arg + 1)); in main()
2572 assertIntEquals(0, $noinline$NegNeg2(arg)); in main()
2574 assertIntEquals(1, $noinline$NegSub1(arg, arg + 1)); in main()
2575 assertIntEquals(1, $noinline$NegSub2(arg, arg + 1)); in main()
2578 assertIntEquals(-1, (int)$noinline$NotNot2.invoke(null, arg)); in main()
2579 assertIntEquals(-1, $noinline$runSmaliTestInt("2", "$noinline$NotNot2", arg)); in main()
2580 assertIntEquals(-(arg + arg + 1), $noinline$SubNeg1(arg, arg + 1)); in main()
2581 assertIntEquals(-(arg + arg + 1), $noinline$SubNeg2(arg, arg + 1)); in main()
2595 assertIntEquals(0xc, $noinline$UShr28And15(0xc1234567)); in main()
2597 assertIntEquals(0x4, $noinline$UShr28And7(0xc1234567)); in main()
2599 assertIntEquals(0xc1, $noinline$Shr24And255(0xc1234567)); in main()
2600 assertIntEquals(0x60, $noinline$Shr25And127(0xc1234567)); in main()
2603 assertIntEquals(0x41, $noinline$Shr24And127(0xc1234567)); in main()
2605 assertIntEquals(0, $noinline$mulPow2Plus1(0)); in main()
2606 assertIntEquals(9, $noinline$mulPow2Plus1(1)); in main()
2607 assertIntEquals(18, $noinline$mulPow2Plus1(2)); in main()
2608 assertIntEquals(900, $noinline$mulPow2Plus1(100)); in main()
2609 assertIntEquals(111105, $noinline$mulPow2Plus1(12345)); in main()
2617 assertIntEquals($noinline$booleanFieldNotEqualOne(), 54); in main()
2618 assertIntEquals($noinline$booleanFieldEqualZero(), 54); in main()
2620 assertIntEquals(13, $noinline$booleanFieldNotEqualOne()); in main()
2621 assertIntEquals(13, $noinline$booleanFieldEqualZero()); in main()
2622 assertIntEquals(54, $noinline$intConditionNotEqualOne(6)); in main()
2623 assertIntEquals(13, $noinline$intConditionNotEqualOne(43)); in main()
2624 assertIntEquals(54, $noinline$intConditionEqualZero(6)); in main()
2625 assertIntEquals(13, $noinline$intConditionEqualZero(43)); in main()
2626 assertIntEquals(54, $noinline$floatConditionNotEqualOne(6.0f)); in main()
2627 assertIntEquals(13, $noinline$floatConditionNotEqualOne(43.0f)); in main()
2628 assertIntEquals(54, $noinline$doubleConditionEqualZero(6.0)); in main()
2629 assertIntEquals(13, $noinline$doubleConditionEqualZero(43.0)); in main()
2631 assertIntEquals(1234567, $noinline$intToDoubleToInt(1234567)); in main()
2632 assertIntEquals(Integer.MIN_VALUE, $noinline$intToDoubleToInt(Integer.MIN_VALUE)); in main()
2633 assertIntEquals(Integer.MAX_VALUE, $noinline$intToDoubleToInt(Integer.MAX_VALUE)); in main()
2635 assertIntEquals(12, $noinline$byteToDoubleToInt((byte) 12)); in main()
2636 assertIntEquals(Byte.MIN_VALUE, $noinline$byteToDoubleToInt(Byte.MIN_VALUE)); in main()
2637 assertIntEquals(Byte.MAX_VALUE, $noinline$byteToDoubleToInt(Byte.MAX_VALUE)); in main()
2638 assertIntEquals(11, $noinline$floatToDoubleToInt(11.3f)); in main()
2640 assertIntEquals(123, $noinline$byteToDoubleToShort((byte) 123)); in main()
2641 assertIntEquals(Byte.MIN_VALUE, $noinline$byteToDoubleToShort(Byte.MIN_VALUE)); in main()
2642 assertIntEquals(Byte.MAX_VALUE, $noinline$byteToDoubleToShort(Byte.MAX_VALUE)); in main()
2643 assertIntEquals(1234, $noinline$charToDoubleToShort((char) 1234)); in main()
2644 assertIntEquals(Character.MIN_VALUE, $noinline$charToDoubleToShort(Character.MIN_VALUE)); in main()
2645 assertIntEquals(/* sign-extended */ -1, $noinline$charToDoubleToShort(Character.MAX_VALUE)); in main()
2646 assertIntEquals(12345, $noinline$floatToIntToShort(12345.75f)); in main()
2647 assertIntEquals(Short.MAX_VALUE, $noinline$floatToIntToShort((float)(Short.MIN_VALUE - 1))); in main()
2648 assertIntEquals(Short.MIN_VALUE, $noinline$floatToIntToShort((float)(Short.MAX_VALUE + 1))); in main()
2649 assertIntEquals(-54321, $noinline$intToFloatToInt(-54321)); in main()
2657 assertIntEquals((short) -5678, $noinline$shortToCharToShort((short) -5678)); in main()
2658 assertIntEquals(Short.MIN_VALUE, $noinline$shortToCharToShort(Short.MIN_VALUE)); in main()
2659 assertIntEquals(Short.MAX_VALUE, $noinline$shortToCharToShort(Short.MAX_VALUE)); in main()
2660 assertIntEquals(5678, $noinline$shortToLongToInt((short) 5678)); in main()
2661 assertIntEquals(Short.MIN_VALUE, $noinline$shortToLongToInt(Short.MIN_VALUE)); in main()
2662 assertIntEquals(Short.MAX_VALUE, $noinline$shortToLongToInt(Short.MAX_VALUE)); in main()
2663 assertIntEquals(0x34, $noinline$shortToCharToByte((short) 0x1234)); in main()
2664 assertIntEquals(-0x10, $noinline$shortToCharToByte((short) 0x12f0)); in main()
2665 assertIntEquals(0, $noinline$shortToCharToByte(Short.MIN_VALUE)); in main()
2666 assertIntEquals(-1, $noinline$shortToCharToByte(Short.MAX_VALUE)); in main()
2677 assertIntEquals(0x21, $noinline$longAnd0xffToByte(0x1234432112344321L)); in main()
2678 assertIntEquals(0, $noinline$longAnd0xffToByte(Long.MIN_VALUE)); in main()
2679 assertIntEquals(-1, $noinline$longAnd0xffToByte(Long.MAX_VALUE)); in main()
2680 assertIntEquals(0x1234, $noinline$intAnd0x1ffffToChar(0x43211234)); in main()
2681 assertIntEquals(0, $noinline$intAnd0x1ffffToChar(Integer.MIN_VALUE)); in main()
2682 assertIntEquals(Character.MAX_VALUE, $noinline$intAnd0x1ffffToChar(Integer.MAX_VALUE)); in main()
2683 assertIntEquals(0x4321, $noinline$intAnd0x17fffToShort(0x87654321)); in main()
2684 assertIntEquals(0x0888, $noinline$intAnd0x17fffToShort(0x88888888)); in main()
2685 assertIntEquals(0, $noinline$intAnd0x17fffToShort(Integer.MIN_VALUE)); in main()
2686 assertIntEquals(Short.MAX_VALUE, $noinline$intAnd0x17fffToShort(Integer.MAX_VALUE)); in main()
2697 assertIntEquals(13, $noinline$intReverseCondition(41)); in main()
2698 assertIntEquals(13, $noinline$intReverseConditionNaN(-5)); in main()
2704 assertIntEquals(5, $noinline$runSmaliTest(name, true)); in main()
2705 assertIntEquals(3, $noinline$runSmaliTest(name, false)); in main()
2710 assertIntEquals(0, $noinline$runSmaliTestInt("AddSubConst", 1)); in main()
2711 assertIntEquals(3, $noinline$runSmaliTestInt("SubAddConst", 2)); in main()
2712 assertIntEquals(-16, $noinline$runSmaliTestInt("SubSubConst1", 3)); in main()
2713 assertIntEquals(-5, $noinline$runSmaliTestInt("SubSubConst2", 4)); in main()
2714 assertIntEquals(26, $noinline$runSmaliTestInt("SubSubConst3", 5)); in main()
2715 assertIntEquals(0x5e6f7808, $noinline$intUnnecessaryShiftMasking(0xabcdef01, 3)); in main()
2716 assertIntEquals(0x5e6f7808, $noinline$intUnnecessaryShiftMasking(0xabcdef01, 3 + 32)); in main()
2721 assertIntEquals(0x2af37b, $noinline$intUnnecessaryWiderShiftMasking(0xabcdef01, 10)); in main()
2722 assertIntEquals(0x2af37b, $noinline$intUnnecessaryWiderShiftMasking(0xabcdef01, 10 + 128)); in main()
2727 assertIntEquals(0xfffd5e7c, $noinline$otherUseOfUnnecessaryShiftMasking(0xabcdef01, 13)); in main()
2728 assertIntEquals(0xfffd5e7c, $noinline$otherUseOfUnnecessaryShiftMasking(0xabcdef01, 13 + 512)); in main()
2729 assertIntEquals(0x5f49eb48, $noinline$intUnnecessaryShiftModifications(0xabcdef01, 2)); in main()
2730 assertIntEquals(0xbd4c29b0, $noinline$intUnnecessaryShiftModifications(0xabcdef01, 3)); in main()
2731 assertIntEquals(0xc0fed1ca, $noinline$intNecessaryShiftModifications(0xabcdef01, 2)); in main()
2732 assertIntEquals(0x03578ebc, $noinline$intNecessaryShiftModifications(0xabcdef01, 3)); in main()
2734 assertIntEquals(654321, $noinline$intAddSubSimplifyArg1(arg, 654321)); in main()
2735 assertIntEquals(arg, $noinline$intAddSubSimplifyArg2(arg, 654321)); in main()
2736 assertIntEquals(arg, $noinline$intSubAddSimplifyLeft(arg, 654321)); in main()
2737 assertIntEquals(arg, $noinline$intSubAddSimplifyRight(arg, 654321)); in main()
2745 assertIntEquals(0xff, $noinline$getUint8FromInstanceByteField(m)); in main()
2747 assertIntEquals(0xfe, $noinline$getUint8FromStaticByteField()); in main()
2748 assertIntEquals(0xfd, $noinline$getUint8FromByteArray(new byte[] { -3 })); in main()
2750 assertIntEquals(0xfffc, $noinline$getUint16FromInstanceShortField(m)); in main()
2752 assertIntEquals(0xfffb, $noinline$getUint16FromStaticShortField()); in main()
2753 assertIntEquals(0xfffa, $noinline$getUint16FromShortArray(new short[] { -6 })); in main()
2755 assertIntEquals(-7, $noinline$getInt16FromInstanceCharField(m)); in main()
2757 assertIntEquals(-8, $noinline$getInt16FromStaticCharField()); in main()
2758 assertIntEquals(-9, $noinline$getInt16FromCharArray(new char[] { 0xfff7 })); in main()
2761 assertIntEquals(0xf6, $noinline$getStaticCharFieldAnd0xff()); in main()
2764 assertIntEquals(-11, $noinline$byteToUint8AndBack()); in main()
2767 assertIntEquals(0xfffff4f4, $noinline$getUint8FromInstanceByteFieldWithAnotherUse(m)); in main()
2769 assertIntEquals(0x21, $noinline$intAnd0xffToChar(0x87654321)); in main()
2770 assertIntEquals(0x121, $noinline$intAnd0x1ffToChar(0x87654321)); in main()
2773 assertIntEquals('x', $noinline$getInstanceCharFieldAnd0x1ffff(m)); in main()
2775 assertIntEquals(0x7f, $noinline$bug68142795Byte((byte) 0x7f)); in main()
2776 assertIntEquals((byte) 0x80, $noinline$bug68142795Byte((byte) 0x80)); in main()
2777 assertIntEquals(0x7fff, (int)$noinline$bug68142795Short.invoke(null, (short) 0x7fff)); in main()
2778 assertIntEquals((short) 0x8000, (int)$noinline$bug68142795Short.invoke(null, (short) 0x8000)); in main()
2779 assertIntEquals(0, (int)$noinline$bug68142795Boolean.invoke(null, false)); in main()
2780 assertIntEquals(1, (int)$noinline$bug68142795Boolean.invoke(null, true)); in main()
2781 assertIntEquals(0x7f, $noinline$bug68142795Elaborate((byte) 0x7f)); in main()
2782 assertIntEquals((byte) 0x80, $noinline$bug68142795Elaborate((byte) 0x80)); in main()
2784 assertIntEquals(-1, $noinline$emptyStringIndexOf('a')); in main()
2785 assertIntEquals(-1, $noinline$emptyStringIndexOf('Z')); in main()
2786 assertIntEquals(-1, $noinline$emptyStringIndexOfAfter('a', 0)); in main()
2787 assertIntEquals(-1, $noinline$emptyStringIndexOfAfter('Z', -1)); in main()
2789 assertIntEquals(-1, $noinline$singleCharStringIndexOf('a')); in main()
2790 assertIntEquals(0, $noinline$singleCharStringIndexOf('x')); in main()
2791 assertIntEquals(-1, $noinline$singleCharStringIndexOf('Z')); in main()
2792 assertIntEquals(-1, $noinline$singleCharStringIndexOfAfter('a', 0)); in main()
2793 assertIntEquals(0, $noinline$singleCharStringIndexOfAfter('x', -1)); in main()
2794 assertIntEquals(-1, $noinline$singleCharStringIndexOfAfter('x', 1)); in main()
2795 assertIntEquals(-1, $noinline$singleCharStringIndexOfAfter('Z', -1)); in main()