So arm is a bit special, non_strict_align is sometimes true but
it does not represent the true value of STRICT_ALIGN inside the compiler,
so this testcase fails. This disables the testcase for arm targets where
STRICT_ALIGN is always true even when there is unaligned loads.

Pushed as obvious after testing on x86_64 and arm-eabi (with -march=armv7) to 
make
sure the testcase no longer run on arm.

        PR testsuite/121752
gcc/testsuite/ChangeLog:

        * g++.dg/tree-ssa/vector-compare-1.C: Disable for arm targets.

Signed-off-by: Andrew Pinski <[email protected]>
---
 gcc/testsuite/g++.dg/tree-ssa/vector-compare-1.C | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/tree-ssa/vector-compare-1.C 
b/gcc/testsuite/g++.dg/tree-ssa/vector-compare-1.C
index e3f5421aba4..af280f62a91 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/vector-compare-1.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/vector-compare-1.C
@@ -1,4 +1,6 @@
-// { dg-do compile { target { c++11 && non_strict_align } } }
+// Even though arm sometimes has unaligned loads, memcmp is not transformed so 
disable
+// the test for arm targets.
+// { dg-do compile { target { c++11 && { non_strict_align && { ! { arm*-*-* } 
} } } } }
 // { dg-options "-O2 -fdump-tree-optimized" }
 
 // PR tree-optimization/116651
-- 
2.43.0

Reply via email to