libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr97139.c
blob1b9f31c7db396e84cce9138585dee733dbc06ab8
1 /* { dg-require-effective-target vect_int } */
3 #include "tree-vect.h"
5 int pix[4];
7 int __attribute__((noipa)) foo (void)
9 pix[0] = pix[0] / 4;
10 pix[1] = pix[1] / 4;
11 pix[2] = pix[2] / 4;
12 pix[3] = pix[3] / 4;
13 return pix[0] + pix[1] + pix[2] + pix[3];
16 int main ()
18 check_vect ();
20 pix[0] = 8;
21 pix[1] = 16;
22 pix[2] = 32;
23 pix[3] = 64;
24 if (foo () != 30)
25 __builtin_abort ();
26 return 0;