OSDN Git Service

* gcc.misc-tests/i386-prefetch.exp: Skip tests when multilib flags
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Sep 2009 10:55:09 +0000 (10:55 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Sep 2009 10:55:09 +0000 (10:55 +0000)
contain -march.
* gcc.dg/tree-ssa/prefetch-7.c, gcc.target/i386/387-1.c,
gcc.target/i386/387-5.c, gcc.target/i386/cmov7.c,
gcc.target/i386/funcspec-1.c, gcc.target/i386/funcspec-8.c,
gcc.target/i386/gcc-have-sync-compare-and-swap-1.c,
gcc.target/i386/gcc-have-sync-compare-and-swap-2.c,
gcc.target/i386/isa-6.c, gcc.target/i386/lea.c,
gcc.target/i386/pentium4-not-mull.c, gcc.target/i386/sse-5.c,
gcc.target/i386/ssefn-1.c: Skip when multilib flags contain -march
options other than that used in dg-options.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151506 138bc75d-0d04-0410-961f-82ee72b054a4

15 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/prefetch-7.c
gcc/testsuite/gcc.misc-tests/i386-prefetch.exp
gcc/testsuite/gcc.target/i386/387-1.c
gcc/testsuite/gcc.target/i386/387-5.c
gcc/testsuite/gcc.target/i386/cmov7.c
gcc/testsuite/gcc.target/i386/funcspec-1.c
gcc/testsuite/gcc.target/i386/funcspec-8.c
gcc/testsuite/gcc.target/i386/gcc-have-sync-compare-and-swap-1.c
gcc/testsuite/gcc.target/i386/gcc-have-sync-compare-and-swap-2.c
gcc/testsuite/gcc.target/i386/isa-6.c
gcc/testsuite/gcc.target/i386/lea.c
gcc/testsuite/gcc.target/i386/pentium4-not-mull.c
gcc/testsuite/gcc.target/i386/sse-5.c
gcc/testsuite/gcc.target/i386/ssefn-1.c

index 026f8a9..15fd58e 100644 (file)
@@ -1,3 +1,17 @@
+2009-09-08  Joseph Myers  <joseph@codesourcery.com>
+
+       * gcc.misc-tests/i386-prefetch.exp: Skip tests when multilib flags
+       contain -march.
+       * gcc.dg/tree-ssa/prefetch-7.c, gcc.target/i386/387-1.c,
+       gcc.target/i386/387-5.c, gcc.target/i386/cmov7.c,
+       gcc.target/i386/funcspec-1.c, gcc.target/i386/funcspec-8.c,
+       gcc.target/i386/gcc-have-sync-compare-and-swap-1.c,
+       gcc.target/i386/gcc-have-sync-compare-and-swap-2.c,
+       gcc.target/i386/isa-6.c, gcc.target/i386/lea.c,
+       gcc.target/i386/pentium4-not-mull.c, gcc.target/i386/sse-5.c,
+       gcc.target/i386/ssefn-1.c: Skip when multilib flags contain -march
+       options other than that used in dg-options.
+
 2009-09-07  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/41239
index 3024bed..856df0a 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=athlon" } } */
 /* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon -msse2 -mfpmath=sse --param simultaneous-prefetches=100 --param max-unrolled-insns=1 -fdump-tree-aprefetch-details -fdump-tree-optimized" } */
 
 #define K 1000000
index e990984..a9f767c 100644 (file)
@@ -90,6 +90,13 @@ load_lib torture-options.exp
 dg-init
 torture-init
 
+if { [board_info target exists multilib_flags]
+     && [string match "* -march=*" " [board_info target multilib_flags] "] } {
+    # Multilib flags come after the -march flags we pass and override
+    # them, so skip these tests when such flags are passed.
+    return
+}
+
 set-torture-options $PREFETCH_NONE
 gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/i386-pf-none-*.c]] ""
 
index 2b3ca0b..83af71f 100644 (file)
@@ -1,6 +1,7 @@
 /* Verify that -mno-fancy-math-387 works.  */
 /* { dg-do compile } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i386" } } */
 /* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387 -march=i386" } */
 /* { dg-final { scan-assembler "call\t(.*)sin" } } */
 /* { dg-final { scan-assembler "call\t(.*)cos" } } */
index 0a05008..027799a 100644 (file)
@@ -1,6 +1,7 @@
 /* Verify that -mno-fancy-math-387 works.  */
 /* { dg-do compile } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i386" } } */
 /* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387 -march=i386" } */
 /* { dg-final { scan-assembler "call\t(.*)atan" } } */
 /* { dg-final { scan-assembler "call\t(.*)log1p" } } */
index 31b4816..433bf57 100644 (file)
@@ -1,6 +1,7 @@
 /* PR middle-end/33187 */
 
 /* { dg-do compile } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=k8" } } */
 /* { dg-options "-O2 -ffast-math -march=k8 -mbranch-cost=5 -mfpmath=387" } */
 /* { dg-final { scan-assembler "fcmov" } } */
 
index 1416c75..52420ec 100644 (file)
@@ -3,6 +3,7 @@
    for a function that doesn't use attribute((option)).  */
 /* { dg-do compile } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i386" } } */
 /* { dg-options "-O3 -ftree-vectorize -march=i386" } */
 /* { dg-final { scan-assembler "addps\[ \t\]" } } */
 /* { dg-final { scan-assembler "fsubs\[ \t\]" } } */
index 2b8bb6f..c370733 100644 (file)
@@ -1,6 +1,7 @@
 /* Test whether using target specific options, we can use the x86 builtin
    functions in functions with the appropriate function specific options.  */
 /* { dg-do compile } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=k8" } } */
 /* { dg-options "-O2 -march=k8 -mfpmath=sse" } */
 
 typedef float     __m128  __attribute__ ((__vector_size__ (16), __may_alias__));
index 598f2dd..d20a717 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do preprocess } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i386" } } */
 /* { dg-options "-march=i386" } */
 
 #ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1
index fa6e7c6..01a49b6 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do preprocess } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i486" } } */
 /* { dg-options "-march=i486" } */
 
 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1
index ec1fbea..7f01a88 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=amdfam10" } } */
 /* { dg-options "-march=amdfam10 -mno-sse4" } */
 
 extern void abort (void);
index afbbfa4..f8f967e 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=pentiumpro" } } */
 /* { dg-options "-O2 -march=pentiumpro" } */
 /* { dg-final { scan-assembler "leal" } } */
 typedef struct {
index be48185..a846aae 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=pentium4" } } */
 /* { dg-options "-O2 -march=pentium4" } */
 /* { dg-final { scan-assembler-not "imull" } } */
 
index c3ed8f2..bdbd501 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i386" } } */
 /* { dg-options "-Winline -O2 -march=i386" } */
 
 typedef double v2df __attribute__ ((vector_size (16)));
index 0279a55..bea6cb2 100644 (file)
@@ -7,6 +7,7 @@
 /* { dg-final { scan-assembler "mulss" } } */
 /* { dg-final { scan-assembler-not "movsd" } } */
 /* { dg-final { scan-assembler-not "mulsd" } } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i386" } } */
 /* { dg-options "-O2 -march=i386 -msse -mfpmath=sse -fno-inline" } */
 
 static float xs (void)