gcc/testsuite/gcc.target/s390/vector/vec-nopeel-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -mzarch -march=z13" } */ |
| 3 | /* { dg-require-effective-target s390_vx } */ |
| 4 | |
| 5 | int |
| 6 | foo (int * restrict a, int n) |
| 7 | { |
| 8 | int i, result = 0; |
| 9 | |
| 10 | for (i = 0; i < n * 4; i++) |
| 11 | result += a[i]; |
| 12 | return result; |
| 13 | } |
| 14 | |
| 15 | /* We do NOT want this loop to get peeled. Without peeling no scalar |
| 16 | memory add should appear. */ |
| 17 | /* { dg-final { scan-assembler-not "\ta\t" } } */ |