aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPeter Bergner <bergner@linux.ibm.com>2025-04-16 21:48:59 +0000
committerPeter Bergner <bergner@linux.ibm.com>2025-04-16 21:51:52 +0000
commit17c5ad25811a92c45083a0ad0b9c7e0d944c9521 (patch)
treed9f3b4b63765e6dfe135a441702d55edf9716b30 /gcc
parentc3e721f489ebed71fccb4a2ebb5add92e8ddc206 (diff)
downloadgcc-17c5ad25811a92c45083a0ad0b9c7e0d944c9521.zip
gcc-17c5ad25811a92c45083a0ad0b9c7e0d944c9521.tar.gz
gcc-17c5ad25811a92c45083a0ad0b9c7e0d944c9521.tar.bz2
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 <bergner@linux.ibm.com> gcc/testsuite/ PR tree-optimization/112822 * g++.dg/pr112822.C: Replace altivec vector attribute with a generic vector attribute.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/pr112822.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/pr112822.C b/gcc/testsuite/g++.dg/pr112822.C
index a855752..f88bd83 100644
--- a/gcc/testsuite/g++.dg/pr112822.C
+++ b/gcc/testsuite/g++.dg/pr112822.C
@@ -89,7 +89,7 @@ template <typename aj, typename cm> struct cg<aj, cm> { typedef aj cn; };
namespace ai {
template <typename cj, int> cj cp;
template <typename bu, typename cj, int> 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;