This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]