Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr97139.c

raw
1 /* { dg-require-effective-target vect_int } */
2
3 #include "tree-vect.h"
4
5 int pix[4];
6
7 int __attribute__((noipa)) foo (void)
8 {
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];
14 }
15
16 int main ()
17 {
18 check_vect ();
19
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;
27 }