[committed][RISC-V] Fix test expectations after recent late-combine changes
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-29.c
blob14d45e4540a555536ab19bf3adcb2c933841a3bd
1 /* Disabling epilogues until we find a better way to deal with scans. */
2 /* { dg-additional-options "--param vect-epilogues-nomask=0 -fdump-tree-optimized-details-blocks" } */
3 /* { dg-require-effective-target vect_int } */
4 /* { dg-add-options bind_pic_locally } */
6 #include <stdarg.h>
7 #include "tree-vect.h"
9 #define N 128
10 #define OFF 3
12 /* unaligned load. */
14 int ia[N];
15 int ib[N+OFF];
17 __attribute__ ((noinline))
18 int main1 (int off)
20 int i;
22 for (i = 0; i < N+OFF; i++)
24 ib[i] = i;
27 for (i = 0; i < N; i++)
29 ia[i] = ib[i+off];
32 /* check results: */
33 #pragma GCC novector
34 for (i = 0; i < N; i++)
36 if (ia[i] != ib[i+off])
37 abort ();
40 return 0;
43 int main (void)
45 check_vect ();
47 main1 (0); /* aligned */
48 main1 (OFF); /* unaligned */
49 return 0;
52 /* For targets that don't support misaligned loads we version for the load.
53 (The store is aligned). */
55 /* The initialization induction loop (with aligned access) is also vectorized. */
56 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
57 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { xfail { ! vect_unaligned_possible } } } } */
58 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 0 "vect" } } */
59 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning." 1 "vect" {target { vect_no_align && { ! vect_hw_misalign } } } } } */
60 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */