Home | History | Annotate | Download | only in src

Lines Matching refs:compareLongs

151   /// CHECK-START: int Main.compareLongs(long, long) intrinsics_recognition (after)
155 /// CHECK-START: int Main.compareLongs(long, long) instruction_simplifier (after)
159 /// CHECK-START: int Main.compareLongs(long, long) instruction_simplifier (after)
162 private static int compareLongs(long x, long y) {
489 expectEquals(-1, compareLongs(Long.MIN_VALUE, Long.MIN_VALUE + 1L));
490 expectEquals(-1, compareLongs(Long.MIN_VALUE, -1L));
491 expectEquals(-1, compareLongs(Long.MIN_VALUE, 0L));
492 expectEquals(-1, compareLongs(Long.MIN_VALUE, 1L));
493 expectEquals(-1, compareLongs(Long.MIN_VALUE, Long.MAX_VALUE));
494 expectEquals(-1, compareLongs(-1L, 0L));
495 expectEquals(-1, compareLongs(-1L, 1L));
496 expectEquals(-1, compareLongs(0L, 1L));
498 expectEquals(0, compareLongs(Long.MIN_VALUE, Long.MIN_VALUE));
499 expectEquals(0, compareLongs(-1L, -1L));
500 expectEquals(0, compareLongs(0L, 0L));
501 expectEquals(0, compareLongs(1L, 1L));
502 expectEquals(0, compareLongs(Long.MAX_VALUE, Long.MAX_VALUE));
504 expectEquals(1, compareLongs(0L, -1L));
505 expectEquals(1, compareLongs(1L, -1L));
506 expectEquals(1, compareLongs(1L, 0L));
507 expectEquals(1, compareLongs(Long.MAX_VALUE, Long.MIN_VALUE));
508 expectEquals(1, compareLongs(Long.MAX_VALUE, -1L));
509 expectEquals(1, compareLongs(Long.MAX_VALUE, 0L));
510 expectEquals(1, compareLongs(Long.MAX_VALUE, 1L));
511 expectEquals(1, compareLongs(Long.MAX_VALUE, Long.MAX_VALUE - 1L));
513 expectEquals(-1, compareLongs(0x111111117FFFFFFFL, 0x11111111FFFFFFFFL));
514 expectEquals(0, compareLongs(0x111111117FFFFFFFL, 0x111111117FFFFFFFL));
515 expectEquals(1, compareLongs(0x11111111FFFFFFFFL, 0x111111117FFFFFFFL));
522 expectEquals(expected, compareLongs(i, j));
527 expectEquals(-1, compareLongs(i, 0));
531 expectEquals(1, compareLongs(i, 0));