vect: Fix vect_reduction_def check for odd/even widen mult [PR116142]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / 20211118-1.c
blob67ef68420df2fdda31ecb4807f82cd0f484b1e13
1 /* { dg-do run } */
3 unsigned p[3];
4 void __attribute__((noipa))
5 bar (float *q, int n, int m)
7 for (int i = 0; i < m; ++i)
9 if (i == n)
11 unsigned a = p[1];
12 p[1] = a + 1;
13 *q = 1.;
15 q++;
19 int main()
21 #if __SIZEOF_FLOAT__ == __SIZEOF_INT__
22 bar ((float *)p, 1, 3);
23 if (((float *)p)[1] != 1.)
24 __builtin_abort ();
25 #endif
26 return 0;