1 /* Disabling epilogues until we find a better way to deal with scans. */
2 /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
3 /* { dg-require-effective-target vect_int } */
4 /* { dg-additional-options "-fno-tree-scev-cprop" } */
8 /* Statement used outside the loop.
9 NOTE: SCEV disabled to ensure the live operation is not removed before
11 __attribute__ ((noinline
)) int
12 liveloop (int start
, int n
, int *x
)
17 for (j
= 0; j
< n
; ++j
)
36 int ret
= liveloop (START
, MAX
, a
);
38 if (ret
!= MAX
+ START
)
44 __asm__
volatile ("");
45 if (a
[i
] != i
+START
+1)
50 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
51 /* { dg-final { scan-tree-dump-times "vec_stmt_relevant_p: stmt live but not relevant" 1 "vect" } } */