[testsuite] (checked in) fix g++.dg/ext/altivec-3.C

Janis Johnson janis187@us.ibm.com
Wed Jun 21 00:00:00 GMT 2006


A recent change to the C++ compiler causes this test to fail when run
on a powerpc64-linux system without hardware VMX support.  This patch,
suggested by Andrew Pinski, allows the test to continue to work.
Tested on powerpc64-linux with -m32/-m64, checked in on mainline.

2006-06-20  Janis Johnson  <janis187@us.ibm.com>

	PR c++/28113
	* g++.dg/ext/altivec-3.C: Remove cast from vector initializers.

Index: gcc/testsuite/g++.dg/ext/altivec-3.C
===================================================================
--- gcc/testsuite/g++.dg/ext/altivec-3.C	(revision 114805)
+++ gcc/testsuite/g++.dg/ext/altivec-3.C	(working copy)
@@ -23,10 +23,10 @@
 union u { __vector signed int v; signed int i[4]; };
 
 struct foo x_g = { 3, 4};
-struct vfoo vx_g = { 10, (vector signed int) {11, 12, 13, 14}, 15 };
-__vector signed int v_g = (vector signed int) {22, 23, 24, 25};
-struct vfoo vx2_g = { 30, (vector signed int) {31, 32, 33, 34}, 35 };
-__vector signed int v2_g = (vector signed int) {40, 41, 42, 43};
+struct vfoo vx_g = { 10, {11, 12, 13, 14}, 15 };
+__vector signed int v_g = {22, 23, 24, 25};
+struct vfoo vx2_g = { 30, {31, 32, 33, 34}, 35 };
+__vector signed int v2_g = {40, 41, 42, 43};
 int i_1 = 99, i_2 = 33;
 double d_2 = 1.5, d_3 = 1.75;
 double ld_1 = 1.25;



More information about the Gcc-patches mailing list