gcc/testsuite/gcc.target/cris/pr93372-4.c
raw| 1 | /* Check that eliminable compare-instructions are eliminated. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | /* { dg-final { scan-assembler-not "\tcmp|\ttest" } } */ |
| 5 | |
| 6 | int f(int a, int *b) |
| 7 | { |
| 8 | /* As seen in powisf2, the result of a shift is checked for zeroness. */ |
| 9 | int c = a >> 1; |
| 10 | *b = (c == 0); |
| 11 | return c; |
| 12 | } |