Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-early-break_101-pr113178.c

raw
1 /* { dg-do compile } */
2 /* { dg-add-options vect_early_break } */
3 /* { dg-require-effective-target vect_early_break } */
4 /* { dg-require-effective-target vect_int } */
5
6 struct PixelWeight {
7 int m_SrcStart;
8 int m_Weights[16];
9 };
10 char h;
11 void f(struct PixelWeight *pPixelWeights) {
12 int dest_g_m;
13 long tt;
14 for (int j = 0; j < 16; j++) {
15 int *p = 0;
16 if (j < pPixelWeights->m_SrcStart)
17 p = tt ? &pPixelWeights->m_Weights[0] : 0;
18 int pWeight = *p;
19 dest_g_m += pWeight;
20 }
21 h = dest_g_m;
22 }