| 1 |
/* { dg-additional-options "-O2 -ftree-vectorize -fno-vect-cost-model -fdump-tree-vect-details" } */ |
| 2 |
/* { dg-additional-options "-march=armv8-a+sve -msve-vector-bits=256" { target aarch64_sve256_hw } } */ |
| 3 |
long a[44]; |
| 4 |
short d, e = -7; |
| 5 |
__attribute__((noipa)) void b(char f, short j, short k, unsigned l) { |
| 6 |
for (int g = 0; g < 9; g += f) |
| 7 |
for (int b = 0; b < 90; b -= k) |
| 8 |
for (int h = 0; h < f; h++) |
| 9 |
for (short i = 0; i < 15; i += 4) |
| 10 |
if (!l) |
| 11 |
a[i] = j; |
| 12 |
} |
| 13 |
int main() { |
| 14 |
for (long c = 0; c < 2; ++c) |
| 15 |
a[c] = 7; |
| 16 |
b(9, d, e, 5); |
| 17 |
if (!a[0]) |
| 18 |
__builtin_abort(); |
| 19 |
} |
| 20 |
/* { dg-final { scan-tree-dump "MASK_SCATTER_STORE" "vect" { target aarch64_sve256_hw } } } */ |