Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-early-break_86.c

raw
1 /* { dg-add-options vect_early_break } */
2 /* { dg-additional-options "-std=gnu89" } */
3 /* { dg-require-effective-target vect_early_break_hw } */
4 /* { dg-require-effective-target vect_int } */
5
6 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target { ! "x86_64-*-* i?86-*-*" } } } } */
7
8 #include "tree-vect.h"
9
10 extern void abort ();
11 extern void exit (int);
12
13 __attribute__((noinline, noipa))
14 int f(x) {
15 int i;
16 for (i = 0; i < 8 && (x & 1) == 1; i++)
17 x >>= 1;
18 return i;
19 }
20 main() {
21 check_vect ();
22
23 if (f(4) != 0)
24 abort();
25 exit(0);
26 }