From 6bca15bc3c8e027593c999f97e8e57ee69468596 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sat, 10 Dec 2005 13:23:19 +0000 Subject: [PATCH] re PR testsuite/20772 (x86 tests should run on both i?86 and x86_64) PR testsuite/20772 * g++.dg/abi/mangle24.C, g++.dg/abi/mangle25.C, g++.dg/ext/vector2.C, g++.dg/opt/longbranch2.C, g++.dg/opt/mmx1.C, g++.dg/opt/reg-stack4.C, gcc.dg/20020108-1.c, gcc.dg/20020122-2.c, gcc.dg/20020122-3.c, gcc.dg/20020206-1.c, gcc.dg/20020310-1.c, gcc.dg/20020411-1.c, gcc.dg/20020418-2.c, gcc.dg/20020426-2.c, gcc.dg/20020517-1.c, gcc.dg/20030204-1.c, gcc.dg/20030826-2.c, gcc.dg/20031202-1.c, gcc.dg/format/unnamed-1.c, gcc.dg/setjmp-2.c, gcc.dg/short-compare-1.c, gcc.dg/short-compare-2.c, gcc.dg/tls/opt-1.c, gcc.dg/tls/opt-2.c, gcc.dg/torture/fp-int-convert-float128-timode.c, gcc.dg/torture/fp-int-convert-float128.c, gcc.dg/torture/fp-int-convert-float80-timode.c, gcc.dg/torture/fp-int-convert-float80.c, gcc.dg/unroll-1.c, gcc.target/i386/20030926-1.c: Merge i?86 and x86_64 cases. * gcc.dg/tls/opt-1.c: Require effective target fpic. From-SVN: r108348 --- gcc/testsuite/ChangeLog | 21 +++++++++++++++++++ gcc/testsuite/g++.dg/abi/mangle24.C | 3 +-- gcc/testsuite/g++.dg/abi/mangle25.C | 3 +-- gcc/testsuite/g++.dg/ext/vector2.C | 3 +-- gcc/testsuite/g++.dg/opt/longbranch2.C | 3 +-- gcc/testsuite/g++.dg/opt/mmx1.C | 3 +-- gcc/testsuite/g++.dg/opt/reg-stack4.C | 3 +-- gcc/testsuite/gcc.dg/20020108-1.c | 3 +-- gcc/testsuite/gcc.dg/20020122-2.c | 3 +-- gcc/testsuite/gcc.dg/20020122-3.c | 3 +-- gcc/testsuite/gcc.dg/20020206-1.c | 3 +-- gcc/testsuite/gcc.dg/20020310-1.c | 3 +-- gcc/testsuite/gcc.dg/20020411-1.c | 3 +-- gcc/testsuite/gcc.dg/20020418-2.c | 3 +-- gcc/testsuite/gcc.dg/20020426-2.c | 3 +-- gcc/testsuite/gcc.dg/20020517-1.c | 3 +-- gcc/testsuite/gcc.dg/20030204-1.c | 3 +-- gcc/testsuite/gcc.dg/20030826-2.c | 3 +-- gcc/testsuite/gcc.dg/20031202-1.c | 3 +-- gcc/testsuite/gcc.dg/format/unnamed-1.c | 4 ++-- gcc/testsuite/gcc.dg/setjmp-2.c | 5 ++--- gcc/testsuite/gcc.dg/short-compare-1.c | 3 +-- gcc/testsuite/gcc.dg/short-compare-2.c | 3 +-- gcc/testsuite/gcc.dg/tls/opt-1.c | 4 ++-- gcc/testsuite/gcc.dg/tls/opt-2.c | 3 +-- .../torture/fp-int-convert-float128-timode.c | 3 +-- .../gcc.dg/torture/fp-int-convert-float128.c | 3 +-- .../torture/fp-int-convert-float80-timode.c | 3 +-- .../gcc.dg/torture/fp-int-convert-float80.c | 3 +-- gcc/testsuite/gcc.dg/unroll-1.c | 3 +-- gcc/testsuite/gcc.target/i386/20030926-1.c | 3 +-- 31 files changed, 54 insertions(+), 61 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2310b155290..88cbc84e754 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,23 @@ +2005-12-10 Kaveh R. Ghazi + + PR testsuite/20772 + * g++.dg/abi/mangle24.C, g++.dg/abi/mangle25.C, + g++.dg/ext/vector2.C, g++.dg/opt/longbranch2.C, g++.dg/opt/mmx1.C, + g++.dg/opt/reg-stack4.C, gcc.dg/20020108-1.c, gcc.dg/20020122-2.c, + gcc.dg/20020122-3.c, gcc.dg/20020206-1.c, gcc.dg/20020310-1.c, + gcc.dg/20020411-1.c, gcc.dg/20020418-2.c, gcc.dg/20020426-2.c, + gcc.dg/20020517-1.c, gcc.dg/20030204-1.c, gcc.dg/20030826-2.c, + gcc.dg/20031202-1.c, gcc.dg/format/unnamed-1.c, gcc.dg/setjmp-2.c, + gcc.dg/short-compare-1.c, gcc.dg/short-compare-2.c, + gcc.dg/tls/opt-1.c, gcc.dg/tls/opt-2.c, + gcc.dg/torture/fp-int-convert-float128-timode.c, + gcc.dg/torture/fp-int-convert-float128.c, + gcc.dg/torture/fp-int-convert-float80-timode.c, + gcc.dg/torture/fp-int-convert-float80.c, gcc.dg/unroll-1.c, + gcc.target/i386/20030926-1.c: Merge i?86 and x86_64 cases. + + * gcc.dg/tls/opt-1.c: Require effective target fpic. + 2005-12-10 Hans-Peter Nilsson * g++.old-deja/g++.other/comdat5.C: Gate on target fpic. @@ -85,6 +105,7 @@ 2005-12-07 Kaveh R. Ghazi + PR testsuite/20772 * g++.dg/other/i386-1.C, gcc.c-torture/execute/990413-2.x, gcc.dg/torture/pr18582-1.c, gcc.target/i386/attributes-error.c: Also test on x86_64. diff --git a/gcc/testsuite/g++.dg/abi/mangle24.C b/gcc/testsuite/g++.dg/abi/mangle24.C index b7c777bff52..16aa2ea8e59 100644 --- a/gcc/testsuite/g++.dg/abi/mangle24.C +++ b/gcc/testsuite/g++.dg/abi/mangle24.C @@ -5,8 +5,7 @@ // Origin: Joseph Myers // { dg-do compile { target i?86-*-* x86_64-*-* ia64-*-* } } */ // { dg-options "" } */ -// { dg-options "-mmmx" { target { i?86-*-* && ilp32 } } } */ -// { dg-options "-mmmx" { target { x86_64-*-* && ilp32 } } } */ +// { dg-options "-mmmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ // { dg-final { scan-assembler "_Z1fe" { target i?86-*-* x86_64-*-* } } } */ // { dg-final { scan-assembler "_Z1fe" { target { ia64-*-* && { ! "ia64-*-hpux*" } } } } } */ // { dg-final { scan-assembler "_Z1fu9__float80" { target ia64-*-hpux* } } } */ diff --git a/gcc/testsuite/g++.dg/abi/mangle25.C b/gcc/testsuite/g++.dg/abi/mangle25.C index d469f41c6b5..b57b7dac83a 100644 --- a/gcc/testsuite/g++.dg/abi/mangle25.C +++ b/gcc/testsuite/g++.dg/abi/mangle25.C @@ -6,8 +6,7 @@ // Origin: Joseph Myers // { dg-do compile { target i?86-*-* x86_64-*-* ia64-*-* } } */ // { dg-options "" } */ -// { dg-options "-mmmx" { target { i?86-*-* && ilp32 } } } */ -// { dg-options "-mmmx" { target { x86_64-*-* && ilp32 } } } */ +// { dg-options "-mmmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ // { dg-final { scan-assembler "_Z1fg" { target i?86-*-* x86_64-*-* } } } */ // { dg-final { scan-assembler "_Z1fg" { target { ia64-*-* && { ! "ia64-*-hpux*" } } } } } */ // { dg-final { scan-assembler "_Z1fe" { target ia64-*-hpux* } } } */ diff --git a/gcc/testsuite/g++.dg/ext/vector2.C b/gcc/testsuite/g++.dg/ext/vector2.C index d93257b1969..27dabbd16ed 100644 --- a/gcc/testsuite/g++.dg/ext/vector2.C +++ b/gcc/testsuite/g++.dg/ext/vector2.C @@ -1,7 +1,6 @@ // PR c++/23337; caused an ICE in component_ref_field_offset // { dg-options "" } -// { dg-options "-mmmx" { target { i?86-*-* && ilp32 } } } */ -// { dg-options "-mmmx" { target { x86_64-*-* && ilp32 } } } */ +// { dg-options "-mmmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ typedef int vec __attribute__ ((vector_size (8))); extern int bar (vec); int diff --git a/gcc/testsuite/g++.dg/opt/longbranch2.C b/gcc/testsuite/g++.dg/opt/longbranch2.C index dbc8a1d94d2..f2a3a781788 100644 --- a/gcc/testsuite/g++.dg/opt/longbranch2.C +++ b/gcc/testsuite/g++.dg/opt/longbranch2.C @@ -2,8 +2,7 @@ // Originator: thor@math.tu-berlin.de // { dg-do compile } -// { dg-options "-O3 -funroll-loops -mtune=k6 -fomit-frame-pointer" { target { i?86-*-* && ilp32 } } } -// { dg-options "-O3 -funroll-loops -mtune=k6 -fomit-frame-pointer" { target { x86_64-*-* && ilp32 } } } +// { dg-options "-O3 -funroll-loops -mtune=k6 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } // This used to fail to assemble because of an out-of-range 'loop' instructions. diff --git a/gcc/testsuite/g++.dg/opt/mmx1.C b/gcc/testsuite/g++.dg/opt/mmx1.C index f13b2f844af..93e3fe7f814 100644 --- a/gcc/testsuite/g++.dg/opt/mmx1.C +++ b/gcc/testsuite/g++.dg/opt/mmx1.C @@ -3,8 +3,7 @@ // mmx -> mmx register moves. // { dg-do compile } // { dg-options "-O2" } -// { dg-options "-fno-exceptions -O2 -mmmx -fPIC" { target { i?86-*-* && ilp32 } } } -// { dg-options "-fno-exceptions -O2 -mmmx -fPIC" { target { x86_64-*-* && ilp32 } } } +// { dg-options "-fno-exceptions -O2 -mmmx -fPIC" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } struct A { unsigned a0; diff --git a/gcc/testsuite/g++.dg/opt/reg-stack4.C b/gcc/testsuite/g++.dg/opt/reg-stack4.C index 9d52845db64..b1b7434163a 100644 --- a/gcc/testsuite/g++.dg/opt/reg-stack4.C +++ b/gcc/testsuite/g++.dg/opt/reg-stack4.C @@ -5,8 +5,7 @@ // deleted a valid edge. // { dg-do compile } -// { dg-options "-mtune=i586 -O2" { target { i?86-*-* && ilp32 } } } -// { dg-options "-mtune=i586 -O2" { target { x86_64-*-* && ilp32 } } } +// { dg-options "-mtune=i586 -O2" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } struct array { double data; diff --git a/gcc/testsuite/gcc.dg/20020108-1.c b/gcc/testsuite/gcc.dg/20020108-1.c index 32d24fdca3e..d61944c590e 100644 --- a/gcc/testsuite/gcc.dg/20020108-1.c +++ b/gcc/testsuite/gcc.dg/20020108-1.c @@ -5,8 +5,7 @@ is not valid general_operand in HImode. */ /* { dg-do compile } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -mtune=i686" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -mtune=i686" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ void diff --git a/gcc/testsuite/gcc.dg/20020122-2.c b/gcc/testsuite/gcc.dg/20020122-2.c index 5dca0dba4c4..275dceed724 100644 --- a/gcc/testsuite/gcc.dg/20020122-2.c +++ b/gcc/testsuite/gcc.dg/20020122-2.c @@ -3,8 +3,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */ -/* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ extern int access( char* ); extern int a(); diff --git a/gcc/testsuite/gcc.dg/20020122-3.c b/gcc/testsuite/gcc.dg/20020122-3.c index bcf257527c0..28f68719ed1 100644 --- a/gcc/testsuite/gcc.dg/20020122-3.c +++ b/gcc/testsuite/gcc.dg/20020122-3.c @@ -4,8 +4,7 @@ /* { dg-do compile } */ /* { dg-options "-Os -fprefetch-loop-arrays -w" } */ -/* { dg-options "-Os -fprefetch-loop-arrays -mtune=pentium3 -w" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-Os -fprefetch-loop-arrays -mtune=pentium3 -w" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-Os -fprefetch-loop-arrays -mtune=pentium3 -w" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ int foo (int *p, int n) { diff --git a/gcc/testsuite/gcc.dg/20020206-1.c b/gcc/testsuite/gcc.dg/20020206-1.c index 26c36c43b8e..837718b6c4c 100644 --- a/gcc/testsuite/gcc.dg/20020206-1.c +++ b/gcc/testsuite/gcc.dg/20020206-1.c @@ -4,8 +4,7 @@ /* { dg-do run } */ /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */ -/* { dg-options "-O2 -fprefetch-loop-arrays -mtune=pentium3 -w" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -fprefetch-loop-arrays -mtune=pentium3 -w" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -fprefetch-loop-arrays -mtune=pentium3 -w" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ struct reload diff --git a/gcc/testsuite/gcc.dg/20020310-1.c b/gcc/testsuite/gcc.dg/20020310-1.c index 345199dcd72..bdd29672bd8 100644 --- a/gcc/testsuite/gcc.dg/20020310-1.c +++ b/gcc/testsuite/gcc.dg/20020310-1.c @@ -2,8 +2,7 @@ This testcase was miscompiled because of an rtx sharing bug. */ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -mtune=i586" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -mtune=i586" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -mtune=i586" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ struct A { diff --git a/gcc/testsuite/gcc.dg/20020411-1.c b/gcc/testsuite/gcc.dg/20020411-1.c index 8908c32afaf..47a8fed5095 100644 --- a/gcc/testsuite/gcc.dg/20020411-1.c +++ b/gcc/testsuite/gcc.dg/20020411-1.c @@ -3,8 +3,7 @@ for its mode. */ /* { dg-do compile } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -march=i686" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -march=i686" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -march=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ #if __INT_MAX__ > 32767 diff --git a/gcc/testsuite/gcc.dg/20020418-2.c b/gcc/testsuite/gcc.dg/20020418-2.c index 07722ce758f..93688d27030 100644 --- a/gcc/testsuite/gcc.dg/20020418-2.c +++ b/gcc/testsuite/gcc.dg/20020418-2.c @@ -1,8 +1,7 @@ /* PR optimization/6010 */ /* { dg-do compile } */ /* { dg-options "-O2 -funroll-all-loops" } */ -/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ void bar (float); diff --git a/gcc/testsuite/gcc.dg/20020426-2.c b/gcc/testsuite/gcc.dg/20020426-2.c index 6bb53cf598c..095cf51790d 100644 --- a/gcc/testsuite/gcc.dg/20020426-2.c +++ b/gcc/testsuite/gcc.dg/20020426-2.c @@ -2,8 +2,7 @@ Distilled from zlib sources. */ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -frename-registers -fomit-frame-pointer -fPIC -mtune=i686" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -frename-registers -fomit-frame-pointer -fPIC -mtune=i686" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -frename-registers -fomit-frame-pointer -fPIC -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */ extern void exit (int); diff --git a/gcc/testsuite/gcc.dg/20020517-1.c b/gcc/testsuite/gcc.dg/20020517-1.c index bde20095594..032ccd23b51 100644 --- a/gcc/testsuite/gcc.dg/20020517-1.c +++ b/gcc/testsuite/gcc.dg/20020517-1.c @@ -2,8 +2,7 @@ was not sign-extended for QImode. */ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -mtune=i686" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -mtune=i686" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ #include diff --git a/gcc/testsuite/gcc.dg/20030204-1.c b/gcc/testsuite/gcc.dg/20030204-1.c index 0d4286c08cf..701ded28cb7 100644 --- a/gcc/testsuite/gcc.dg/20030204-1.c +++ b/gcc/testsuite/gcc.dg/20030204-1.c @@ -1,8 +1,7 @@ /* PR optimization/8555 */ /* { dg-do compile } */ /* { dg-options "-O -ffast-math -funroll-loops" } */ -/* { dg-options "-march=pentium3 -O -ffast-math -funroll-loops" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-march=pentium3 -O -ffast-math -funroll-loops" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-march=pentium3 -O -ffast-math -funroll-loops" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ float foo (float *a, int i) diff --git a/gcc/testsuite/gcc.dg/20030826-2.c b/gcc/testsuite/gcc.dg/20030826-2.c index 6ad7e9a1292..32db0919527 100644 --- a/gcc/testsuite/gcc.dg/20030826-2.c +++ b/gcc/testsuite/gcc.dg/20030826-2.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -fomit-frame-pointer" } */ -/* { dg-options "-O2 -fomit-frame-pointer -march=i386" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -fomit-frame-pointer -march=i386" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -fomit-frame-pointer -march=i386" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.dg/20031202-1.c b/gcc/testsuite/gcc.dg/20031202-1.c index 4290f86889b..c7fbfe52404 100644 --- a/gcc/testsuite/gcc.dg/20031202-1.c +++ b/gcc/testsuite/gcc.dg/20031202-1.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -mtune=i686" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -mtune=i686" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.dg/format/unnamed-1.c b/gcc/testsuite/gcc.dg/format/unnamed-1.c index 11a7de0050f..2d4f77cc315 100644 --- a/gcc/testsuite/gcc.dg/format/unnamed-1.c +++ b/gcc/testsuite/gcc.dg/format/unnamed-1.c @@ -2,8 +2,8 @@ /* Origin: Joseph Myers */ /* { dg-do compile } */ /* { dg-options "-Wformat" } */ -/* { dg-options "-Wformat -msse" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-Wformat -msse" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-Wformat -msse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ + #include "format.h" diff --git a/gcc/testsuite/gcc.dg/setjmp-2.c b/gcc/testsuite/gcc.dg/setjmp-2.c index b44ac666145..8ad874d522c 100644 --- a/gcc/testsuite/gcc.dg/setjmp-2.c +++ b/gcc/testsuite/gcc.dg/setjmp-2.c @@ -1,9 +1,8 @@ /* PR middle-end/17813 */ /* Origin: Tom Hughes */ /* { dg-do run { target i?86-*-linux* x86_64-*-linux* } } */ -/* { dg-require-effective-target ilp32 } */ -/* { dg-options "-O -fomit-frame-pointer -march=i386" { target { i?86-*-linux* && ilp32 } } } */ -/* { dg-options "-O -fomit-frame-pointer -march=i386" { target { x86_64-*-linux* && ilp32 } } } */ +/* { dg-options "-O -fomit-frame-pointer" } */ +/* { dg-options "-O -fomit-frame-pointer -march=i386" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ #include #include diff --git a/gcc/testsuite/gcc.dg/short-compare-1.c b/gcc/testsuite/gcc.dg/short-compare-1.c index 8c02a893347..4c470529bc7 100644 --- a/gcc/testsuite/gcc.dg/short-compare-1.c +++ b/gcc/testsuite/gcc.dg/short-compare-1.c @@ -3,8 +3,7 @@ /* { dg-do run } */ /* { dg-options "-O" } */ -/* { dg-options "-O -mtune=i686" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O -mtune=i686" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ 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 1c2192e821a..0026a88c1ff 100644 --- a/gcc/testsuite/gcc.dg/short-compare-2.c +++ b/gcc/testsuite/gcc.dg/short-compare-2.c @@ -4,8 +4,7 @@ /* { dg-do run } */ /* { dg-options "-O" } */ -/* { dg-options "-O -mtune=i686" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O -mtune=i686" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ extern void abort(); diff --git a/gcc/testsuite/gcc.dg/tls/opt-1.c b/gcc/testsuite/gcc.dg/tls/opt-1.c index 5bada6e0929..f9399e04a88 100644 --- a/gcc/testsuite/gcc.dg/tls/opt-1.c +++ b/gcc/testsuite/gcc.dg/tls/opt-1.c @@ -1,8 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fPIC" } */ -/* { dg-options "-O2 -fPIC -mtune=i686" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -fPIC -mtune=i686" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -fPIC -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-require-effective-target tls } */ +/* { dg-require-effective-target fpic } */ extern __thread int thr; diff --git a/gcc/testsuite/gcc.dg/tls/opt-2.c b/gcc/testsuite/gcc.dg/tls/opt-2.c index fd781ebabd1..b4cabd48347 100644 --- a/gcc/testsuite/gcc.dg/tls/opt-2.c +++ b/gcc/testsuite/gcc.dg/tls/opt-2.c @@ -4,8 +4,7 @@ on IA-32. */ /* { dg-do link } */ /* { dg-options "-O2 -ftls-model=initial-exec" } */ -/* { dg-options "-O2 -ftls-model=initial-exec -march=i686" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -ftls-model=initial-exec -march=i686" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -ftls-model=initial-exec -march=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-require-effective-target tls } */ __thread int thr; diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode.c index e9538318f69..11fa200781f 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode.c +++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode.c @@ -4,8 +4,7 @@ /* { dg-xfail-if "" { i?86-*-* x86_64-*-* } { "*" } { "" } } */ /* { dg-xfail-if "" { ia64-*-* && lp64 } { "*" } { "" } } */ /* { dg-options "" } */ -/* { dg-options "-mmmx" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-mmmx" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-mmmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ #include "fp-int-convert.h" diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128.c index a78f6862e69..9d610c1cb2b 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128.c +++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128.c @@ -3,8 +3,7 @@ /* { dg-do run { target i?86-*-* x86_64-*-* ia64-*-* } } */ /* { dg-xfail-if "" { i?86-*-* x86_64-*-* } { "*" } { "" } } */ /* { dg-options "" } */ -/* { dg-options "-mmmx" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-mmmx" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-mmmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ #include "fp-int-convert.h" diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float80-timode.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float80-timode.c index e9436ba5ed4..5b9bb706c0a 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float80-timode.c +++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float80-timode.c @@ -2,8 +2,7 @@ /* Origin: Joseph Myers */ /* { dg-do run { target i?86-*-* x86_64-*-* ia64-*-* } } */ /* { dg-options "" } */ -/* { dg-options "-mmmx" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-mmmx" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-mmmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ #include "fp-int-convert.h" diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float80.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float80.c index 13a92433263..e2b587c0cba 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float80.c +++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float80.c @@ -2,8 +2,7 @@ /* Origin: Joseph Myers */ /* { dg-do run { target i?86-*-* x86_64-*-* ia64-*-* } } */ /* { dg-options "" } */ -/* { dg-options "-mmmx" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-mmmx" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-mmmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ #include "fp-int-convert.h" diff --git a/gcc/testsuite/gcc.dg/unroll-1.c b/gcc/testsuite/gcc.dg/unroll-1.c index 7b09cd1d209..5ff07e21e81 100644 --- a/gcc/testsuite/gcc.dg/unroll-1.c +++ b/gcc/testsuite/gcc.dg/unroll-1.c @@ -1,8 +1,7 @@ /* PR optimization/8599 */ /* { dg-do run } */ /* { dg-options "-O2 -funroll-loops" } */ -/* { dg-options "-mtune=k6 -O2 -funroll-loops" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-mtune=k6 -O2 -funroll-loops" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-mtune=k6 -O2 -funroll-loops" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.target/i386/20030926-1.c b/gcc/testsuite/gcc.target/i386/20030926-1.c index 866ebb808d5..8f81f31361c 100644 --- a/gcc/testsuite/gcc.target/i386/20030926-1.c +++ b/gcc/testsuite/gcc.target/i386/20030926-1.c @@ -1,8 +1,7 @@ /* PR optimization/11741 */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -minline-all-stringops" } */ -/* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target { x86_64-*-* && ilp32 } } } */ +/* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ extern void *memcpy (void *, const void *, __SIZE_TYPE__); extern __SIZE_TYPE__ strlen (const char *); -- 2.30.2