1 /* { dg-require-effective-target vect_int } */
5 /* Two Statements used outside the loop. SCEV cannot hoist the stmt. */
6 __attribute__ ((noinline
)) int
7 liveloop (int start
, int n
, int *x
, int *y
)
13 for (j
= 0; j
< n
; ++j
)
36 __asm__
volatile ("");
41 int ret
= liveloop (START
, MAX
, a
, b
);
43 if (ret
!= (MAX
- 1) * 3)
48 __asm__
volatile ("");
49 if (a
[i
] != i
+START
+1)
54 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
55 /* { dg-final { scan-tree-dump-times "vec_stmt_relevant_p: stmt live but not relevant" 2 "vect" } } */