]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Testsuite: Don't test vector-compare-1.C on strict alignment targets
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Tue, 2 Sep 2025 00:18:06 +0000 (17:18 -0700)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Tue, 2 Sep 2025 00:25:53 +0000 (17:25 -0700)
This testcase will fail on strict alignment targets due to
the requirement of doing a possible unaligned load. This fixes
that.

Note this testcase still fails on arm (and maybe riscv) targets while
having unaligned loads, they have slow ones.

Pushed as obvious after testing on x86_64-linux-gnu to make sure it
is still testing.

gcc/testsuite/ChangeLog:

* g++.dg/tree-ssa/vector-compare-1.C: Restrict to
non_strict_align targets.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/g++.dg/tree-ssa/vector-compare-1.C

index d9b2bc2533ed44f260f1c42d12be2c255c305aa7..e3f5421aba430f42592419c46145d4f7a20c3f74 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do compile { target c++11 } }
+// { dg-do compile { target { c++11 && non_strict_align } } }
 // { dg-options "-O2 -fdump-tree-optimized" }
 
 // PR tree-optimization/116651