From: Peter Bergner Date: Wed, 16 Apr 2025 21:48:59 +0000 (+0000) Subject: testsuite: Replace altivec vector attribute with generic equivalent [PR112822] X-Git-Tag: basepoints/gcc-16~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17c5ad25811a92c45083a0ad0b9c7e0d944c9521;p=thirdparty%2Fgcc.git testsuite: Replace altivec vector attribute with generic equivalent [PR112822] Usage of the altivec vector attribute requires use of the -maltivec option. Replace with a generic equivalent which allows building the test case on multiple other targets and non-altivec ppc cpus, but still diagnoses the ICE on unfixed compilers. 2025-04-16 Peter Bergner gcc/testsuite/ PR tree-optimization/112822 * g++.dg/pr112822.C: Replace altivec vector attribute with a generic vector attribute. --- diff --git a/gcc/testsuite/g++.dg/pr112822.C b/gcc/testsuite/g++.dg/pr112822.C index a8557522467..f88bd833c92 100644 --- a/gcc/testsuite/g++.dg/pr112822.C +++ b/gcc/testsuite/g++.dg/pr112822.C @@ -89,7 +89,7 @@ template struct cg { typedef aj cn; }; namespace ai { template cj cp; template void cl(bu *cr, cj cs) { ct(cr, cs); } -typedef __attribute__((altivec(vector__))) double co; +typedef double co __attribute__ ((vector_size (16))); void ct(double *cr, co cs) { *(co *)cr = cs; } struct cq { co q;