]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/97494 - XFAIL gcc.dg/vect/pr97428.c on !vect_hw_misalign
authorRichard Biener <rguenther@suse.de>
Thu, 11 Mar 2021 13:11:08 +0000 (14:11 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 11 Mar 2021 13:11:08 +0000 (14:11 +0100)
While we could at least vectorize it on targets which support
re-alignment tokens we fail to do this because of imperfections in
alignment analysis.  XFAIL when the HW cannot deal with misaligned
vector accesses for now.

2021-03-11  Richard Biener  <rguenther@suse.de>

PR testsuite/97494
* gcc.dg/vect/pr97428.c: XFAIL on !vect_hw_misalign.

gcc/testsuite/gcc.dg/vect/pr97428.c

index 49d537382564a444cae1fad154b7ffa25e42b73b..bbd743a76c40adaa6c50f7b60157ef68688bfa22 100644 (file)
@@ -40,5 +40,7 @@ void foo_i2(dcmlx4_t dst[], const dcmlx_t src[], int n)
    load and store groups.  */
 /* { dg-final { scan-tree-dump "Detected interleaving load of size 8" "vect" } } */
 /* { dg-final { scan-tree-dump "Detected interleaving store of size 16" "vect" } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" } } */
+/* We're not able to peel & apply re-aligning to make accesses well-aligned for !vect_hw_misalign,
+   but we could by peeling the stores for alignment and applying re-aligning loads.  */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { xfail { ! vect_hw_misalign } } } } */
 /* { dg-final { scan-tree-dump-not "gap of 6 elements" "vect" } } */