Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-early-break_106-pr113374.c

raw
1 /* { dg-do compile } */
2 /* { dg-add-options vect_early_break } */
3
4 typedef __SIZE_TYPE__ size_t;
5 struct S { unsigned char *a, *b; };
6
7 void
8 foo (struct S x)
9 {
10 for (size_t i = x.b - x.a; i > 0; --i)
11 {
12 size_t t = x.b - x.a;
13 size_t u = i - 1;
14 if (u >= t)
15 __builtin_abort ();
16 if (x.a[i - 1]--)
17 break;
18 }
19 }