This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix gcc.dg/i386-sse-[45].c
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 16 Oct 2004 15:17:50 +0200
- Subject: Fix gcc.dg/i386-sse-[45].c
Again a couple of fallouts from RTH's patch, only on the 3.4 branch this time
because related to vector types.
Applied to 3.4 branch.
2004-10-16 ?Eric Botcazou ?<ebotcazou@libertysurf.fr>
* gcc.dg/i386-sse-4.c: Use 'float' as the base type for FP types.
* gcc.dg/i386-sse-5.c: Likewise.
--
Eric Botcazou
Index: gcc.dg/i386-sse-4.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/i386-sse-4.c,v
retrieving revision 1.1
diff -u -r1.1 i386-sse-4.c
--- gcc.dg/i386-sse-4.c 13 Jun 2003 06:13:51 -0000 1.1
+++ gcc.dg/i386-sse-4.c 16 Oct 2004 13:14:17 -0000
@@ -1,7 +1,7 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O0 -msse" } */
-typedef void __vr __attribute__ ((__mode__ (__V4SF__)));
+typedef float __vr __attribute__ ((__mode__ (__V4SF__)));
struct vector
{
Index: gcc.dg/i386-sse-5.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/i386-sse-5.c,v
retrieving revision 1.1
diff -u -r1.1 i386-sse-5.c
--- gcc.dg/i386-sse-5.c 6 Jan 2004 10:49:58 -0000 1.1
+++ gcc.dg/i386-sse-5.c 16 Oct 2004 13:14:17 -0000
@@ -1,6 +1,6 @@
/* { dg-do compile { target i?86-*-* } } */
/* { dg-options "-Winline -O2 -march=i386" } */
-typedef int v2df __attribute__ ((mode(V2DF)));
+typedef float v2df __attribute__ ((mode(V2DF)));
v2df p;
q(v2df t)
{ /* { dg-warning "SSE" "" } */