i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr102318.c
blobcc58efacecdf82fbd6b811443bb5c560e4734745
1 /* { dg-do compile } */
3 void
4 vec_slp_int16_t (short int *restrict a, short int *restrict b, int n)
6 short int x0 = b[0];
7 short int x1 = b[1];
8 short int x2 = b[2];
9 short int x3 = b[3];
10 for (int i = 0; i < n; ++i)
12 x0 += a[i * 4];
13 x1 += a[i * 4 + 1];
14 x2 += a[i * 4 + 2];
15 x3 += a[i * 4 + 3];
17 b[0] = x0;
18 b[1] = x1;
19 b[2] = x2;
20 b[3] = x3;