gcc/testsuite/gcc.target/cris/peep2-andsplit1.c
raw| 1 | /* Check that "opsplit1" with AND does its job. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | |
| 5 | int al0 (int x) |
| 6 | { |
| 7 | return x & 0x7fffffff; |
| 8 | } |
| 9 | |
| 10 | int alN (int x) |
| 11 | { |
| 12 | return x & 63; |
| 13 | } |
| 14 | |
| 15 | int ar0 (int x) |
| 16 | { |
| 17 | return x & (-32*2); |
| 18 | } |
| 19 | |
| 20 | int arN (int x) |
| 21 | { |
| 22 | return x & 0x80000000; |
| 23 | } |
| 24 | |
| 25 | /* { dg-final { scan-assembler-not "\[ \t\]and" } } */ |