1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fno-tree-scev-cprop" } */
6 /* Statement used outside the loop.
7 NOTE: SCEV disabled to ensure the live operation is not removed before
9 __attribute__ ((noinline
)) int
10 liveloop (int start
, int n
, int *x
)
15 for (j
= 0; j
< n
; ++j
)
34 int ret
= liveloop (START
, MAX
, a
);
36 if (ret
!= MAX
+ START
)
41 __asm__
volatile ("");
42 if (a
[i
] != i
+START
+1)
47 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
48 /* { dg-final { scan-tree-dump-times "vec_stmt_relevant_p: stmt live but not relevant" 1 "vect" } } */