Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr119096.c

raw
1 #include "tree-vect.h"
2
3 long __attribute__((noipa))
4 sum(int* A, int* B)
5 {
6 long total = 0;
7 for(int j = 0; j < 16; j++)
8 if((A[j] > 0) & (B[j] > 0))
9 total += (long)A[j];
10 return total;
11 }
12 int main()
13 {
14 int A[16] = { 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1 };
15 int B[16] = { };
16 check_vect ();
17 if (sum (A, B) != 0)
18 abort ();
19 return 0;
20 }
21