[PATCH, testsuite]: Committed: Various fixes in gcc.target/i386 directory.

Uros Bizjak ubizjak@gmail.com
Mon Aug 27 08:53:00 GMT 2007


Hello!

2007-08-23  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.target/i386/pow-1.c: Fix scan-assembler-not.
	* gcc.target/i386/asm-3.c: Skip -fpic ilp32 targets only.
	* gcc.target/i386/tailcall-1.c: Ditto.
	* gcc.target/i386/20020523-1.c: Require nonpic effective target.
	* gcc.target/i386/local2.c: Ditto.
	* gcc.target/i386/stack-prot-kernel.c: Ditto.
	* gcc.target/i386/20011119-1.c: Ditto.
	* gcc.target/i386/fastcall-1.c: Fix target selector.

Patch was tested by running the testsuite on i686-pc-linux-gnu. Patch
is committed to mainline SVN.

Uros.
-------------- next part --------------
Index: pow-1.c
===================================================================
--- pow-1.c	(revision 127825)
+++ pow-1.c	(working copy)
@@ -21,4 +21,4 @@
   return __builtin_pow (x, -5./2.);
 }
 
-/* { dg-final { scan-assembler-not "call" } } */
+/* { dg-final { scan-assembler-not "call\[ \t\]*pow" } } */
Index: 20020523-1.c
===================================================================
--- 20020523-1.c	(revision 127825)
+++ 20020523-1.c	(working copy)
@@ -1,10 +1,10 @@
 /* PR target/6753
    This testcase was miscompiled because sse_mov?fcc_const0*
    patterns were missing earlyclobber.  */
+
 /* { dg-do run } */
-/* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */
-/* { dg-skip-if "PIC default" { *-*-darwin* } { "*" } { "" } } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-require-effective-target nonpic } */
 /* { dg-options "-march=pentium3 -msse -ffast-math -O2" } */
 
 extern void abort (void);
Index: asm-3.c
===================================================================
--- asm-3.c	(revision 127825)
+++ asm-3.c	(working copy)
@@ -1,8 +1,7 @@
 /* PR inline-asm/6806 */
 /* { dg-do run } */
-/* { dg-options "-O2" } */
 /* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */
-/* { dg-skip-if "PIC default" { *-*-darwin* } { "*" } { "" } } */
+/* { dg-options "-O2" } */
 
 extern void abort (void);
 
Index: tailcall-1.c
===================================================================
--- tailcall-1.c	(revision 127825)
+++ tailcall-1.c	(working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && ilp32 } { "-fpic" "-fPIC" } { "" } } */
+/* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */
 /* { dg-options "-O2" } */
 
 typedef unsigned int Cardinal;
Index: fastcall-1.c
===================================================================
--- fastcall-1.c	(revision 127825)
+++ fastcall-1.c	(working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i386-pc-mingw32* i386-pc-cygwin* } } */
+/* { dg-do compile { target i?86-*-mingw32* i?86-*-cygwin* } } */
 
 void
 __attribute__ ((fastcall))
Index: local2.c
===================================================================
--- local2.c	(revision 127825)
+++ local2.c	(working copy)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-require-effective-target nonpic } */
 /* { dg-options "-O2 -funit-at-a-time -fomit-frame-pointer" } */
-/* { dg-skip-if "PR 25214" { ilp32 } { "-fpic" "-fPIC" } { "" } } */
 /* { dg-final { scan-assembler-not "sub\[^\\n\]*sp" } } */
 
 static __attribute__ ((noinline)) q ();
Index: stack-prot-kernel.c
===================================================================
--- stack-prot-kernel.c	(revision 127825)
+++ stack-prot-kernel.c	(working copy)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target lp64 } */
-/* { dg-skip-if "darwin x86_64 is pic" { *-*-darwin* } { "*" } { "" } } */
+/* { dg-require-effective-target nonpic } */
 /* { dg-options "-O2 -fstack-protector-all -mcmodel=kernel" } */
 
 void test1 (int x)
Index: 20011119-1.c
===================================================================
--- 20011119-1.c	(revision 127825)
+++ 20011119-1.c	(working copy)
@@ -1,9 +1,7 @@
 /* Test for reload failing to eliminate from argp to sp.  */
 /* { dg-do run } */
 /* { dg-require-effective-target ilp32 } */
-/* { dg-require-effective-target fpic } */
-/* { dg-skip-if "" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */
-/* { dg-skip-if "PIC default" { "*-*-darwin*" } { "*" } { "" } } */
+/* { dg-require-effective-target nonpic } */
 /* { dg-options "-O2 -fomit-frame-pointer" } */
 
 static int ustrsize (const char *s);


More information about the Gcc-patches mailing list