| 1 |
/* { dg-do run { target { aarch64_sve128_hw && aarch64_sve2_hw } } } */ |
| 2 |
/* { dg-additional-options "-O3 -march=armv9-a+sve2 -msve-vector-bits=128 --param aarch64-autovec-preference=sve-only" } */ |
| 3 |
|
| 4 |
int main(int argc, char *argv[]) { |
| 5 |
|
| 6 |
__attribute__((vector_size((4) * sizeof(int)))) int i0; |
| 7 |
__attribute__((vector_size((4) * sizeof(int)))) int i1; |
| 8 |
__attribute__((vector_size((4) * sizeof(int)))) int ires; |
| 9 |
int i; |
| 10 |
|
| 11 |
i0 = (__attribute__((vector_size((4) * sizeof(int)))) int){(int)argc, 1, 2, |
| 12 |
10}; |
| 13 |
i1 = (__attribute__((vector_size((4) * sizeof(int)))) int){0, 3, 2, |
| 14 |
(int)-23}; |
| 15 |
; |
| 16 |
do { |
| 17 |
ires = (i0 > i1); |
| 18 |
do { |
| 19 |
int __i; |
| 20 |
for (__i = 0; __i < 4; __i++) { |
| 21 |
if ((ires)[__i] != ((i0)[__i] > (i1)[__i] ? -1 : 0)) { |
| 22 |
__builtin_printf("%i != ((" |
| 23 |
"%i" |
| 24 |
" " |
| 25 |
">" |
| 26 |
" " |
| 27 |
"%i" |
| 28 |
" ? -1 : 0) ", |
| 29 |
(ires)[__i], (i0)[__i], (i1)[__i]); |
| 30 |
__builtin_abort(); |
| 31 |
} |
| 32 |
} |
| 33 |
} while (0); |
| 34 |
} while (0); |
| 35 |
|
| 36 |
return 0; |
| 37 |
} |