Home | History | Annotate | Download | only in src

Lines Matching refs:noinline

53   static  char $noinline$byteToChar   (byte v) { if (doThrow) throw new Error(); return  (char)v; }
54 static short $noinline$byteToShort (byte v) { if (doThrow) throw new Error(); return (short)v; }
55 static int $noinline$byteToInt (byte v) { if (doThrow) throw new Error(); return (int)v; }
56 static long $noinline$byteToLong (byte v) { if (doThrow) throw new Error(); return (long)v; }
57 static byte $noinline$charToByte (char v) { if (doThrow) throw new Error(); return (byte)v; }
58 static short $noinline$charToShort (char v) { if (doThrow) throw new Error(); return (short)v; }
59 static int $noinline$charToInt (char v) { if (doThrow) throw new Error(); return (int)v; }
60 static long $noinline$charToLong (char v) { if (doThrow) throw new Error(); return (long)v; }
61 static byte $noinline$shortToByte (short v) { if (doThrow) throw new Error(); return (byte)v; }
62 static char $noinline$shortToChar (short v) { if (doThrow) throw new Error(); return (char)v; }
63 static int $noinline$shortToInt (short v) { if (doThrow) throw new Error(); return (int)v; }
64 static long $noinline$shortToLong (short v) { if (doThrow) throw new Error(); return (long)v; }
65 static byte $noinline$intToByte (int v) { if (doThrow) throw new Error(); return (byte)v; }
66 static char $noinline$intToChar (int v) { if (doThrow) throw new Error(); return (char)v; }
67 static short $noinline$intToShort (int v) { if (doThrow) throw new Error(); return (short)v; }
68 static long $noinline$intToLong (int v) { if (doThrow) throw new Error(); return (long)v; }
69 static byte $noinline$longToByte (long v) { if (doThrow) throw new Error(); return (byte)v; }
70 static char $noinline$longToChar (long v) { if (doThrow) throw new Error(); return (char)v; }
71 static short $noinline$longToShort (long v) { if (doThrow) throw new Error(); return (short)v; }
72 static int $noinline$longToInt (long v) { if (doThrow) throw new Error(); return (int)v; }
79 /// CHECK-START-ARM64: long Main.$opt$noinline$translate(long, byte) instruction_simplifier_arm64 (before)
85 /// CHECK-START-ARM64: long Main.$opt$noinline$translate(long, byte) instruction_simplifier_arm64 (after)
90 /// CHECK-START-ARM64: long Main.$opt$noinline$translate(long, byte) instruction_simplifier_arm64 (after)
94 /// CHECK-START-ARM64: long Main.$opt$noinline$translate(long, byte) disassembly (after)
97 public static long $opt$noinline$translate(long l, byte b) {
109 /// CHECK-START-ARM64: int Main.$opt$noinline$sameInput(int) instruction_simplifier_arm64 (before)
115 /// CHECK-START-ARM64: int Main.$opt$noinline$sameInput(int) instruction_simplifier_arm64 (after)
121 /// CHECK-START-ARM64: int Main.$opt$noinline$sameInput(int) instruction_simplifier_arm64 (after)
124 public static int $opt$noinline$sameInput(int a) {
134 /// CHECK-START-ARM64: int Main.$opt$noinline$multipleUses(int) instruction_simplifier_arm64 (before)
144 /// CHECK-START-ARM64: int Main.$opt$noinline$multipleUses(int) instruction_simplifier_arm64 (after)
152 /// CHECK-START-ARM64: int Main.$opt$noinline$multipleUses(int) instruction_simplifier_arm64 (after)
156 public static int $opt$noinline$multipleUses(int arg) {
174 /// CHECK-START-ARM64: void Main.$opt$noinline$testAnd(long, long) instruction_simplifier_arm64 (after)
178 /// CHECK-START-ARM64: void Main.$opt$noinline$testAnd(long, long) disassembly (after)
183 static void $opt$noinline$testAnd(long a, long b) {
185 assertLongEquals((a & $noinline$LongShl(b, 5)) | (a & $noinline$longToByte(b)),
189 /// CHECK-START-ARM64: void Main.$opt$noinline$testOr(int, int) instruction_simplifier_arm64 (after)
193 /// CHECK-START-ARM64: void Main.$opt$noinline$testOr(int, int) disassembly (after)
198 static void $opt$noinline$testOr(int a, int b) {
200 assertIntEquals((a | $noinline$IntShr(b, 6)) | (a | $noinline$intToChar(b)),
204 /// CHECK-START-ARM64: void Main.$opt$noinline$testXor(long, long) instruction_simplifier_arm64 (after)
208 /// CHECK-START-ARM64: void Main.$opt$noinline$testXor(long, long) disassembly (after)
213 static void $opt$noinline$testXor(long a, long b) {
215 assertLongEquals((a ^ $noinline$LongUshr(b, 7)) | (a ^ $noinline$longToInt(b)),
219 /// CHECK-START-ARM64: void Main.$opt$noinline$testNeg(int) instruction_simplifier_arm64 (after)
223 /// CHECK-START-ARM64: void Main.$opt$noinline$testNeg(int) disassembly (after)
228 static void $opt$noinline$testNeg(int a) {
230 assertIntEquals(-$noinline$IntShl(a, 8) | -$noinline$intToShort(a),
250 assertIntEquals(a + $noinline$byteToChar (b), a + (char)b);
252 assertIntEquals(a + $noinline$byteToShort(b), a + (short)b);
261 assertIntEquals (a + $noinline$byteToInt (b), a + (int)b);
263 assertLongEquals(a + $noinline$byteToLong(b), a + (long)b);
283 assertLongEquals(a + $noinline$byteToChar (b), a + (char)b);
287 assertLongEquals(a + $noinline$byteToShort(b), a + (short)b);
288 assertLongEquals(a + $noinline$byteToInt (b), a + (int)b);
305 assertIntEquals(a + $noinline$charToByte (b), a + (byte)b);
306 assertIntEquals(a + $noinline$charToShort(b), a + (short)b);
315 assertIntEquals (a + $noinline$charToInt (b), a + (int)b);
317 assertLongEquals(a + $noinline$charToLong(b), a + (long)b);
333 assertLongEquals(a + $noinline$charToByte (b), a + (byte)b);
334 assertLongEquals(a + $noinline$charToShort(b), a + (short)b);
336 assertLongEquals(a + $noinline
353 assertIntEquals(a + $noinline$shortToByte (b), a + (byte)b);
354 assertIntEquals(a + $noinline$shortToChar (b), a + (char)b);
363 assertIntEquals (a + $noinline$shortToInt (b), a + (int)b);
365 assertLongEquals(a + $noinline$shortToLong (b), a + (long)b);
380 assertLongEquals(a + $noinline$shortToByte(b), a + (byte)b);
381 assertLongEquals(a + $noinline$shortToChar(b), a + (char)b);
383 assertLongEquals(a + $noinline$shortToInt (b), a + (int)b);
408 assertLongEquals(a + $noinline$intToByte (b), a + (byte)b);
409 assertLongEquals(a + $noinline$intToChar (b), a + (char)b);
410 assertLongEquals(a + $noinline$intToShort(b), a + (short)b);
411 assertLongEquals(a + $noinline$intToLong (b), a + (long)b);
430 assertLongEquals(a + $noinline$longToByte (b), a + (byte)b);
431 assertLongEquals(a + $noinline$longToChar (b), a + (char)b);
432 assertLongEquals(a + $noinline$longToShort(b), a + (short)b);
433 assertLongEquals(a + $noinline$longToInt (b), a + (int)b);
437 static int $noinline$IntShl(int b, int c) {
441 static int $noinline$IntShr(int b, int c) {
445 static int $noinline$IntUshr(int b, int c) {
494 assertIntEquals(a + $noinline$IntShl(b, 1), a + (b << 1));
495 assertIntEquals(a + $noinline$IntShl(b, 6), a + (b << 6));
496 assertIntEquals(a + $noinline$IntShl(b, 7), a + (b << 7));
497 assertIntEquals(a + $noinline$IntShl(b, 8), a + (b << 8));
498 assertIntEquals(a + $noinline$IntShl(b, 14), a + (b << 14));
499 assertIntEquals(a + $noinline$IntShl(b, 15), a + (b << 15));
500 assertIntEquals(a + $noinline$IntShl(b, 16), a + (b << 16));
501 assertIntEquals(a + $noinline$IntShl(b, 30), a + (b << 30));
502 assertIntEquals(a + $noinline$IntShl(b, 31), a + (b << 31));
503 assertIntEquals(a + $noinline$IntShl(b, 32), a + (b << $opt$inline$IntConstant32()));
504 assertIntEquals(a + $noinline$IntShl(b, 62), a + (b << $opt$inline$IntConstant62()));
505 assertIntEquals(a + $noinline$IntShl(b, 63), a + (b << $opt$inline$IntConstant63()));
507 assertIntEquals(a - $noinline$IntShr(b, 1), a - (b >> 1));
508 assertIntEquals(a - $noinline$IntShr(b, 6), a - (b >> 6));
509 assertIntEquals(a - $noinline$IntShr(b, 7), a - (b >> 7));
510 assertIntEquals(a - $noinline$IntShr(b, 8), a - (b >> 8));
511 assertIntEquals(a - $noinline$IntShr(b, 14), a - (b >> 14));
512 assertIntEquals(a - $noinline$IntShr(b, 15), a - (b >> 15));
513 assertIntEquals(a - $noinline$IntShr(b, 16), a - (b >> 16));
514 assertIntEquals(a - $noinline$IntShr(b, 30), a - (b >> 30));
515 assertIntEquals(a - $noinline$IntShr(b, 31), a - (b >> 31));
516 assertIntEquals(a - $noinline$IntShr(b, 32), a - (b >> $opt$inline$IntConstant32()));
517 assertIntEquals(a - $noinline$IntShr(b, 62), a - (b >> $opt$inline$IntConstant62()));
518 assertIntEquals(a - $noinline$IntShr(b, 63), a - (b >> $opt$inline$IntConstant63()));
520 assertIntEquals(a ^ $noinline$IntUshr(b, 1), a ^ (b >>> 1));
521 assertIntEquals(a ^ $noinline$IntUshr(b, 6), a ^ (b >>> 6));
522 assertIntEquals(a ^ $noinline$IntUshr(b, 7), a ^ (b >>> 7));
523 assertIntEquals(a ^ $noinline$IntUshr(b, 8), a ^ (b >>> 8));
524 assertIntEquals(a ^ $noinline$IntUshr(b, 14), a ^ (b >>> 14));
525 assertIntEquals(a ^ $noinline$IntUshr(b, 15), a ^ (b >>> 15));
526 assertIntEquals(a ^ $noinline$IntUshr(b, 16), a ^ (b >>> 16));
527 assertIntEquals(a ^ $noinline$IntUshr(b, 30), a ^ (b >>> 30));
528 assertIntEquals(a ^ $noinline$IntUshr(b, 31), a ^ (b >>> 31));
529 assertIntEquals(a ^ $noinline$IntUshr(b, 32), a ^ (b >>> $opt$inline$IntConstant32()));
530 assertIntEquals(a ^ $noinline$IntUshr(b, 62), a ^ (b >>> $opt$inline$IntConstant62()));
531 assertIntEquals(a ^ $noinline$IntUshr(b, 63), a ^ (b >>> $opt$inline$IntConstant63()));
541 static long $noinline$LongShl(long b, long c) {
545 static long $noinline$LongShr(long b, long c) {
549 static long $noinline$LongUshr(long b, long c) {
599 assertLongEquals(a + $noinline$LongShl(b, 1), a + (b << 1));
600 assertLongEquals(a + $noinline$LongShl(b, 6), a + (b << 6));
601 assertLongEquals(a + $noinline$LongShl(b, 7), a + (b << 7));
602 assertLongEquals(a + $noinline$LongShl(b, 8), a + (b << 8));
603 assertLongEquals(a + $noinline$LongShl(b, 14), a + (b << 14));
604 assertLongEquals(a + $noinline$LongShl(b, 15), a + (b << 15));
605 assertLongEquals(a + $noinline$LongShl(b, 16), a + (b << 16));
606 assertLongEquals(a + $noinline$LongShl(b, 30), a + (b << 30));
607 assertLongEquals(a + $noinline$LongShl(b, 31), a + (b << 31));
608 assertLongEquals(a + $noinline$LongShl(b, 32), a + (b << 32));
609 assertLongEquals(a + $noinline$LongShl(b, 62), a + (b << 62));
610 assertLongEquals(a + $noinline$LongShl(b, 63), a + (b << 63));
612 assertLongEquals(a - $noinline$LongShr(b, 1), a - (b >> 1));
613 assertLongEquals(a - $noinline$LongShr(b, 6), a - (b >> 6));
614 assertLongEquals(a - $noinline$LongShr(b, 7), a - (b >> 7));
615 assertLongEquals(a - $noinline$LongShr(b, 8), a - (b >> 8));
616 assertLongEquals(a - $noinline$LongShr(b, 14), a - (b >> 14));
617 assertLongEquals(a - $noinline$LongShr(b, 15), a - (b >> 15));
618 assertLongEquals(a - $noinline$LongShr(b, 16), a - (b >> 16));
619 assertLongEquals(a - $noinline$LongShr(b, 30), a - (b >> 30));
620 assertLongEquals(a - $noinline$LongShr(b, 31), a - (b >> 31));
621 assertLongEquals(a - $noinline$LongShr(b, 32), a - (b >> 32));
622 assertLongEquals(a - $noinline$LongShr(b, 62), a - (b >> 62));
623 assertLongEquals(a - $noinline$LongShr(b, 63), a - (b >> 63));
625 assertLongEquals(a ^ $noinline$LongUshr(b, 1), a ^ (b >>> 1));
626 assertLongEquals(a ^ $noinline$LongUshr(b, 6), a ^ (b >>> 6));
627 assertLongEquals(a ^ $noinline$LongUshr(b, 7), a ^ (b >>> 7));
628 assertLongEquals(a ^ $noinline$LongUshr(b, 8), a ^ (b >>> 8));
629 assertLongEquals(a ^ $noinline$LongUshr(b, 14), a ^ (b >>> 14));
630 assertLongEquals(a ^ $noinline$LongUshr(b, 15), a ^ (b >>> 15));
631 noinline$LongUshr(b, 16), a ^ (b >>> 16));
632 assertLongEquals(a ^ $noinline$LongUshr(b, 30), a ^ (b >>> 30));
633 assertLongEquals(a ^ $noinline$LongUshr(b, 31), a ^ (b >>> 31));
634 assertLongEquals(a ^ $noinline$LongUshr(b, 32), a ^ (b >>> 32));
635 assertLongEquals(a ^ $noinline$LongUshr(b, 62), a ^ (b >>> 62));
636 assertLongEquals(a ^ $noinline$LongUshr(b, 63), a ^ (b >>> 63));
641 assertLongEquals(10000L - 3L, $opt$noinline$translate(10000L, (byte)3));
642 assertLongEquals(-10000L - -3L, $opt$noinline$translate(-10000L, (byte)-3));
644 assertIntEquals(4096, $opt$noinline$sameInput(512));
645 assertIntEquals(-8192, $opt$noinline$sameInput(-1024));
647 assertIntEquals(((1 << 23) | 1), $opt$noinline$multipleUses(1));
648 assertIntEquals(((1 << 20) | 5), $opt$noinline$multipleUses(1 << 20));
672 $opt$noinline$testNeg((int)inputs[i]);
674 $opt$noinline$testAnd(inputs[i], inputs[j]);
675 $opt$noinline$testOr((int)inputs[i], (int)inputs[j]);
676 $opt$noinline$testXor(inputs[i], inputs[j]);