Hi,

this patch fixes some testsuite-failures on mingw targets.

ChangeLog

2013-03-07  Kai Tietz  <kti...@redhat.com>

        * gcc.target/i386/movti.c: Adjust for x64 mingw.
        * gcc.target/i386/pr20020-1.c: Skip for x64 mingw target.
        * gcc.target/i386/pr20020-2.c: Likewise.
        * gcc.target/i386/pr20020-3.c: Likewise.
        * gcc.target/i386/pr53425-1.c: Likewise.
        * gcc.target/i386/pr53425-2.c: Likewise.
        * gcc.target/i386/pr55093.c: Likewise.
        * gcc.target/i386/pr53907.c: Adjust for LLP64 targets.

Ok to apply?

Kai

Index: gcc.target/i386/movti.c
===================================================================
--- gcc.target/i386/movti.c     (Revision 196507)
+++ gcc.target/i386/movti.c     (Arbeitskopie)
@@ -7,4 +7,4 @@ _Decimal128 test (void)
   return 1234123412341234.123412341234dl;
 }

-/* { dg-final { scan-assembler-not "movabs" } } */
+/* { dg-final { scan-assembler-not "movabs" { target { !
x86_64-*-mingw* } } } } */
Index: gcc.target/i386/pr20020-1.c
===================================================================
--- gcc.target/i386/pr20020-1.c (Revision 196507)
+++ gcc.target/i386/pr20020-1.c (Arbeitskopie)
@@ -1,5 +1,6 @@
 /* Check that 128-bit struct's are represented as TImode values.  */
 /* { dg-do compile { target int128 } } */
+/* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */
 /* { dg-options "-O2 -fdump-rtl-expand" } */

 struct shared_ptr_struct
Index: gcc.target/i386/pr20020-2.c
===================================================================
--- gcc.target/i386/pr20020-2.c (Revision 196507)
+++ gcc.target/i386/pr20020-2.c (Arbeitskopie)
@@ -1,5 +1,6 @@
 /* Check that 128-bit struct's are represented as TImode values.  */
 /* { dg-do compile { target int128 } } */
+/* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */
 /* { dg-options "-O2 -fdump-rtl-expand" } */

 struct shared_ptr_struct
Index: gcc.target/i386/pr20020-3.c
===================================================================
--- gcc.target/i386/pr20020-3.c (Revision 196507)
+++ gcc.target/i386/pr20020-3.c (Arbeitskopie)
@@ -1,5 +1,6 @@
 /* Check that 128-bit struct's are represented as TImode values.  */
 /* { dg-do compile { target int128 } } */
+/* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */
 /* { dg-options "-O2 -fdump-rtl-expand" } */

 struct shared_ptr_struct
Index: gcc.target/i386/pr53425-1.c
===================================================================
--- gcc.target/i386/pr53425-1.c (Revision 196507)
+++ gcc.target/i386/pr53425-1.c (Arbeitskopie)
@@ -1,6 +1,7 @@
 /* PR target/53425 */
 /* { dg-do compile { target { ! { ia32 } } } } */
 /* { dg-options "-O2 -mno-sse" } */
+/* { dg-skip-if "no SSE vector" { x86_64-*-mingw* } { "*" } { "" } } */

 typedef double __v2df __attribute__ ((__vector_size__ (16)));

Index: gcc.target/i386/pr53425-2.c
===================================================================
--- gcc.target/i386/pr53425-2.c (Revision 196507)
+++ gcc.target/i386/pr53425-2.c (Arbeitskopie)
@@ -1,6 +1,7 @@
 /* PR target/53425 */
 /* { dg-do compile { target { ! { ia32 } } } } */
 /* { dg-options "-O2 -mno-sse" } */
+/* { dg-skip-if "no SSE vector" { x86_64-*-mingw* } { "*" } { "" } } */

 typedef float __v2sf __attribute__ ((__vector_size__ (8)));

Index: gcc.target/i386/pr53907.c
===================================================================
--- gcc.target/i386/pr53907.c   (Revision 196507)
+++ gcc.target/i386/pr53907.c   (Arbeitskopie)
@@ -3,10 +3,12 @@

 #include <emmintrin.h>

+__extension__ typedef __UINTPTR_TYPE__ uintptr_t;
+
 __m128i x(char *s)
 {
   __m128i sz,z,mvec;
-  s-=((unsigned long) s)%16;
+  s-=((uintptr_t) s)%16;
   sz=_mm_load_si128((__m128i *)s);
   return sz;
 }
Index: gcc.target/i386/pr55093.c
===================================================================
--- gcc.target/i386/pr55093.c   (Revision 196507)
+++ gcc.target/i386/pr55093.c   (Arbeitskopie)
@@ -1,5 +1,6 @@
 /* { dg-do compile { target { ! { ia32 } } } } */
 /* { dg-options "-O2 -mx32 -maddress-mode=long" } */
+/* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */

 typedef union tree_node *tree;
 typedef const union tree_node *const_tree;

Reply via email to