Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-early-break_99-pr113287.c

raw
1 /* { dg-add-options vect_early_break } */
2 /* { dg-require-effective-target vect_early_break } */
3 /* { dg-require-effective-target bitint65535 } */
4
5 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
6
7 #include "tree-vect.h"
8
9 _BitInt(998) b;
10 char c;
11 char d;
12 char e;
13 char f;
14 char g;
15 char h;
16 char i;
17 char j;
18
19 void
20 foo(char y, _BitInt(9020) a, char *r)
21 {
22 char x = __builtin_mul_overflow_p(a << sizeof(a), y, 0);
23 x += c + d + e + f + g + h + i + j + b;
24 *r = x;
25 }
26
27 int
28 main(void)
29 {
30 check_vect ();
31
32 char x;
33 foo(5, 5, &x);
34 if (x != 1)
35 __builtin_abort();
36 return 0;
37 }