Debian Codegraph @

gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-small.c

raw
1 /* { dg-do compile { target { lp64 && s390_vx } } } */
2 /* { dg-options "-mzarch -march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops" } */
3
4 /* { dg-additional-options "--param=min-vect-loop-bound=0 --param=vect-partial-vector-usage=2 -fno-trapping-math" } */
5
6 #define SZ 333
7
8 void foo (char *restrict a, char *restrict b, char *restrict c, int n)
9 {
10 #pragma gcc unroll 0
11 for (int i = 0; i < 17; i++)
12 c[i] = a[i] + b[i];
13 /* { dg-final { scan-assembler-times "lhi\t%r\[0-9\]*,0\n" 1 } } */
14 }
15