gcc/testsuite/gcc.target/aarch64/pr103741.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-march=armv8-a+sve -O1" } */ |
| 3 | |
| 4 | long int m, n; |
| 5 | |
| 6 | int |
| 7 | qux (int z) |
| 8 | { |
| 9 | return 4 >> z ? z : 0; |
| 10 | } |
| 11 | |
| 12 | int |
| 13 | bar (long int y) |
| 14 | { |
| 15 | return y ? 3 : 2; |
| 16 | } |
| 17 | |
| 18 | __attribute__ ((simd)) int |
| 19 | foo (int x) |
| 20 | { |
| 21 | long int a = x & m; |
| 22 | int b = bar (x) / n; |
| 23 | |
| 24 | return qux (b) == a; |
| 25 | } |
| 26 |