gcc/testsuite/gcc.target/xstormy16/shiftsi.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | unsigned long ashift_1(unsigned long x) { return x << 1; } |
| 5 | unsigned long ashift_2(unsigned long x) { return x << 2; } |
| 6 | unsigned long lshiftrt_1(unsigned long x) { return x >> 1; } |
| 7 | unsigned long lshiftrt_2(unsigned long x) { return x >> 2; } |
| 8 | long ashiftrt_1(long x) { return x >> 1; } |
| 9 | long ashiftrt_2(long x) { return x >> 2; } |
| 10 | |
| 11 | /* { dg-final { scan-assembler-not "mov " } } */ |
| 12 | /* { dg-final { scan-assembler-not "or " } } */ |