From a9f9113a2473301a3641fc284e41c5b7dd5019f9 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 26 May 2005 23:22:01 +0200 Subject: [PATCH] re PR testsuite/20772 (x86 tests should run on both i?86 and x86_64) PR testsuite/20772 * g++.old-deja/g++.ext/attrib1.C, g++.old-deja/g++.ext/attrib2.C, g++.old-deja/g++.ext/attrib3.C, g++.old-deja/g++.other/store-expr1.C, g++.old-deja/g++.other/store-expr2.C, g++.dg/opt/longbranch2.C, gcc.dg/20000609-1.c, gcc.dg/20000720-1.c, gcc.dg/20011107-1.c, gcc.dg/20011119-1.c, gcc.dg/20020108-1.c, gcc.dg/20020122-2.c, gcc.dg/20020122-3.c, gcc.dg/20020201-3.c, gcc.dg/20020206-1.c, gcc.dg/20020218-1.c, gcc.dg/20020310-1.c, gcc.dg/20020411-1.c, gcc.dg/20020418-2.c, gcc.dg/20020426-1.c, gcc.dg/20020426-2.c, gcc.dg/20020517-1.c, gcc.dg/20020523-1.c, gcc.dg/20020523-2.c, gcc.dg/20020729-1.c, gcc.dg/20030204-1.c, gcc.dg/20030826-2.c, gcc.dg/20030926-1.c, gcc.dg/20031202-1.c, gcc.dg/980312-1.c, gcc.dg/980313-1.c, gcc.dg/990424-1.c, gcc.dg/990524-1.c, gcc.dg/991230-1.c, gcc.dg/i386-387-1.c, gcc.dg/i386-387-2.c, gcc.dg/i386-387-3.c, gcc.dg/i386-387-4.c, gcc.dg/i386-387-5.c, gcc.dg/i386-387-6.c, gcc.dg/i386-bitfield1.c, gcc.dg/i386-bitfield2.c, gcc.dg/i386-loop-1.c, gcc.dg/i386-loop-2.c, gcc.dg/i386-loop-3.c, gcc.dg/i386-pic-1.c, gcc.dg/i386-regparm.c, gcc.dg/i386-signbit-1.c, gcc.dg/i386-signbit-2.c, gcc.dg/i386-sse-5.c, gcc.dg/i386-sse-8.c, gcc.dg/i386-unroll-1.c, gcc.dg/tls/opt-1.c, gcc.dg/tls/opt-2.c, gcc.dg/unroll-1.c: Handle 32-bit x86-64 compilation. From-SVN: r100225 --- gcc/testsuite/ChangeLog | 26 +++++++++++++++++++ gcc/testsuite/g++.dg/opt/longbranch2.C | 5 ++-- gcc/testsuite/g++.old-deja/g++.ext/attrib1.C | 4 +-- gcc/testsuite/g++.old-deja/g++.ext/attrib2.C | 4 +-- gcc/testsuite/g++.old-deja/g++.ext/attrib3.C | 4 +-- .../g++.old-deja/g++.other/store-expr1.C | 4 +-- .../g++.old-deja/g++.other/store-expr2.C | 4 +-- gcc/testsuite/gcc.dg/20000609-1.c | 5 ++-- gcc/testsuite/gcc.dg/20000720-1.c | 4 +-- gcc/testsuite/gcc.dg/20011107-1.c | 4 +-- gcc/testsuite/gcc.dg/20011119-1.c | 5 ++-- gcc/testsuite/gcc.dg/20020108-1.c | 5 ++-- gcc/testsuite/gcc.dg/20020122-2.c | 4 +-- gcc/testsuite/gcc.dg/20020122-3.c | 4 +-- gcc/testsuite/gcc.dg/20020201-3.c | 4 +-- gcc/testsuite/gcc.dg/20020206-1.c | 5 ++-- gcc/testsuite/gcc.dg/20020218-1.c | 4 +-- gcc/testsuite/gcc.dg/20020310-1.c | 4 +-- gcc/testsuite/gcc.dg/20020411-1.c | 4 +-- gcc/testsuite/gcc.dg/20020418-2.c | 4 +-- gcc/testsuite/gcc.dg/20020426-1.c | 4 +-- gcc/testsuite/gcc.dg/20020426-2.c | 4 +-- gcc/testsuite/gcc.dg/20020517-1.c | 4 +-- gcc/testsuite/gcc.dg/20020523-1.c | 4 +-- gcc/testsuite/gcc.dg/20020523-2.c | 4 +-- gcc/testsuite/gcc.dg/20020729-1.c | 4 +-- gcc/testsuite/gcc.dg/20030204-1.c | 5 ++-- gcc/testsuite/gcc.dg/20030826-2.c | 4 +-- gcc/testsuite/gcc.dg/20030926-1.c | 3 ++- gcc/testsuite/gcc.dg/20031202-1.c | 4 +-- gcc/testsuite/gcc.dg/980312-1.c | 4 +-- gcc/testsuite/gcc.dg/980313-1.c | 4 +-- gcc/testsuite/gcc.dg/990424-1.c | 4 +-- gcc/testsuite/gcc.dg/990524-1.c | 4 +-- gcc/testsuite/gcc.dg/991230-1.c | 4 +-- gcc/testsuite/gcc.dg/i386-387-1.c | 4 +-- gcc/testsuite/gcc.dg/i386-387-2.c | 4 +-- gcc/testsuite/gcc.dg/i386-387-3.c | 4 +-- gcc/testsuite/gcc.dg/i386-387-4.c | 4 +-- gcc/testsuite/gcc.dg/i386-387-5.c | 4 +-- gcc/testsuite/gcc.dg/i386-387-6.c | 4 +-- gcc/testsuite/gcc.dg/i386-bitfield1.c | 4 +-- gcc/testsuite/gcc.dg/i386-bitfield2.c | 4 +-- gcc/testsuite/gcc.dg/i386-loop-1.c | 4 +-- gcc/testsuite/gcc.dg/i386-loop-2.c | 4 +-- gcc/testsuite/gcc.dg/i386-loop-3.c | 4 +-- gcc/testsuite/gcc.dg/i386-pic-1.c | 4 +-- gcc/testsuite/gcc.dg/i386-regparm.c | 4 +-- gcc/testsuite/gcc.dg/i386-signbit-1.c | 4 +-- gcc/testsuite/gcc.dg/i386-signbit-2.c | 4 +-- gcc/testsuite/gcc.dg/i386-sse-5.c | 5 ++-- gcc/testsuite/gcc.dg/i386-sse-8.c | 6 ++--- gcc/testsuite/gcc.dg/i386-unroll-1.c | 4 +-- gcc/testsuite/gcc.dg/tls/opt-1.c | 4 +-- gcc/testsuite/gcc.dg/tls/opt-2.c | 4 +-- gcc/testsuite/gcc.dg/unroll-1.c | 5 ++-- 56 files changed, 145 insertions(+), 110 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 192ce4ec8eb..7e3826f02bb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,29 @@ +2005-05-26 Andreas Jaeger + + PR testsuite/20772 + * g++.old-deja/g++.ext/attrib1.C, g++.old-deja/g++.ext/attrib2.C, + g++.old-deja/g++.ext/attrib3.C, + g++.old-deja/g++.other/store-expr1.C, + g++.old-deja/g++.other/store-expr2.C, g++.dg/opt/longbranch2.C, + gcc.dg/20000609-1.c, gcc.dg/20000720-1.c, gcc.dg/20011107-1.c, + gcc.dg/20011119-1.c, gcc.dg/20020108-1.c, gcc.dg/20020122-2.c, + gcc.dg/20020122-3.c, gcc.dg/20020201-3.c, gcc.dg/20020206-1.c, + gcc.dg/20020218-1.c, gcc.dg/20020310-1.c, gcc.dg/20020411-1.c, + gcc.dg/20020418-2.c, gcc.dg/20020426-1.c, gcc.dg/20020426-2.c, + gcc.dg/20020517-1.c, gcc.dg/20020523-1.c, gcc.dg/20020523-2.c, + gcc.dg/20020729-1.c, gcc.dg/20030204-1.c, gcc.dg/20030826-2.c, + gcc.dg/20030926-1.c, gcc.dg/20031202-1.c, gcc.dg/980312-1.c, + gcc.dg/980313-1.c, gcc.dg/990424-1.c, gcc.dg/990524-1.c, + gcc.dg/991230-1.c, gcc.dg/i386-387-1.c, gcc.dg/i386-387-2.c, + gcc.dg/i386-387-3.c, gcc.dg/i386-387-4.c, gcc.dg/i386-387-5.c, + gcc.dg/i386-387-6.c, gcc.dg/i386-bitfield1.c, + gcc.dg/i386-bitfield2.c, gcc.dg/i386-loop-1.c, + gcc.dg/i386-loop-2.c, gcc.dg/i386-loop-3.c, gcc.dg/i386-pic-1.c, + gcc.dg/i386-regparm.c, gcc.dg/i386-signbit-1.c, + gcc.dg/i386-signbit-2.c, gcc.dg/i386-sse-5.c, gcc.dg/i386-sse-8.c, + gcc.dg/i386-unroll-1.c, gcc.dg/tls/opt-1.c, gcc.dg/tls/opt-2.c, + gcc.dg/unroll-1.c: Handle 32-bit x86-64 compilation. + 2005-05-26 Andreas Jaeger * gcc.c-torture/execute/ieee/ieee.exp: Set float-store for 32-bit diff --git a/gcc/testsuite/g++.dg/opt/longbranch2.C b/gcc/testsuite/g++.dg/opt/longbranch2.C index 88594b04ef7..dbc8a1d94d2 100644 --- a/gcc/testsuite/g++.dg/opt/longbranch2.C +++ b/gcc/testsuite/g++.dg/opt/longbranch2.C @@ -2,8 +2,9 @@ // Originator: thor@math.tu-berlin.de // { dg-do compile } -// { dg-options "-O3 -funroll-loops -mtune=k6 -fomit-frame-pointer" { target i?86-*-* } } -// { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } +// { 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 } } } + // This used to fail to assemble because of an out-of-range 'loop' instructions. diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C index bdc3ade8b74..e879791665d 100644 --- a/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C +++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C @@ -1,5 +1,5 @@ -// { dg-do assemble { target i?86-*-* } } -// { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } +// { dg-do assemble { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // Test for using prefix attributes in a parameter decl. // Contributed by Jason Merrill diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C index c60ff823130..09b2bf2e67d 100644 --- a/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C +++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C @@ -1,5 +1,5 @@ -// { dg-do run { target i?86-*-* } } -// { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // Test that stdcall doesn't prevent us from using op delete. // Contributed by Jason Merrill diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C index 492cd9d7c49..7d9c70e3b75 100644 --- a/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C +++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C @@ -1,5 +1,5 @@ -// { dg-do run { target i?86-*-* } } -// { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // Test for proper handling of attributes in template instantiation. // Contributed by Jason Merrill diff --git a/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C b/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C index 49456242b4e..31c81a02dd3 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C +++ b/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C @@ -1,5 +1,5 @@ -// { dg-do run { target i?86-*-* } } -// { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-mtune=i686 -O2 -fpic" } // { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } class G {}; diff --git a/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C b/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C index d35e3b77dfa..99e0943b3b6 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C +++ b/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C @@ -1,5 +1,5 @@ -// { dg-do run { target i?86-*-* } } -// { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } +// { dg-do run { target i?86-*-* x86_64-*-*} } +// { dg-require-effective-target ilp32 } // { dg-options "-mtune=i686 -O2" } class G {}; diff --git a/gcc/testsuite/gcc.dg/20000609-1.c b/gcc/testsuite/gcc.dg/20000609-1.c index dfa64983ef2..5d452ac9d82 100644 --- a/gcc/testsuite/gcc.dg/20000609-1.c +++ b/gcc/testsuite/gcc.dg/20000609-1.c @@ -1,6 +1,7 @@ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O1 -ffast-math -march=i686" } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ + /* Sanity check for fp_jcc_* with TARGET_CMOVE. */ diff --git a/gcc/testsuite/gcc.dg/20000720-1.c b/gcc/testsuite/gcc.dg/20000720-1.c index 89b570d750a..65bf68544b4 100644 --- a/gcc/testsuite/gcc.dg/20000720-1.c +++ b/gcc/testsuite/gcc.dg/20000720-1.c @@ -1,5 +1,5 @@ -/* { dg-do compile { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-mpreferred-stack-boundary=2 -march=i586 -O2 -fomit-frame-pointer" } */ extern void *foo(void *a, const void *b, unsigned c); diff --git a/gcc/testsuite/gcc.dg/20011107-1.c b/gcc/testsuite/gcc.dg/20011107-1.c index a53f4f1912e..0d09427a0b4 100644 --- a/gcc/testsuite/gcc.dg/20011107-1.c +++ b/gcc/testsuite/gcc.dg/20011107-1.c @@ -1,5 +1,5 @@ -/* { dg-do compile { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -mtune=k6" } */ void diff --git a/gcc/testsuite/gcc.dg/20011119-1.c b/gcc/testsuite/gcc.dg/20011119-1.c index 5758f8b1bf0..bbdf104d1c8 100644 --- a/gcc/testsuite/gcc.dg/20011119-1.c +++ b/gcc/testsuite/gcc.dg/20011119-1.c @@ -1,6 +1,7 @@ /* Test for reload failing to eliminate from argp to sp. */ -/* { dg-do run { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" "-fpic" "-fPIC" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ +/* { dg-skip-if "" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */ /* { dg-options "-O2 -fomit-frame-pointer" } */ static int ustrsize (const char *s); diff --git a/gcc/testsuite/gcc.dg/20020108-1.c b/gcc/testsuite/gcc.dg/20020108-1.c index 03b97d1fec6..32d24fdca3e 100644 --- a/gcc/testsuite/gcc.dg/20020108-1.c +++ b/gcc/testsuite/gcc.dg/20020108-1.c @@ -5,8 +5,9 @@ is not valid general_operand in HImode. */ /* { dg-do compile } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -mtune=i686" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-O2 -mtune=i686" { target { i?86-*-* && ilp32 } } } */ +/* { dg-options "-O2 -mtune=i686" { target { x86_64-*-* && ilp32 } } } */ + void foo (unsigned short *cp) diff --git a/gcc/testsuite/gcc.dg/20020122-2.c b/gcc/testsuite/gcc.dg/20020122-2.c index de92bd82880..6a79ace6980 100644 --- a/gcc/testsuite/gcc.dg/20020122-2.c +++ b/gcc/testsuite/gcc.dg/20020122-2.c @@ -3,8 +3,8 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */ -/* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-Os -fprefetch-loop-arrays -mtune=athlon" { target { i?86-*-* && ilp32 } } } */ +/* { dg-options "-Os -fprefetch-loop-arrays -mtune=athlon" { target { 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 4aafc4777c9..bcf257527c0 100644 --- a/gcc/testsuite/gcc.dg/20020122-3.c +++ b/gcc/testsuite/gcc.dg/20020122-3.c @@ -4,8 +4,8 @@ /* { dg-do compile } */ /* { dg-options "-Os -fprefetch-loop-arrays -w" } */ -/* { dg-options "-Os -fprefetch-loop-arrays -mtune=pentium3 -w" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { 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 } } } */ int foo (int *p, int n) { diff --git a/gcc/testsuite/gcc.dg/20020201-3.c b/gcc/testsuite/gcc.dg/20020201-3.c index 66a48022b16..e95c44fbdfb 100644 --- a/gcc/testsuite/gcc.dg/20020201-3.c +++ b/gcc/testsuite/gcc.dg/20020201-3.c @@ -1,7 +1,7 @@ /* This testcase ICEd because a SFmode variable was given a MMX register for which there is no movsf exists. */ -/* { dg-do compile { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=i686 -mmmx -fno-strict-aliasing" } */ struct A { unsigned int a, b; }; diff --git a/gcc/testsuite/gcc.dg/20020206-1.c b/gcc/testsuite/gcc.dg/20020206-1.c index 1bdb25de166..26c36c43b8e 100644 --- a/gcc/testsuite/gcc.dg/20020206-1.c +++ b/gcc/testsuite/gcc.dg/20020206-1.c @@ -4,8 +4,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */ -/* { dg-options "-O2 -fprefetch-loop-arrays -mtune=pentium3 -w" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { 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 } } } */ + struct reload { diff --git a/gcc/testsuite/gcc.dg/20020218-1.c b/gcc/testsuite/gcc.dg/20020218-1.c index 240c3d7e2ab..bef4d66fc13 100644 --- a/gcc/testsuite/gcc.dg/20020218-1.c +++ b/gcc/testsuite/gcc.dg/20020218-1.c @@ -1,6 +1,6 @@ /* Verify that X86-64 only SSE registers aren't restored on IA-32. */ -/* { dg-do compile { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -msse" } */ /* { dg-final { scan-assembler-not "xmm8" } } */ diff --git a/gcc/testsuite/gcc.dg/20020310-1.c b/gcc/testsuite/gcc.dg/20020310-1.c index 6067e190622..345199dcd72 100644 --- a/gcc/testsuite/gcc.dg/20020310-1.c +++ b/gcc/testsuite/gcc.dg/20020310-1.c @@ -2,8 +2,8 @@ This testcase was miscompiled because of an rtx sharing bug. */ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -mtune=i586" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-O2 -mtune=i586" { target { i?86-*-* && ilp32 } } } */ +/* { dg-options "-O2 -mtune=i586" { target { x86_64-*-* && ilp32 } } } */ struct A { diff --git a/gcc/testsuite/gcc.dg/20020411-1.c b/gcc/testsuite/gcc.dg/20020411-1.c index 0413ed9b56b..8908c32afaf 100644 --- a/gcc/testsuite/gcc.dg/20020411-1.c +++ b/gcc/testsuite/gcc.dg/20020411-1.c @@ -3,8 +3,8 @@ for its mode. */ /* { dg-do compile } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -march=i686" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-O2 -march=i686" { target { i?86-*-* && ilp32 } } } */ +/* { dg-options "-O2 -march=i686" { target { 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 8a15b2644f5..07722ce758f 100644 --- a/gcc/testsuite/gcc.dg/20020418-2.c +++ b/gcc/testsuite/gcc.dg/20020418-2.c @@ -1,8 +1,8 @@ /* PR optimization/6010 */ /* { dg-do compile } */ /* { dg-options "-O2 -funroll-all-loops" } */ -/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target { i?86-*-* && ilp32 } } } */ +/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target { x86_64-*-* && ilp32 } } } */ void bar (float); diff --git a/gcc/testsuite/gcc.dg/20020426-1.c b/gcc/testsuite/gcc.dg/20020426-1.c index 67b09b3f80d..31be74712c0 100644 --- a/gcc/testsuite/gcc.dg/20020426-1.c +++ b/gcc/testsuite/gcc.dg/20020426-1.c @@ -1,6 +1,6 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-msoft-float -mfp-ret-in-387" } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ void f() { __builtin_apply(0, 0, 0); diff --git a/gcc/testsuite/gcc.dg/20020426-2.c b/gcc/testsuite/gcc.dg/20020426-2.c index 19bf991b346..6bb53cf598c 100644 --- a/gcc/testsuite/gcc.dg/20020426-2.c +++ b/gcc/testsuite/gcc.dg/20020426-2.c @@ -2,8 +2,8 @@ Distilled from zlib sources. */ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -frename-registers -fomit-frame-pointer -fPIC -mtune=i686" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { 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-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 72b252900d4..bde20095594 100644 --- a/gcc/testsuite/gcc.dg/20020517-1.c +++ b/gcc/testsuite/gcc.dg/20020517-1.c @@ -2,8 +2,8 @@ was not sign-extended for QImode. */ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -mtune=i686" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-O2 -mtune=i686" { target { i?86-*-* && ilp32 } } } */ +/* { dg-options "-O2 -mtune=i686" { target { x86_64-*-* && ilp32 } } } */ #include diff --git a/gcc/testsuite/gcc.dg/20020523-1.c b/gcc/testsuite/gcc.dg/20020523-1.c index d29f20ae2e6..51ae5ecb689 100644 --- a/gcc/testsuite/gcc.dg/20020523-1.c +++ b/gcc/testsuite/gcc.dg/20020523-1.c @@ -1,8 +1,8 @@ /* PR target/6753 This testcase was miscompiled because sse_mov?fcc_const0* patterns were missing earlyclobber. */ -/* { dg-do run { target i386-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-march=pentium3 -msse -ffast-math -O2" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/20020523-2.c b/gcc/testsuite/gcc.dg/20020523-2.c index 086f1d469e6..ebe8bb8f5cd 100644 --- a/gcc/testsuite/gcc.dg/20020523-2.c +++ b/gcc/testsuite/gcc.dg/20020523-2.c @@ -1,8 +1,8 @@ /* PR target/6753 This testcase was miscompiled because sse_mov?fcc_const0* patterns were missing earlyclobber. */ -/* { dg-do run { target i386-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-march=pentium3 -msse -ffast-math -O2" } */ #include "i386-cpuid.h" diff --git a/gcc/testsuite/gcc.dg/20020729-1.c b/gcc/testsuite/gcc.dg/20020729-1.c index 929b5c361bd..eeab6985422 100644 --- a/gcc/testsuite/gcc.dg/20020729-1.c +++ b/gcc/testsuite/gcc.dg/20020729-1.c @@ -1,5 +1,5 @@ -/* { dg-do compile { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=k6" } */ static inline void * diff --git a/gcc/testsuite/gcc.dg/20030204-1.c b/gcc/testsuite/gcc.dg/20030204-1.c index 33a9eb229f9..0d4286c08cf 100644 --- a/gcc/testsuite/gcc.dg/20030204-1.c +++ b/gcc/testsuite/gcc.dg/20030204-1.c @@ -1,8 +1,9 @@ /* 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-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { 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 } } } */ + 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 e69c5346a26..6ad7e9a1292 100644 --- a/gcc/testsuite/gcc.dg/20030826-2.c +++ b/gcc/testsuite/gcc.dg/20030826-2.c @@ -1,7 +1,7 @@ /* { dg-do run } */ /* { dg-options "-O2 -fomit-frame-pointer" } */ -/* { dg-options "-O2 -fomit-frame-pointer -march=i386" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-O2 -fomit-frame-pointer -march=i386" { target { i?86-*-* && ilp32 } } } */ +/* { dg-options "-O2 -fomit-frame-pointer -march=i386" { target { x86_64-*-* && ilp32 } } } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.dg/20030926-1.c b/gcc/testsuite/gcc.dg/20030926-1.c index 09931b378dd..2e722a2d4f3 100644 --- a/gcc/testsuite/gcc.dg/20030926-1.c +++ b/gcc/testsuite/gcc.dg/20030926-1.c @@ -2,7 +2,8 @@ /* { 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-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target { i?86-*-* && ilp32 } } */ +/* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target { x86_64-*-* && ilp32 } } */ extern void *memcpy (void *, const void *, __SIZE_TYPE__); extern __SIZE_TYPE__ strlen (const char *); diff --git a/gcc/testsuite/gcc.dg/20031202-1.c b/gcc/testsuite/gcc.dg/20031202-1.c index ac443a28425..4290f86889b 100644 --- a/gcc/testsuite/gcc.dg/20031202-1.c +++ b/gcc/testsuite/gcc.dg/20031202-1.c @@ -1,7 +1,7 @@ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -mtune=i686" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-O2 -mtune=i686" { target { i?86-*-* && ilp32 } } } */ +/* { dg-options "-O2 -mtune=i686" { target { x86_64-*-* && ilp32 } } } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.dg/980312-1.c b/gcc/testsuite/gcc.dg/980312-1.c index 83f1488745a..edf3cf5d79d 100644 --- a/gcc/testsuite/gcc.dg/980312-1.c +++ b/gcc/testsuite/gcc.dg/980312-1.c @@ -1,5 +1,5 @@ -/* { dg-do link { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do link { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=pentiumpro" } */ extern __inline double diff --git a/gcc/testsuite/gcc.dg/980313-1.c b/gcc/testsuite/gcc.dg/980313-1.c index 75566222116..889654fc792 100644 --- a/gcc/testsuite/gcc.dg/980313-1.c +++ b/gcc/testsuite/gcc.dg/980313-1.c @@ -1,5 +1,5 @@ -/* { dg-do link { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do link { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=pentiumpro" } */ extern __inline double diff --git a/gcc/testsuite/gcc.dg/990424-1.c b/gcc/testsuite/gcc.dg/990424-1.c index d479754a9ef..5b5af818076 100644 --- a/gcc/testsuite/gcc.dg/990424-1.c +++ b/gcc/testsuite/gcc.dg/990424-1.c @@ -1,8 +1,8 @@ /* Test that stack alignment is preserved with pending_stack_adjust with stdcall functions. */ -/* { dg-do run { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options -mpreferred-stack-boundary=4 } */ void __attribute__((stdcall)) foo(int a, int b, int c); diff --git a/gcc/testsuite/gcc.dg/990524-1.c b/gcc/testsuite/gcc.dg/990524-1.c index 203c1dd452d..ee4ebd62671 100644 --- a/gcc/testsuite/gcc.dg/990524-1.c +++ b/gcc/testsuite/gcc.dg/990524-1.c @@ -1,5 +1,5 @@ -/* { dg-do compile { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=pentiumpro" } */ typedef struct t_anim_info { diff --git a/gcc/testsuite/gcc.dg/991230-1.c b/gcc/testsuite/gcc.dg/991230-1.c index 1cb66f5c379..b87d0e2e3cb 100644 --- a/gcc/testsuite/gcc.dg/991230-1.c +++ b/gcc/testsuite/gcc.dg/991230-1.c @@ -1,5 +1,5 @@ -/* { dg-do run { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O -ffast-math -mtune=i486" } */ /* Test that floating point greater-than tests are compiled correctly with diff --git a/gcc/testsuite/gcc.dg/i386-387-1.c b/gcc/testsuite/gcc.dg/i386-387-1.c index 7be1ba34aaa..9b31dcaed55 100644 --- a/gcc/testsuite/gcc.dg/i386-387-1.c +++ b/gcc/testsuite/gcc.dg/i386-387-1.c @@ -1,6 +1,6 @@ /* Verify that -mno-fancy-math-387 works. */ -/* { dg-do compile { target "i?86-*-*" } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { 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" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-387-2.c b/gcc/testsuite/gcc.dg/i386-387-2.c index ebbe619df36..7358866eceb 100644 --- a/gcc/testsuite/gcc.dg/i386-387-2.c +++ b/gcc/testsuite/gcc.dg/i386-387-2.c @@ -1,6 +1,6 @@ /* Verify that -march overrides -mno-fancy-math-387. */ -/* { dg-do compile { target "i?86-*-*" } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */ /* { dg-final { scan-assembler "fsin" } } */ /* { dg-final { scan-assembler "fcos" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-387-3.c b/gcc/testsuite/gcc.dg/i386-387-3.c index b68928a1adf..ed80f78187d 100644 --- a/gcc/testsuite/gcc.dg/i386-387-3.c +++ b/gcc/testsuite/gcc.dg/i386-387-3.c @@ -1,6 +1,6 @@ /* Verify that 387 mathematical constants are recognized. */ -/* { dg-do compile { target "i?86-*-*" } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=i686" } */ /* { dg-final { scan-assembler "fldpi" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-387-4.c b/gcc/testsuite/gcc.dg/i386-387-4.c index dbe340ca4b6..55398275570 100644 --- a/gcc/testsuite/gcc.dg/i386-387-4.c +++ b/gcc/testsuite/gcc.dg/i386-387-4.c @@ -1,5 +1,5 @@ -/* { dg-do compile { target "i?86-*-*" } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=i686" } */ /* { dg-final { scan-assembler "fldpi" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-387-5.c b/gcc/testsuite/gcc.dg/i386-387-5.c index d438b254db9..fd3106e0270 100644 --- a/gcc/testsuite/gcc.dg/i386-387-5.c +++ b/gcc/testsuite/gcc.dg/i386-387-5.c @@ -1,6 +1,6 @@ /* Verify that -mno-fancy-math-387 works. */ -/* { dg-do compile { target "i?86-*-*" } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { 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" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-387-6.c b/gcc/testsuite/gcc.dg/i386-387-6.c index ab6412b7aff..b3ad64dac48 100644 --- a/gcc/testsuite/gcc.dg/i386-387-6.c +++ b/gcc/testsuite/gcc.dg/i386-387-6.c @@ -1,6 +1,6 @@ /* Verify that -march overrides -mno-fancy-math-387. */ -/* { dg-do compile { target "i?86-*-*" } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */ /* { dg-final { scan-assembler "fpatan" } } */ /* { dg-final { scan-assembler "fyl2xp1" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-bitfield1.c b/gcc/testsuite/gcc.dg/i386-bitfield1.c index 5b53acf8dfd..e285ba0526a 100644 --- a/gcc/testsuite/gcc.dg/i386-bitfield1.c +++ b/gcc/testsuite/gcc.dg/i386-bitfield1.c @@ -1,6 +1,6 @@ // Test for bitfield alignment in structs on IA-32 -// { dg-do run { target i?86-*-* } } -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-O2" } // { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw*} } diff --git a/gcc/testsuite/gcc.dg/i386-bitfield2.c b/gcc/testsuite/gcc.dg/i386-bitfield2.c index f77a4ab4097..54f5c8dbfd3 100644 --- a/gcc/testsuite/gcc.dg/i386-bitfield2.c +++ b/gcc/testsuite/gcc.dg/i386-bitfield2.c @@ -1,6 +1,6 @@ // Test for bitfield alignment in structs on IA-32 -// { dg-do run { target i?86-*-* } } -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-O2" } // { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw* } } diff --git a/gcc/testsuite/gcc.dg/i386-loop-1.c b/gcc/testsuite/gcc.dg/i386-loop-1.c index 9aa23ef900f..479c80a2d7a 100644 --- a/gcc/testsuite/gcc.dg/i386-loop-1.c +++ b/gcc/testsuite/gcc.dg/i386-loop-1.c @@ -1,6 +1,6 @@ /* PR optimization/9888 */ -/* { dg-do run { target i?86-*-* } } */ -/* { dg-xfail-if "" { *-*-* } { "-m64" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-mtune=k6 -O3" } */ /* Verify that GCC doesn't emit out of range 'loop' instructions. */ diff --git a/gcc/testsuite/gcc.dg/i386-loop-2.c b/gcc/testsuite/gcc.dg/i386-loop-2.c index 548819a336c..8994eada46e 100644 --- a/gcc/testsuite/gcc.dg/i386-loop-2.c +++ b/gcc/testsuite/gcc.dg/i386-loop-2.c @@ -1,7 +1,7 @@ /* PR optimization/9888 */ /* Originator: Jim Bray */ -/* { dg-do run { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-mtune=k6 -Os" } */ enum reload_type diff --git a/gcc/testsuite/gcc.dg/i386-loop-3.c b/gcc/testsuite/gcc.dg/i386-loop-3.c index 394b4e99246..4e046b28acb 100644 --- a/gcc/testsuite/gcc.dg/i386-loop-3.c +++ b/gcc/testsuite/gcc.dg/i386-loop-3.c @@ -1,8 +1,8 @@ /* PR target/11044 */ /* Originator: Tim McGrath */ /* Testcase contributed by Eric Botcazou */ -/* { dg-do run { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-mtune=k6 -O3 -ffast-math -funroll-loops" } */ extern void *memset (void *, int, __SIZE_TYPE__); diff --git a/gcc/testsuite/gcc.dg/i386-pic-1.c b/gcc/testsuite/gcc.dg/i386-pic-1.c index 8fa2caf67f7..7762230c2f6 100644 --- a/gcc/testsuite/gcc.dg/i386-pic-1.c +++ b/gcc/testsuite/gcc.dg/i386-pic-1.c @@ -1,6 +1,6 @@ /* PR target/8340 */ -/* { dg-do compile { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-fPIC" } */ int foo () diff --git a/gcc/testsuite/gcc.dg/i386-regparm.c b/gcc/testsuite/gcc.dg/i386-regparm.c index 601688f6489..e3cd8b090ff 100644 --- a/gcc/testsuite/gcc.dg/i386-regparm.c +++ b/gcc/testsuite/gcc.dg/i386-regparm.c @@ -1,5 +1,5 @@ -/* { dg-do compile { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-W -Wall" } */ /* Verify that GCC correctly detects non-matching regparm attributes. */ diff --git a/gcc/testsuite/gcc.dg/i386-signbit-1.c b/gcc/testsuite/gcc.dg/i386-signbit-1.c index 57c1f5f2cb3..adb351a2772 100644 --- a/gcc/testsuite/gcc.dg/i386-signbit-1.c +++ b/gcc/testsuite/gcc.dg/i386-signbit-1.c @@ -1,6 +1,6 @@ /* PR optimization/8746 */ -/* { dg-do run { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O1 -mtune=i586" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/i386-signbit-2.c b/gcc/testsuite/gcc.dg/i386-signbit-2.c index 3e35249dadd..8ca63965062 100644 --- a/gcc/testsuite/gcc.dg/i386-signbit-2.c +++ b/gcc/testsuite/gcc.dg/i386-signbit-2.c @@ -1,6 +1,6 @@ /* PR optimization/8746 */ -/* { dg-do run { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O1 -mtune=i586" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/i386-sse-5.c b/gcc/testsuite/gcc.dg/i386-sse-5.c index a35e5d60cb6..ced075ae97d 100644 --- a/gcc/testsuite/gcc.dg/i386-sse-5.c +++ b/gcc/testsuite/gcc.dg/i386-sse-5.c @@ -1,6 +1,7 @@ -/* { dg-do compile { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-Winline -O2 -march=i386" } */ + typedef double v2df __attribute__ ((vector_size (16))); v2df p; q(v2df t) diff --git a/gcc/testsuite/gcc.dg/i386-sse-8.c b/gcc/testsuite/gcc.dg/i386-sse-8.c index 7ae52fdca7c..bb89b444bc0 100644 --- a/gcc/testsuite/gcc.dg/i386-sse-8.c +++ b/gcc/testsuite/gcc.dg/i386-sse-8.c @@ -1,11 +1,11 @@ -/* PR target/14313 */ +/* PR target/14343 */ /* Origin: */ /* The xstormy16 doesn't support V2DI. */ /* { dg-do compile { xfail xstormy16-*-* } } */ /* { dg-options "" } */ -/* { dg-options "-march=pentium3" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-march=pentium3" { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ int main() { diff --git a/gcc/testsuite/gcc.dg/i386-unroll-1.c b/gcc/testsuite/gcc.dg/i386-unroll-1.c index 8ffd2ebe110..e681474725a 100644 --- a/gcc/testsuite/gcc.dg/i386-unroll-1.c +++ b/gcc/testsuite/gcc.dg/i386-unroll-1.c @@ -1,6 +1,6 @@ /* PR optimization/8599 */ -/* { dg-do run { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-mtune=k6 -O2 -funroll-loops" } */ extern void exit (int); diff --git a/gcc/testsuite/gcc.dg/tls/opt-1.c b/gcc/testsuite/gcc.dg/tls/opt-1.c index f817c04e151..f7dcceee7c8 100644 --- a/gcc/testsuite/gcc.dg/tls/opt-1.c +++ b/gcc/testsuite/gcc.dg/tls/opt-1.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fPIC" } */ -/* { dg-options "-O2 -fPIC -mtune=i686" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-O2 -fPIC -mtune=i686" { target { i?86-*-* && ilp32 } } } */ +/* { dg-options "-O2 -fPIC -mtune=i686" { target { x86_64-*-* && ilp32 } } } */ 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 6dc2b0e05aa..dde54f00674 100644 --- a/gcc/testsuite/gcc.dg/tls/opt-2.c +++ b/gcc/testsuite/gcc.dg/tls/opt-2.c @@ -4,8 +4,8 @@ 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-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { 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 } } } */ __thread int thr; diff --git a/gcc/testsuite/gcc.dg/unroll-1.c b/gcc/testsuite/gcc.dg/unroll-1.c index 2ea694f3521..26852c96e5f 100644 --- a/gcc/testsuite/gcc.dg/unroll-1.c +++ b/gcc/testsuite/gcc.dg/unroll-1.c @@ -1,8 +1,9 @@ /* PR optimization/8599 */ /* { dg-do run } */ /* { dg-options "-O2 -funroll-loops" } */ -/* { dg-options "-mtune=k6 -O2 -funroll-loops" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-mtune=k6 -O2 -funroll-loops" { target { i?86-*-* && ilp32 } } */ +/* { dg-options "-mtune=k6 -O2 -funroll-loops" { target { x86_64-*-* && ilp32 } } */ + extern void abort (void);