Home | History | Annotate | Download | only in src

Lines Matching defs:compareInts

114   /// CHECK-START: int Main.compareInts(int, int) intrinsics_recognition (after)
118 /// CHECK-START: int Main.compareInts(int, int) instruction_simplifier (after)
122 /// CHECK-START: int Main.compareInts(int, int) instruction_simplifier (after)
125 private static int compareInts(int x, int y) {
436 expectEquals(-1, compareInts(Integer.MIN_VALUE, Integer.MIN_VALUE + 1));
437 expectEquals(-1, compareInts(Integer.MIN_VALUE, -1));
438 expectEquals(-1, compareInts(Integer.MIN_VALUE, 0));
439 expectEquals(-1, compareInts(Integer.MIN_VALUE, 1));
440 expectEquals(-1, compareInts(Integer.MIN_VALUE, Integer.MAX_VALUE));
441 expectEquals(-1, compareInts(-1, 0));
442 expectEquals(-1, compareInts(-1, 1));
443 expectEquals(-1, compareInts(0, 1));
445 expectEquals(0, compareInts(Integer.MIN_VALUE, Integer.MIN_VALUE));
446 expectEquals(0, compareInts(-1, -1));
447 expectEquals(0, compareInts(0, 0));
448 expectEquals(0, compareInts(1, 1));
449 expectEquals(0, compareInts(Integer.MAX_VALUE, Integer.MAX_VALUE));
451 expectEquals(1, compareInts(0, -1));
452 expectEquals(1, compareInts(1, -1));
453 expectEquals(1, compareInts(1, 0));
454 expectEquals(1, compareInts(Integer.MAX_VALUE, Integer.MIN_VALUE));
455 expectEquals(1, compareInts(Integer.MAX_VALUE, -1));
456 expectEquals(1, compareInts(Integer.MAX_VALUE, 0));
457 expectEquals(1, compareInts(Integer.MAX_VALUE, 1));
458 expectEquals(1, compareInts(Integer.MAX_VALUE, Integer.MAX_VALUE - 1));
465 expectEquals(expected, compareInts(i, j));