]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Disable vector-compare-1.C for arm targets [PR121752]
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Mon, 12 Jan 2026 03:57:20 +0000 (19:57 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Mon, 12 Jan 2026 04:01:51 +0000 (20:01 -0800)
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>
gcc/testsuite/g++.dg/tree-ssa/vector-compare-1.C

index e3f5421aba430f42592419c46145d4f7a20c3f74..af280f62a91a1586b0db2c7cac43a6b70ef476d2 100644 (file)
@@ -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