1 /* { dg-require-effective-target vect_long } */
2 /* { dg-require-effective-target vect_shift } */
3 /* { dg-additional-options "-fno-tree-scev-cprop" } */
7 /* Statement used outside the loop.
8 NOTE: SCEV disabled to ensure the live operation is not removed before
10 __attribute__ ((noinline
)) int
11 liveloop (int start
, int n
, int *x
, int *y
)
17 for (j
= 0; j
< n
; ++j
)
40 __asm__
volatile ("");
44 int ret
= liveloop (START
, MAX
, a
, b
);
51 __asm__
volatile ("");
52 if (a
[i
] != i
+START
+1)
57 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
58 /* { dg-final { scan-tree-dump-times "vec_stmt_relevant_p: stmt live but not relevant" 1 "vect" } } */