From: Joseph Myers Date: Wed, 6 Apr 2005 17:07:08 +0000 (+0100) Subject: i386-387-7.c, [...]: Skip x86 tests for -m64. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c634366a354b7f9065616adea64cd5506d347b36;p=gcc.git i386-387-7.c, [...]: Skip x86 tests for -m64. * gcc.dg/i386-387-7.c, gcc.dg/i386-3dnowA-1.c, gcc.dg/i386-3dnowA-2.c, gcc.dg/pr12092-1.c: Skip x86 tests for -m64. * gcc.dg/loop-3.c, gcc.dg/short-compare-1.c, gcc.dg/short-compare-2.c, gcc.dg/smod-1.c, gcc.dg/torture/badshift.c: Don't give 32-bit options for x86 -m64. From-SVN: r97731 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e70b4b2c41a..5715b0ebead 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2005-04-06 Joseph S. Myers + + * gcc.dg/i386-387-7.c, gcc.dg/i386-3dnowA-1.c, + gcc.dg/i386-3dnowA-2.c, gcc.dg/pr12092-1.c: Skip x86 tests for + -m64. + * gcc.dg/loop-3.c, gcc.dg/short-compare-1.c, + gcc.dg/short-compare-2.c, gcc.dg/smod-1.c, + gcc.dg/torture/badshift.c: Don't give 32-bit options for x86 -m64. + 2005-04-06 Mark Mitchell PR c++/20212 diff --git a/gcc/testsuite/gcc.dg/i386-387-7.c b/gcc/testsuite/gcc.dg/i386-387-7.c index 210917ad415..1a40cd719d8 100644 --- a/gcc/testsuite/gcc.dg/i386-387-7.c +++ b/gcc/testsuite/gcc.dg/i386-387-7.c @@ -1,5 +1,6 @@ /* Verify that 387 fsincos instruction is generated. */ /* { dg-do compile { target "i?86-*-*" } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O -ffast-math -march=i686" } */ /* { dg-final { scan-assembler "fsincos" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-3dnowA-1.c b/gcc/testsuite/gcc.dg/i386-3dnowA-1.c index 2ae1a04d5cb..b5327b3d9ec 100644 --- a/gcc/testsuite/gcc.dg/i386-3dnowA-1.c +++ b/gcc/testsuite/gcc.dg/i386-3dnowA-1.c @@ -1,4 +1,5 @@ /* { dg-do assemble { target i?86-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -Werror-implicit-function-declaration -m3dnow -march=athlon" } */ /* Test that the intrinsics compile with optimization. All of them are diff --git a/gcc/testsuite/gcc.dg/i386-3dnowA-2.c b/gcc/testsuite/gcc.dg/i386-3dnowA-2.c index d8ed6cb4c4d..ea336af4147 100644 --- a/gcc/testsuite/gcc.dg/i386-3dnowA-2.c +++ b/gcc/testsuite/gcc.dg/i386-3dnowA-2.c @@ -1,4 +1,5 @@ /* { dg-do assemble { target i?86-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O0 -Werror-implicit-function-declaration -m3dnow -march=athlon" } */ /* Test that the intrinsics compile without optimization. All of them are diff --git a/gcc/testsuite/gcc.dg/loop-3.c b/gcc/testsuite/gcc.dg/loop-3.c index 3cc6643e15d..f7ceaddb899 100644 --- a/gcc/testsuite/gcc.dg/loop-3.c +++ b/gcc/testsuite/gcc.dg/loop-3.c @@ -3,7 +3,7 @@ /* { dg-do compile } */ /* { dg-options "-O3" } */ -/* { dg-options "-O3 -mtune=i386" { target i?86-*-* } } */ +/* { dg-options "-O3 -mtune=i386" { target { i?86-*-* && ilp32 } } } */ #if defined(STACK_SIZE) && (STACK_SIZE < 65536) # define BYTEMEM_SIZE 10000L diff --git a/gcc/testsuite/gcc.dg/pr12092-1.c b/gcc/testsuite/gcc.dg/pr12092-1.c index 8f38a4a7f46..1b29452881f 100644 --- a/gcc/testsuite/gcc.dg/pr12092-1.c +++ b/gcc/testsuite/gcc.dg/pr12092-1.c @@ -1,6 +1,7 @@ /* PR rtl-optimization/12092 */ /* Test case reduced by Andrew Pinski */ /* { dg-do compile { target i?86-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -mtune=i486 -march=pentium4 -fprefetch-loop-arrays" } */ void DecodeAC(int index,int *matrix) diff --git a/gcc/testsuite/gcc.dg/short-compare-1.c b/gcc/testsuite/gcc.dg/short-compare-1.c index 6a4e388d179..7ecca243a7c 100644 --- a/gcc/testsuite/gcc.dg/short-compare-1.c +++ b/gcc/testsuite/gcc.dg/short-compare-1.c @@ -3,7 +3,7 @@ /* { dg-do run } */ /* { dg-options "-O" } */ -/* { dg-options "-O -mtune=i686" { target i?86-*-* } } */ +/* { dg-options "-O -mtune=i686" { target { i?86-*-* && ilp32 } } } */ /* { dg-options "-O -m32 -mtune=i686" { target x86_64-*-* } } */ extern void abort(void); diff --git a/gcc/testsuite/gcc.dg/short-compare-2.c b/gcc/testsuite/gcc.dg/short-compare-2.c index 1c5963c5a2f..736e1510e8d 100644 --- a/gcc/testsuite/gcc.dg/short-compare-2.c +++ b/gcc/testsuite/gcc.dg/short-compare-2.c @@ -4,7 +4,7 @@ /* { dg-do run } */ /* { dg-options "-O" } */ -/* { dg-options "-O -mtune=i686" { target i?86-*-* } } */ +/* { dg-options "-O -mtune=i686" { target { i?86-*-* && ilp32 } } } */ /* { dg-options "-O -m32 -mtune=i686" { target x86_64-*-* } } */ extern void abort(); diff --git a/gcc/testsuite/gcc.dg/smod-1.c b/gcc/testsuite/gcc.dg/smod-1.c index 268b43bd2ab..e75978af595 100644 --- a/gcc/testsuite/gcc.dg/smod-1.c +++ b/gcc/testsuite/gcc.dg/smod-1.c @@ -3,7 +3,7 @@ /* { dg-do run } */ /* { dg-options "-std=c99" } */ -/* { dg-options "-std=c99 -mtune=i486" { target i?86-*-* } } */ +/* { dg-options "-std=c99 -mtune=i486" { target { i?86-*-* && ilp32 } } } */ #include diff --git a/gcc/testsuite/gcc.dg/torture/badshift.c b/gcc/testsuite/gcc.dg/torture/badshift.c index d656ed65b88..dec71cfa2d1 100644 --- a/gcc/testsuite/gcc.dg/torture/badshift.c +++ b/gcc/testsuite/gcc.dg/torture/badshift.c @@ -2,7 +2,7 @@ /* { dg-do run } */ /* { dg-options "" } */ -/* { dg-options "-march=i386" { target i?86-*-* } } */ +/* { dg-options "-march=i386" { target { i?86-*-* && ilp32 } } } */ /* We used to optimize the DImode shift-by-32 to zero because in combine we turned: