https://gcc.gnu.org/g:e63baf1db6888a5e245f3fdf90d4db39baef1dad
commit r16-6700-ge63baf1db6888a5e245f3fdf90d4db39baef1dad Author: Andrew Pinski <[email protected]> Date: Sun Jan 11 19:57:20 2026 -0800 testsuite: Disable vector-compare-1.C for arm targets [PR121752] 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]> Diff: --- 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 e3f5421aba43..af280f62a91a 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
