gcc/testsuite/gcc.target/i386/pr45617.c
raw| 1 | /* PR rtl-optimization/45617 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | |
| 5 | int f1 (int x) |
| 6 | { |
| 7 | return (x >> 23) > 12; |
| 8 | } |
| 9 | int f2 (int x) |
| 10 | { |
| 11 | return x > ((13 << 23) - 1); |
| 12 | } |
| 13 | int f3 (int x) |
| 14 | { |
| 15 | return (x >> 23) >= 12; |
| 16 | } |
| 17 | int f4 (int x) |
| 18 | { |
| 19 | return x >= (12 << 23); |
| 20 | } |
| 21 | |
| 22 | /* { dg-final { scan-assembler-not "sarl" } } */ |