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 <andrew.pinski@oss.qualcomm.com>
-// { 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