gcc/testsuite/gcc.target/aarch64/sve/clastb_1_run.c
raw| 1 | /* { dg-do run { target aarch64_sve_hw } } */ |
| 2 | /* { dg-options "-O2 -ftree-vectorize" } */ |
| 3 | |
| 4 | #include "clastb_1.c" |
| 5 | |
| 6 | int __attribute__ ((optimize (1))) |
| 7 | main (void) |
| 8 | { |
| 9 | int a[N] = { |
| 10 | 11, -12, 13, 14, 15, 16, 17, 18, 19, 20, |
| 11 | 1, 2, -3, 4, 5, 6, 7, -8, 9, 10, |
| 12 | 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, |
| 13 | 31, 32 |
| 14 | }; |
| 15 | |
| 16 | int ret = condition_reduction (a, 1); |
| 17 | |
| 18 | if (ret != 17) |
| 19 | __builtin_abort (); |
| 20 | |
| 21 | return 0; |
| 22 | } |