https://gcc.gnu.org/g:ade8fda5115643835b2f4d2e7bbbbb4a2049e0ad
commit ade8fda5115643835b2f4d2e7bbbbb4a2049e0ad Author: Alexandre Oliva <ol...@adacore.com> Date: Thu Apr 10 16:47:03 2025 -0300 [testsuite] [ppc] compile [PR112822] with -mvsx g++.dg/pr112822.C uses altivec vectors explicitly, but it expects this feature to be enabled by default on targets that recognize the attribute, which is not a given on older ppc cpus, where the compiler recommends recompiling with -mvsx. Since it's just a compilation test, we don't seem to need to test for e.g. assembler support. for gcc/testsuite/ChangeLog PR tree-optimization/112822 * g++.dg/pr112822.C: Compile with -mvsx on ppc. Diff: --- gcc/testsuite/g++.dg/pr112822.C | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/testsuite/g++.dg/pr112822.C b/gcc/testsuite/g++.dg/pr112822.C index a8557522467d..9ec5707eb4c4 100644 --- a/gcc/testsuite/g++.dg/pr112822.C +++ b/gcc/testsuite/g++.dg/pr112822.C @@ -1,6 +1,8 @@ /* PR tree-optimization/112822 */ /* { dg-do compile { target c++17 } } */ /* { dg-options "-w -O2" } */ +/* Required for altivec double vectors. */ +/* { dg-additional-options "-mvsx" { target powerpc*-*-* } } */ /* Verify we do not ICE on the following noisy creduced test case. */