gcc/testsuite/gcc.target/xtensa/constsynth_2insns.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Os" } */ |
| 3 | |
| 4 | int test_0(void) |
| 5 | { |
| 6 | return 4095; |
| 7 | } |
| 8 | |
| 9 | int test_1(void) |
| 10 | { |
| 11 | return 2147483647; |
| 12 | } |
| 13 | |
| 14 | int test_2(void) |
| 15 | { |
| 16 | return -34816; |
| 17 | } |
| 18 | |
| 19 | int test_3(void) |
| 20 | { |
| 21 | return -2049; |
| 22 | } |
| 23 | |
| 24 | int test_4(void) |
| 25 | { |
| 26 | return 2048; |
| 27 | } |
| 28 | |
| 29 | int test_5(void) |
| 30 | { |
| 31 | return 34559; |
| 32 | } |
| 33 | |
| 34 | int test_6(void) |
| 35 | { |
| 36 | return 43680; |
| 37 | } |
| 38 | |
| 39 | void test_7(int *p) |
| 40 | { |
| 41 | *p = -1432354816; |
| 42 | } |
| 43 | |
| 44 | /* { dg-final { scan-assembler-not "l32r" } } */ |