From: Kaveh R. Ghazi Date: Thu, 22 Dec 2005 04:55:18 +0000 (+0000) Subject: re PR testsuite/20772 (x86 tests should run on both i?86 and x86_64) X-Git-Tag: releases/gcc-3.4.6~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edbf54e3c6c41dba80e4ccc1eb1bf89eaa2c434c;p=thirdparty%2Fgcc.git re PR testsuite/20772 (x86 tests should run on both i?86 and x86_64) PR testsuite/20772 * g++.dg/abi/bitfield3.C, g++.dg/abi/bitfield8.C, g++.dg/abi/bitfield9.C, g++.dg/abi/dtor1.C, g++.dg/abi/empty10.C, g++.dg/abi/empty7.C, g++.dg/abi/empty9.C, g++.dg/abi/layout3.C, g++.dg/abi/layout4.C, g++.dg/abi/thunk1.C, g++.dg/abi/thunk2.C, g++.dg/abi/vbase11.C, g++.dg/abi/vthunk2.C, g++.dg/abi/vthunk3.C, g++.dg/eh/simd-1.C, g++.dg/eh/simd-2.C, g++.dg/ext/attrib8.C, g++.dg/opt/cse2.C, g++.dg/opt/inline9.C, g++.dg/opt/life1.C, g++.dg/opt/longbranch2.C, g++.dg/opt/mmx1.C, g++.dg/opt/reg-stack4.C, g++.dg/other/big-struct.C, g++.old-deja/g++.abi/aggregates.C, g++.old-deja/g++.abi/align.C, g++.old-deja/g++.abi/bitfields.C, g++.old-deja/g++.eh/tmpl2.C, g++.old-deja/g++.ext/asmspec1.C, 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++.law/weak.C, g++.old-deja/g++.other/regstack.C, g++.old-deja/g++.other/store-expr1.C, g++.old-deja/g++.other/store-expr2.C, g++.old-deja/g++.pt/asm1.C, g++.old-deja/g++.pt/asm2.C, g77.dg/20010216-1.f, gcc.c-torture/compile/20000804-1.c, gcc.c-torture/execute/990413-2.x, gcc.dg/20000609-1.c, gcc.dg/20000614-1.c, gcc.dg/20000720-1.c, gcc.dg/20000724-1.c, gcc.dg/20000807-1.c, gcc.dg/20000904-1.c, gcc.dg/20001127-1.c, gcc.dg/20010202-1.c, gcc.dg/20010520-1.c, gcc.dg/20011009-1.c, gcc.dg/20011029-2.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/20020224-1.c, gcc.dg/20020310-1.c, gcc.dg/20020411-1.c, gcc.dg/20020418-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/20020531-1.c, gcc.dg/20020616-1.c, gcc.dg/20020729-1.c, gcc.dg/20030204-1.c, gcc.dg/20030826-2.c, gcc.dg/20030926-1.c, gcc.dg/20031102-1.c, gcc.dg/20031202-1.c, gcc.dg/980226-1.c, gcc.dg/980312-1.c, gcc.dg/980313-1.c, gcc.dg/980414-1.c, gcc.dg/980520-1.c, gcc.dg/980709-1.c, gcc.dg/990117-1.c, gcc.dg/990130-1.c, gcc.dg/990213-2.c, gcc.dg/990214-1.c, gcc.dg/990424-1.c, gcc.dg/990524-1.c, gcc.dg/991129-1.c, gcc.dg/991209-1.c, gcc.dg/991214-1.c, gcc.dg/991230-1.c, gcc.dg/asm-1.c, gcc.dg/clobbers.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-asm-1.c, gcc.dg/i386-asm-2.c, gcc.dg/i386-bitfield1.c, gcc.dg/i386-bitfield2.c, gcc.dg/i386-bitfield3.c, gcc.dg/i386-call-1.c, gcc.dg/i386-local.c, gcc.dg/i386-loop-1.c, gcc.dg/i386-loop-2.c, gcc.dg/i386-loop-3.c, gcc.dg/i386-memset-1.c, gcc.dg/i386-pentium4-not-mull.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-signbit-3.c, gcc.dg/i386-sse-5.c, gcc.dg/i386-sse-8.c, gcc.dg/i386-ssetype-3.c, gcc.dg/i386-ssetype-5.c, gcc.dg/i386-unroll-1.c, gcc.dg/i386-volatile-1.c, gcc.dg/loop-3.c, gcc.dg/pr12092-1.c, gcc.dg/pr14289-1.c, gcc.dg/pr14289-2.c, gcc.dg/pr14289-3.c, gcc.dg/pr9771-1.c, gcc.dg/setjmp-2.c, gcc.dg/short-compare-1.c, gcc.dg/short-compare-2.c, gcc.dg/sibcall-5.c, gcc.dg/sibcall-6.c, gcc.dg/tls/opt-1.c, gcc.dg/tls/opt-2.c, gcc.dg/tls/opt-3.c, gcc.dg/torture/pr18582-1.c, gcc.dg/unroll-1.c, gcc.misc-tests/i386-pf-3dnow-1.c, gcc.misc-tests/i386-pf-athlon-1.c, gcc.misc-tests/i386-pf-none-1.c, gcc.misc-tests/i386-pf-sse-1.c: Backport portions of testcases. From-SVN: r108942 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2787994e242b..9bf64d4bf11a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,66 @@ +2005-12-21 Kaveh R. Ghazi + + PR testsuite/20772 + * g++.dg/abi/bitfield3.C, g++.dg/abi/bitfield8.C, + g++.dg/abi/bitfield9.C, g++.dg/abi/dtor1.C, g++.dg/abi/empty10.C, + g++.dg/abi/empty7.C, g++.dg/abi/empty9.C, g++.dg/abi/layout3.C, + g++.dg/abi/layout4.C, g++.dg/abi/thunk1.C, g++.dg/abi/thunk2.C, + g++.dg/abi/vbase11.C, g++.dg/abi/vthunk2.C, g++.dg/abi/vthunk3.C, + g++.dg/eh/simd-1.C, g++.dg/eh/simd-2.C, g++.dg/ext/attrib8.C, + g++.dg/opt/cse2.C, g++.dg/opt/inline9.C, g++.dg/opt/life1.C, + g++.dg/opt/longbranch2.C, g++.dg/opt/mmx1.C, + g++.dg/opt/reg-stack4.C, g++.dg/other/big-struct.C, + g++.old-deja/g++.abi/aggregates.C, g++.old-deja/g++.abi/align.C, + g++.old-deja/g++.abi/bitfields.C, g++.old-deja/g++.eh/tmpl2.C, + g++.old-deja/g++.ext/asmspec1.C, 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++.law/weak.C, g++.old-deja/g++.other/regstack.C, + g++.old-deja/g++.other/store-expr1.C, + g++.old-deja/g++.other/store-expr2.C, g++.old-deja/g++.pt/asm1.C, + g++.old-deja/g++.pt/asm2.C, g77.dg/20010216-1.f, + gcc.c-torture/compile/20000804-1.c, + gcc.c-torture/execute/990413-2.x, gcc.dg/20000609-1.c, + gcc.dg/20000614-1.c, gcc.dg/20000720-1.c, gcc.dg/20000724-1.c, + gcc.dg/20000807-1.c, gcc.dg/20000904-1.c, gcc.dg/20001127-1.c, + gcc.dg/20010202-1.c, gcc.dg/20010520-1.c, gcc.dg/20011009-1.c, + gcc.dg/20011029-2.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/20020224-1.c, gcc.dg/20020310-1.c, gcc.dg/20020411-1.c, + gcc.dg/20020418-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/20020531-1.c, gcc.dg/20020616-1.c, + gcc.dg/20020729-1.c, gcc.dg/20030204-1.c, gcc.dg/20030826-2.c, + gcc.dg/20030926-1.c, gcc.dg/20031102-1.c, gcc.dg/20031202-1.c, + gcc.dg/980226-1.c, gcc.dg/980312-1.c, gcc.dg/980313-1.c, + gcc.dg/980414-1.c, gcc.dg/980520-1.c, gcc.dg/980709-1.c, + gcc.dg/990117-1.c, gcc.dg/990130-1.c, gcc.dg/990213-2.c, + gcc.dg/990214-1.c, gcc.dg/990424-1.c, gcc.dg/990524-1.c, + gcc.dg/991129-1.c, gcc.dg/991209-1.c, gcc.dg/991214-1.c, + gcc.dg/991230-1.c, gcc.dg/asm-1.c, gcc.dg/clobbers.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-asm-1.c, gcc.dg/i386-asm-2.c, gcc.dg/i386-bitfield1.c, + gcc.dg/i386-bitfield2.c, gcc.dg/i386-bitfield3.c, + gcc.dg/i386-call-1.c, gcc.dg/i386-local.c, gcc.dg/i386-loop-1.c, + gcc.dg/i386-loop-2.c, gcc.dg/i386-loop-3.c, + gcc.dg/i386-memset-1.c, gcc.dg/i386-pentium4-not-mull.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-signbit-3.c, gcc.dg/i386-sse-5.c, gcc.dg/i386-sse-8.c, + gcc.dg/i386-ssetype-3.c, gcc.dg/i386-ssetype-5.c, + gcc.dg/i386-unroll-1.c, gcc.dg/i386-volatile-1.c, gcc.dg/loop-3.c, + gcc.dg/pr12092-1.c, gcc.dg/pr14289-1.c, gcc.dg/pr14289-2.c, + gcc.dg/pr14289-3.c, gcc.dg/pr9771-1.c, gcc.dg/setjmp-2.c, + gcc.dg/short-compare-1.c, gcc.dg/short-compare-2.c, + gcc.dg/sibcall-5.c, gcc.dg/sibcall-6.c, gcc.dg/tls/opt-1.c, + gcc.dg/tls/opt-2.c, gcc.dg/tls/opt-3.c, + gcc.dg/torture/pr18582-1.c, gcc.dg/unroll-1.c, + gcc.misc-tests/i386-pf-3dnow-1.c, + gcc.misc-tests/i386-pf-athlon-1.c, + gcc.misc-tests/i386-pf-none-1.c, gcc.misc-tests/i386-pf-sse-1.c: + Backport portions of testcases. + 2005-12-21 Janis Johnson Backport: diff --git a/gcc/testsuite/g++.dg/abi/bitfield3.C b/gcc/testsuite/g++.dg/abi/bitfield3.C index da7b92fad7f9..b12422a3e2c4 100644 --- a/gcc/testsuite/g++.dg/abi/bitfield3.C +++ b/gcc/testsuite/g++.dg/abi/bitfield3.C @@ -1,6 +1,7 @@ // Test for oversized bitfield alignment in structs on IA-32 -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-options "-O2" } +// { dg-require-effective-target ilp32 } struct A { diff --git a/gcc/testsuite/g++.dg/abi/bitfield8.C b/gcc/testsuite/g++.dg/abi/bitfield8.C index 8195fda631d0..58e74be08fb5 100644 --- a/gcc/testsuite/g++.dg/abi/bitfield8.C +++ b/gcc/testsuite/g++.dg/abi/bitfield8.C @@ -1,5 +1,7 @@ -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-options "-fabi-version=0" } +// { dg-require-effective-target ilp32 } + struct A { virtual void f() {} diff --git a/gcc/testsuite/g++.dg/abi/bitfield9.C b/gcc/testsuite/g++.dg/abi/bitfield9.C index 0d744c7318f6..0d3a8bf89858 100644 --- a/gcc/testsuite/g++.dg/abi/bitfield9.C +++ b/gcc/testsuite/g++.dg/abi/bitfield9.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options -w } struct X { diff --git a/gcc/testsuite/g++.dg/abi/dtor1.C b/gcc/testsuite/g++.dg/abi/dtor1.C index 48b0a5571277..f9425e013df5 100644 --- a/gcc/testsuite/g++.dg/abi/dtor1.C +++ b/gcc/testsuite/g++.dg/abi/dtor1.C @@ -1,4 +1,5 @@ -// { dg-do compile { target i?86-*-* } } +// { dg-do compile { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-fabi-version=0" } struct A { diff --git a/gcc/testsuite/g++.dg/abi/empty10.C b/gcc/testsuite/g++.dg/abi/empty10.C index 970afbaf5127..ae992944dee8 100644 --- a/gcc/testsuite/g++.dg/abi/empty10.C +++ b/gcc/testsuite/g++.dg/abi/empty10.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-fabi-version=0 -w" } struct E {}; diff --git a/gcc/testsuite/g++.dg/abi/empty7.C b/gcc/testsuite/g++.dg/abi/empty7.C index 4b1ac3b2c2cf..0a665a845317 100644 --- a/gcc/testsuite/g++.dg/abi/empty7.C +++ b/gcc/testsuite/g++.dg/abi/empty7.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-fabi-version=0" } struct S1 {}; diff --git a/gcc/testsuite/g++.dg/abi/empty9.C b/gcc/testsuite/g++.dg/abi/empty9.C index 757bf6c8690e..06e616adb30d 100644 --- a/gcc/testsuite/g++.dg/abi/empty9.C +++ b/gcc/testsuite/g++.dg/abi/empty9.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-w -fabi-version=0" } struct E1 {}; diff --git a/gcc/testsuite/g++.dg/abi/layout3.C b/gcc/testsuite/g++.dg/abi/layout3.C index 6ab6d6b4dc3c..a30a85219fd3 100644 --- a/gcc/testsuite/g++.dg/abi/layout3.C +++ b/gcc/testsuite/g++.dg/abi/layout3.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-fabi-version=0 -w" } struct S { diff --git a/gcc/testsuite/g++.dg/abi/layout4.C b/gcc/testsuite/g++.dg/abi/layout4.C index a1d27ee7f430..da3c2f5d8c77 100644 --- a/gcc/testsuite/g++.dg/abi/layout4.C +++ b/gcc/testsuite/g++.dg/abi/layout4.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-fabi-version=1" } struct C4 diff --git a/gcc/testsuite/g++.dg/abi/thunk1.C b/gcc/testsuite/g++.dg/abi/thunk1.C index c9ad5b478f9c..343a2aa6e276 100644 --- a/gcc/testsuite/g++.dg/abi/thunk1.C +++ b/gcc/testsuite/g++.dg/abi/thunk1.C @@ -1,4 +1,6 @@ -// { dg-do compile { target i?86-*-* } } +// { dg-do compile { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } + struct A { virtual void f (); diff --git a/gcc/testsuite/g++.dg/abi/thunk2.C b/gcc/testsuite/g++.dg/abi/thunk2.C index b1c9788e6d0b..e6b2924cfdba 100644 --- a/gcc/testsuite/g++.dg/abi/thunk2.C +++ b/gcc/testsuite/g++.dg/abi/thunk2.C @@ -1,4 +1,5 @@ -// { dg-do compile { target i?86-*-* } } +// { dg-do compile { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options -w } struct A { diff --git a/gcc/testsuite/g++.dg/abi/vbase11.C b/gcc/testsuite/g++.dg/abi/vbase11.C index 375577365a37..8c854b9c13e6 100644 --- a/gcc/testsuite/g++.dg/abi/vbase11.C +++ b/gcc/testsuite/g++.dg/abi/vbase11.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-fabi-version=0" } struct A { virtual void f(); char c1; }; diff --git a/gcc/testsuite/g++.dg/abi/vthunk2.C b/gcc/testsuite/g++.dg/abi/vthunk2.C index 2499749d64c1..9b6f14c50e2c 100644 --- a/gcc/testsuite/g++.dg/abi/vthunk2.C +++ b/gcc/testsuite/g++.dg/abi/vthunk2.C @@ -1,4 +1,5 @@ -// { dg-do compile { target i?86-*-* } } +// { dg-do compile { target i?86-*-* x86_64-*-*} } +// { dg-require-effective-target ilp32 } struct c0 { virtual void f (); diff --git a/gcc/testsuite/g++.dg/abi/vthunk3.C b/gcc/testsuite/g++.dg/abi/vthunk3.C index 3bd2fd40a18a..59fbbdc4be30 100644 --- a/gcc/testsuite/g++.dg/abi/vthunk3.C +++ b/gcc/testsuite/g++.dg/abi/vthunk3.C @@ -1,4 +1,5 @@ -// { dg-do compile { target i?86-*-* } } +// { dg-do compile { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-fabi-version=0" } struct A { diff --git a/gcc/testsuite/g++.dg/eh/simd-1.C b/gcc/testsuite/g++.dg/eh/simd-1.C index a8b180b6f453..46301c949ec0 100644 --- a/gcc/testsuite/g++.dg/eh/simd-1.C +++ b/gcc/testsuite/g++.dg/eh/simd-1.C @@ -1,7 +1,7 @@ // Test EH when V2SI SIMD registers are involved. // Contributed by Aldy Hernandez (aldy@quesejoda.com). // { dg-options "-O" } -// { dg-options "-O -w" { target i?86-*-* } } +// { dg-options "-O -w" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } // { dg-do run } // { dg-error "" "PR target/12916" { target sparc*-*-* } 0 } diff --git a/gcc/testsuite/g++.dg/eh/simd-2.C b/gcc/testsuite/g++.dg/eh/simd-2.C index 3b4b02d38413..367cae060ad4 100644 --- a/gcc/testsuite/g++.dg/eh/simd-2.C +++ b/gcc/testsuite/g++.dg/eh/simd-2.C @@ -1,7 +1,7 @@ // Test EH when V4SI SIMD registers are involved. // Contributed by Aldy Hernandez (aldy@quesejoda.com). // { dg-options "-O" } -// { dg-options "-O -w" { target i?86-*-* } } +// { dg-options "-O -w" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } // { dg-options "-O -w -maltivec" { target powerpc64-*-linux* } } // { dg-do run { xfail "powerpc64-*-linux*"} } // { dg-error "" "PR target/12916" { target sparc*-*-* } 0 } diff --git a/gcc/testsuite/g++.dg/ext/attrib8.C b/gcc/testsuite/g++.dg/ext/attrib8.C index 26021c56ca4b..7d99132c1751 100644 --- a/gcc/testsuite/g++.dg/ext/attrib8.C +++ b/gcc/testsuite/g++.dg/ext/attrib8.C @@ -1,5 +1,6 @@ // PR 8656 -// { dg-do compile { target i?86-*-* } } +// { dg-do compile { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } extern int * (__attribute__((stdcall)) *fooPtr)( void); int * __attribute__((stdcall)) myFn01( void) { return 0; } diff --git a/gcc/testsuite/g++.dg/opt/cse2.C b/gcc/testsuite/g++.dg/opt/cse2.C index 5a04bf53ecb4..325169dff348 100644 --- a/gcc/testsuite/g++.dg/opt/cse2.C +++ b/gcc/testsuite/g++.dg/opt/cse2.C @@ -1,6 +1,6 @@ // This testcase caused ICE on IA-32 in simplify_unary_operation // CSE did not assume SUBREGs changing mode from integral to floating. -// { dg-do run { target i?86-*-* sparc*-*-* } } +// { dg-do run { target i?86-*-* sparc*-*-* x86_64-*-* } } // { dg-options "-O2" } struct A diff --git a/gcc/testsuite/g++.dg/opt/inline9.C b/gcc/testsuite/g++.dg/opt/inline9.C index 10ccb47dc79f..10bc54ccd95d 100644 --- a/gcc/testsuite/g++.dg/opt/inline9.C +++ b/gcc/testsuite/g++.dg/opt/inline9.C @@ -3,7 +3,7 @@ // Testcase by Alan Modra // { dg-do run } // { dg-options "-O" } -// { dg-options "-O -mtune=i686" { target i?86-*-* } } +// { dg-options "-O -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } struct thread_info { diff --git a/gcc/testsuite/g++.dg/opt/life1.C b/gcc/testsuite/g++.dg/opt/life1.C index ac7a9f26d002..f029767b3131 100644 --- a/gcc/testsuite/g++.dg/opt/life1.C +++ b/gcc/testsuite/g++.dg/opt/life1.C @@ -1,6 +1,8 @@ // This testcase did not set up the pic register on IA-32 due // to bug in calculate_global_regs_live EH edge handling. -// { dg-do compile { target i?86-*-linux* } } +// { dg-do compile { target i?86-*-linux* x86_64-*-linux* } } +// { dg-require-effective-target ilp32 } +// { dg-require-effective-target fpic } // { dg-options "-O2 -fPIC" } struct A { }; diff --git a/gcc/testsuite/g++.dg/opt/longbranch2.C b/gcc/testsuite/g++.dg/opt/longbranch2.C index b74ceddf085c..f2a3a781788e 100644 --- a/gcc/testsuite/g++.dg/opt/longbranch2.C +++ b/gcc/testsuite/g++.dg/opt/longbranch2.C @@ -2,7 +2,8 @@ // Originator: thor@math.tu-berlin.de // { dg-do compile } -// { dg-options "-O3 -funroll-loops -mtune=k6 -fomit-frame-pointer" { target i?86-*-* } } +// { 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 e433d554aea5..93e3fe7f8145 100644 --- a/gcc/testsuite/g++.dg/opt/mmx1.C +++ b/gcc/testsuite/g++.dg/opt/mmx1.C @@ -3,7 +3,7 @@ // mmx -> mmx register moves. // { dg-do compile } // { dg-options "-O2" } -// { dg-options "-fno-exceptions -O2 -mmmx -fPIC" { target i?86-*-* } } +// { 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 7b461d8a6f31..b1b7434163a8 100644 --- a/gcc/testsuite/g++.dg/opt/reg-stack4.C +++ b/gcc/testsuite/g++.dg/opt/reg-stack4.C @@ -5,7 +5,7 @@ // deleted a valid edge. // { dg-do compile } -// { dg-options "-mtune=i586 -O2" { target i?86-*-* } } +// { dg-options "-mtune=i586 -O2" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } struct array { double data; diff --git a/gcc/testsuite/g++.dg/other/big-struct.C b/gcc/testsuite/g++.dg/other/big-struct.C index b00683135f3c..dcf230dd69cf 100644 --- a/gcc/testsuite/g++.dg/other/big-struct.C +++ b/gcc/testsuite/g++.dg/other/big-struct.C @@ -1,4 +1,5 @@ -// { dg-do compile { target i?86-*-* } } +// { dg-do compile { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } struct A { diff --git a/gcc/testsuite/g++.old-deja/g++.abi/aggregates.C b/gcc/testsuite/g++.old-deja/g++.abi/aggregates.C index 187c30b54d6a..24f430bd64eb 100644 --- a/gcc/testsuite/g++.old-deja/g++.abi/aggregates.C +++ b/gcc/testsuite/g++.old-deja/g++.abi/aggregates.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-linux* i?86-*-freebsd* } } +// { dg-do run { target i?86-*-linux* x86_64-*-linux* i?86-*-freebsd* } } +// { dg-require-effective-target ilp32 } // { dg-options "-malign-double" } // Origin: Alex Samuel diff --git a/gcc/testsuite/g++.old-deja/g++.abi/align.C b/gcc/testsuite/g++.old-deja/g++.abi/align.C index 28d3ba9ce86b..3f691e2909ed 100644 --- a/gcc/testsuite/g++.old-deja/g++.abi/align.C +++ b/gcc/testsuite/g++.old-deja/g++.abi/align.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-linux* i?86-*-freebsd* } } +// { dg-do run { target i?86-*-linux* x86_64-*-linux* i?86-*-freebsd* } } +// { dg-require-effective-target ilp32 } // { dg-options "-malign-double" } // Origin: Alex Samuel diff --git a/gcc/testsuite/g++.old-deja/g++.abi/bitfields.C b/gcc/testsuite/g++.old-deja/g++.abi/bitfields.C index 15f4ada3887e..d5c3192095de 100644 --- a/gcc/testsuite/g++.old-deja/g++.abi/bitfields.C +++ b/gcc/testsuite/g++.old-deja/g++.abi/bitfields.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-linux* i?86-*-freebsd* } } +// { dg-do run { target i?86-*-linux* x86_64-*-linux* i?86-*-freebsd* } } +// { dg-require-effective-target ilp32 } // { dg-options "-malign-double" } // Origin: Alex Samuel diff --git a/gcc/testsuite/g++.old-deja/g++.eh/tmpl2.C b/gcc/testsuite/g++.old-deja/g++.eh/tmpl2.C index 9bd5aeb64d8a..dd2801d26b3c 100644 --- a/gcc/testsuite/g++.old-deja/g++.eh/tmpl2.C +++ b/gcc/testsuite/g++.old-deja/g++.eh/tmpl2.C @@ -1,4 +1,4 @@ -// { dg-do assemble { xfail i*86-*-linux* } } +// { dg-do assemble } // { dg-options "-O" } // Posted by H. J. Lu diff --git a/gcc/testsuite/g++.old-deja/g++.ext/asmspec1.C b/gcc/testsuite/g++.old-deja/g++.ext/asmspec1.C index 146f3ac7348b..97d4b8e6bfc7 100644 --- a/gcc/testsuite/g++.old-deja/g++.ext/asmspec1.C +++ b/gcc/testsuite/g++.old-deja/g++.ext/asmspec1.C @@ -1,4 +1,4 @@ -// { dg-do assemble { target i?86-*-* } } +// { dg-do assemble { target i?86-*-* x86_64-*-* } } // Origin: Anthony Green void foo () diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C index 3947e904f5f8..e879791665d3 100644 --- a/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C +++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C @@ -1,4 +1,5 @@ -// { dg-do assemble { target i?86-*-* } } +// { 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 0979e168abb5..09b2bf2e67da 100644 --- a/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C +++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-* } } +// { 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 aff745e527cf..7d9c70e3b75d 100644 --- a/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C +++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-* } } +// { 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++.law/weak.C b/gcc/testsuite/g++.old-deja/g++.law/weak.C index a40350a78b3a..ea07afe4c42d 100644 --- a/gcc/testsuite/g++.old-deja/g++.law/weak.C +++ b/gcc/testsuite/g++.old-deja/g++.law/weak.C @@ -1,4 +1,4 @@ -// { dg-do link { target i?86-*-linux* } } +// { dg-do link { target i?86-*-linux* x86_64-*-linux* } } // { dg-options "-static" } // Bug: g++ fails to instantiate operator<<. diff --git a/gcc/testsuite/g++.old-deja/g++.other/regstack.C b/gcc/testsuite/g++.old-deja/g++.other/regstack.C index 5be2fcd99748..5b8334733325 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/regstack.C +++ b/gcc/testsuite/g++.old-deja/g++.other/regstack.C @@ -1,4 +1,4 @@ -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-options "-O2" } inline double foo (double x) 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 5a376669bd33..c4c0d8b84efc 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C +++ b/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } +// { dg-require-effective-target ilp32 } // { dg-options "-mtune=i686 -O2 -fpic" } 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 430a2c6c1f64..99e0943b3b62 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C +++ b/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C @@ -1,4 +1,5 @@ -// { dg-do run { target i?86-*-* } } +// { 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/g++.old-deja/g++.pt/asm1.C b/gcc/testsuite/g++.old-deja/g++.pt/asm1.C index 62787de9be18..8de6b767932c 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/asm1.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/asm1.C @@ -1,6 +1,6 @@ // { dg-do assemble { target i?86-*-linux* x86_64-*-linux* } } // We'd use ebx with -fpic/-fPIC, so skip. -// { dg-skip-if "" { i?86-*-* } { "-fpic" "-fPIC" } { "" } } +// { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } // Origin: "Weidmann, Nicholas" template int foo(int v) diff --git a/gcc/testsuite/g++.old-deja/g++.pt/asm2.C b/gcc/testsuite/g++.old-deja/g++.pt/asm2.C index 3fe5e2a213e3..90e494bf55cb 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/asm2.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/asm2.C @@ -1,6 +1,7 @@ -// { dg-do assemble { target i?86-*-linux* } } +// { dg-do assemble { target i?86-*-linux* x86_64-*-linux* } } +// { dg-require-effective-target ilp32 } // We'd use ebx with -fpic/-fPIC, so skip. -// { dg-skip-if "" { i?86-*-* } { "-fpic" "-fPIC" } { "" } } +// { dg-skip-if "" { *-*-* } { "-fpic" "-fPIC" } { "" } } // Origin: "Weidmann, Nicholas" typedef void (function_ptr)(int); diff --git a/gcc/testsuite/g77.dg/20010216-1.f b/gcc/testsuite/g77.dg/20010216-1.f index 150dc9f016ac..4e718cac8e7d 100644 --- a/gcc/testsuite/g77.dg/20010216-1.f +++ b/gcc/testsuite/g77.dg/20010216-1.f @@ -1,7 +1,7 @@ C Test for bug in reg-stack handling conditional moves. C Reported by Tim Prince C -C { dg-do run { target "i[6789]86-*-*" } } +C { dg-do run { target { { i[6789]86-*-* x86_64-*-* } && ilp32 } } } C { dg-options "-ffast-math -march=pentiumpro" } double precision function foo(x, y) diff --git a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c b/gcc/testsuite/gcc.c-torture/compile/20000804-1.c index 6942ae7c9ec7..1825cba14dae 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20000804-1.c @@ -1,7 +1,7 @@ /* This does not work on m68hc11 or h8300 due to the use of an asm statement to force a 'long long' (64-bits) to go in a register. */ /* { dg-do assemble { xfail m6811-*-* m6812-*-* h8300-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-fpic" "-fPIC" } { "" } } */ +/* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && ilp32 } { "-fpic" "-fPIC" } { "" } } */ /* Copyright (C) 2000, 2003 Free Software Foundation */ __complex__ long long f () diff --git a/gcc/testsuite/gcc.c-torture/execute/990413-2.x b/gcc/testsuite/gcc.c-torture/execute/990413-2.x index 039cecea4aa7..58be1c0e0972 100644 --- a/gcc/testsuite/gcc.c-torture/execute/990413-2.x +++ b/gcc/testsuite/gcc.c-torture/execute/990413-2.x @@ -1,3 +1,3 @@ # This test is x86 specific. -if { ! [istarget "i?86-*-*"] } { return 1 } -return 0 +if { [istarget "i?86-*-*"] || [istarget "x86_64-*-*"] } { return 0 } +return 1 diff --git a/gcc/testsuite/gcc.dg/20000609-1.c b/gcc/testsuite/gcc.dg/20000609-1.c index 568ca5c15960..5d452ac9d82e 100644 --- a/gcc/testsuite/gcc.dg/20000609-1.c +++ b/gcc/testsuite/gcc.dg/20000609-1.c @@ -1,6 +1,8 @@ -/* { 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" } */ + /* Sanity check for fp_jcc_* with TARGET_CMOVE. */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/20000614-1.c b/gcc/testsuite/gcc.dg/20000614-1.c index abc8ca2f7140..507596787a6d 100644 --- a/gcc/testsuite/gcc.dg/20000614-1.c +++ b/gcc/testsuite/gcc.dg/20000614-1.c @@ -1,4 +1,4 @@ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2" } */ void bar(char *p) diff --git a/gcc/testsuite/gcc.dg/20000720-1.c b/gcc/testsuite/gcc.dg/20000720-1.c index 92b52fb1d3b7..65bf68544b4e 100644 --- a/gcc/testsuite/gcc.dg/20000720-1.c +++ b/gcc/testsuite/gcc.dg/20000720-1.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { 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/20000724-1.c b/gcc/testsuite/gcc.dg/20000724-1.c index 3c4f2c394094..0516ae461163 100644 --- a/gcc/testsuite/gcc.dg/20000724-1.c +++ b/gcc/testsuite/gcc.dg/20000724-1.c @@ -1,5 +1,6 @@ -/* { dg-do run { target i?86-*-linux* } } */ +/* { dg-do run { target i?86-*-linux* x86_64-*-linux* } } */ /* { dg-options "-O2 -fomit-frame-pointer" } */ +/* { dg-require-effective-target ilp32 } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.dg/20000807-1.c b/gcc/testsuite/gcc.dg/20000807-1.c index f65476494832..360e3245989e 100644 --- a/gcc/testsuite/gcc.dg/20000807-1.c +++ b/gcc/testsuite/gcc.dg/20000807-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-Os -fpic" } */ #include diff --git a/gcc/testsuite/gcc.dg/20000904-1.c b/gcc/testsuite/gcc.dg/20000904-1.c index c6238e350994..31f937cab713 100644 --- a/gcc/testsuite/gcc.dg/20000904-1.c +++ b/gcc/testsuite/gcc.dg/20000904-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O0 -fpic" } */ static struct { diff --git a/gcc/testsuite/gcc.dg/20001127-1.c b/gcc/testsuite/gcc.dg/20001127-1.c index 6ac76e29e928..f63d1149322b 100644 --- a/gcc/testsuite/gcc.dg/20001127-1.c +++ b/gcc/testsuite/gcc.dg/20001127-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2" } */ extern inline float bar (float x) diff --git a/gcc/testsuite/gcc.dg/20010202-1.c b/gcc/testsuite/gcc.dg/20010202-1.c index e4eaae0b246d..eb2d2bfd1de2 100644 --- a/gcc/testsuite/gcc.dg/20010202-1.c +++ b/gcc/testsuite/gcc.dg/20010202-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* sparc*-*-* } } */ +/* { dg-do compile { target i?86-*-* sparc*-*-* x86_64-*-* } } */ /* { dg-options "-O2" } */ typedef enum { false, true } __attribute__ ((packed)) boolean; diff --git a/gcc/testsuite/gcc.dg/20010520-1.c b/gcc/testsuite/gcc.dg/20010520-1.c index c96dbc4eee5a..97ee32b0b828 100644 --- a/gcc/testsuite/gcc.dg/20010520-1.c +++ b/gcc/testsuite/gcc.dg/20010520-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-w" } */ void f () diff --git a/gcc/testsuite/gcc.dg/20011009-1.c b/gcc/testsuite/gcc.dg/20011009-1.c index dbf32e63fba8..b78d99e997bb 100644 --- a/gcc/testsuite/gcc.dg/20011009-1.c +++ b/gcc/testsuite/gcc.dg/20011009-1.c @@ -1,4 +1,4 @@ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/20011029-2.c b/gcc/testsuite/gcc.dg/20011029-2.c index 6fdc6216678a..07ef1a806fec 100644 --- a/gcc/testsuite/gcc.dg/20011029-2.c +++ b/gcc/testsuite/gcc.dg/20011029-2.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2" } */ int foo (int s) diff --git a/gcc/testsuite/gcc.dg/20011107-1.c b/gcc/testsuite/gcc.dg/20011107-1.c index 395de3dae340..0d09427a0b49 100644 --- a/gcc/testsuite/gcc.dg/20011107-1.c +++ b/gcc/testsuite/gcc.dg/20011107-1.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { 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 28672eddde4b..e297dc5f2a83 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 08baa076ec13..d61944c590ee 100644 --- a/gcc/testsuite/gcc.dg/20020108-1.c +++ b/gcc/testsuite/gcc.dg/20020108-1.c @@ -5,7 +5,8 @@ is not valid general_operand in HImode. */ /* { dg-do compile } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -mtune=i686" { target i?86-*-* } } */ +/* { dg-options "-O2 -mtune=i686" { target { { i?86-*-* 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 2115a22ad6a8..275dceed7245 100644 --- a/gcc/testsuite/gcc.dg/20020122-2.c +++ b/gcc/testsuite/gcc.dg/20020122-2.c @@ -3,7 +3,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */ -/* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon" { target i?86-*-* } } */ +/* { 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 3b2a371282e1..28f68719ed19 100644 --- a/gcc/testsuite/gcc.dg/20020122-3.c +++ b/gcc/testsuite/gcc.dg/20020122-3.c @@ -4,7 +4,7 @@ /* { dg-do compile } */ /* { dg-options "-Os -fprefetch-loop-arrays -w" } */ -/* { dg-options "-Os -fprefetch-loop-arrays -mtune=pentium3 -w" { target i?86-*-* } } */ +/* { 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/20020201-3.c b/gcc/testsuite/gcc.dg/20020201-3.c index 67e9a8a76e40..e95c44fbdfba 100644 --- a/gcc/testsuite/gcc.dg/20020201-3.c +++ b/gcc/testsuite/gcc.dg/20020201-3.c @@ -1,6 +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-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 724c03ab24bb..837718b6c4c7 100644 --- a/gcc/testsuite/gcc.dg/20020206-1.c +++ b/gcc/testsuite/gcc.dg/20020206-1.c @@ -4,7 +4,8 @@ /* { dg-do run } */ /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */ -/* { dg-options "-O2 -fprefetch-loop-arrays -mtune=pentium3 -w" { target i?86-*-* } } */ +/* { dg-options "-O2 -fprefetch-loop-arrays -mtune=pentium3 -w" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ + struct reload { diff --git a/gcc/testsuite/gcc.dg/20020218-1.c b/gcc/testsuite/gcc.dg/20020218-1.c index 2887328d5fb7..bef4d66fc13c 100644 --- a/gcc/testsuite/gcc.dg/20020218-1.c +++ b/gcc/testsuite/gcc.dg/20020218-1.c @@ -1,5 +1,6 @@ /* Verify that X86-64 only SSE registers aren't restored on IA-32. */ -/* { dg-do compile { target i?86-*-* } } */ +/* { 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/20020224-1.c b/gcc/testsuite/gcc.dg/20020224-1.c index a286b6b0599e..c37de2e21b7b 100644 --- a/gcc/testsuite/gcc.dg/20020224-1.c +++ b/gcc/testsuite/gcc.dg/20020224-1.c @@ -3,7 +3,7 @@ expected the callee to pop up the hidden return structure pointer, while callee was actually not poping it up (as the hidden argument was passed in register). */ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -fomit-frame-pointer" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/20020310-1.c b/gcc/testsuite/gcc.dg/20020310-1.c index 39fbdb0c96bd..bdd29672bd81 100644 --- a/gcc/testsuite/gcc.dg/20020310-1.c +++ b/gcc/testsuite/gcc.dg/20020310-1.c @@ -2,7 +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-*-* } } */ +/* { 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 a1834b8a1a5c..47a8fed50952 100644 --- a/gcc/testsuite/gcc.dg/20020411-1.c +++ b/gcc/testsuite/gcc.dg/20020411-1.c @@ -3,7 +3,7 @@ for its mode. */ /* { dg-do compile } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -march=i686" { target i?86-*-* } } */ +/* { dg-options "-O2 -march=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ #if __INT_MAX__ > 32767 diff --git a/gcc/testsuite/gcc.dg/20020418-1.c b/gcc/testsuite/gcc.dg/20020418-1.c index 308bfa3a266a..7314ec000ef2 100644 --- a/gcc/testsuite/gcc.dg/20020418-1.c +++ b/gcc/testsuite/gcc.dg/20020418-1.c @@ -1,7 +1,7 @@ /* PR optimization/5887 */ /* { dg-do compile } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -msse -ffast-math" { target i?86-*-* } } */ +/* { dg-options "-O2 -msse -ffast-math" { target i?86-*-* x86_64-*-* } } */ void bar (float *a, float *b); diff --git a/gcc/testsuite/gcc.dg/20020418-2.c b/gcc/testsuite/gcc.dg/20020418-2.c index fbc38da03da9..93688d270309 100644 --- a/gcc/testsuite/gcc.dg/20020418-2.c +++ b/gcc/testsuite/gcc.dg/20020418-2.c @@ -1,7 +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-*-* } } */ +/* { 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-1.c b/gcc/testsuite/gcc.dg/20020426-1.c index 94523e7298a7..31be74712c00 100644 --- a/gcc/testsuite/gcc.dg/20020426-1.c +++ b/gcc/testsuite/gcc.dg/20020426-1.c @@ -1,4 +1,5 @@ -/* { 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" } */ void f() { diff --git a/gcc/testsuite/gcc.dg/20020426-2.c b/gcc/testsuite/gcc.dg/20020426-2.c index 18a172767a1f..c3fabbbc91eb 100644 --- a/gcc/testsuite/gcc.dg/20020426-2.c +++ b/gcc/testsuite/gcc.dg/20020426-2.c @@ -2,7 +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-*-* } } */ +/* { dg-options "-O2 -frename-registers -fomit-frame-pointer -fPIC -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ typedef struct { diff --git a/gcc/testsuite/gcc.dg/20020517-1.c b/gcc/testsuite/gcc.dg/20020517-1.c index 40de8663d80f..032ccd23b512 100644 --- a/gcc/testsuite/gcc.dg/20020517-1.c +++ b/gcc/testsuite/gcc.dg/20020517-1.c @@ -2,7 +2,7 @@ was not sign-extended for QImode. */ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -mtune=i686" { target i?86-*-* } } */ +/* { dg-options "-O2 -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ #include diff --git a/gcc/testsuite/gcc.dg/20020523-1.c b/gcc/testsuite/gcc.dg/20020523-1.c index 5ae3da5473a6..1bfc787b9e7e 100644 --- a/gcc/testsuite/gcc.dg/20020523-1.c +++ b/gcc/testsuite/gcc.dg/20020523-1.c @@ -1,7 +1,9 @@ /* PR target/6753 This testcase was miscompiled because sse_mov?fcc_const0* patterns were missing earlyclobber. */ -/* { dg-do run { target i386-*-* } } */ +/* { dg-do run { target i386-*-* x86_64-*-* } } */ +/* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */ +/* { 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 1bb5a1a6567a..ebe8bb8f5cd6 100644 --- a/gcc/testsuite/gcc.dg/20020523-2.c +++ b/gcc/testsuite/gcc.dg/20020523-2.c @@ -1,7 +1,8 @@ /* PR target/6753 This testcase was miscompiled because sse_mov?fcc_const0* patterns were missing earlyclobber. */ -/* { dg-do run { target i386-*-* } } */ +/* { 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/20020531-1.c b/gcc/testsuite/gcc.dg/20020531-1.c index c18033f3d085..8821ac235d88 100644 --- a/gcc/testsuite/gcc.dg/20020531-1.c +++ b/gcc/testsuite/gcc.dg/20020531-1.c @@ -1,7 +1,7 @@ /* PR optimization/6842 This testcase caused ICE when trying to optimize V8QI subreg of VOIDmode CONST_DOUBLE. */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -mmmx" } */ typedef int __v8qi __attribute__ ((__mode__ (__V8QI__))); diff --git a/gcc/testsuite/gcc.dg/20020616-1.c b/gcc/testsuite/gcc.dg/20020616-1.c index 4630664d9579..6db784255962 100644 --- a/gcc/testsuite/gcc.dg/20020616-1.c +++ b/gcc/testsuite/gcc.dg/20020616-1.c @@ -1,5 +1,5 @@ /* PR opt/6722 */ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2" } */ register int k asm("%ebx"); diff --git a/gcc/testsuite/gcc.dg/20020729-1.c b/gcc/testsuite/gcc.dg/20020729-1.c index da1ed1b71530..eeab6985422c 100644 --- a/gcc/testsuite/gcc.dg/20020729-1.c +++ b/gcc/testsuite/gcc.dg/20020729-1.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { 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 e236e3a3a39c..b78b3a73ae87 100644 --- a/gcc/testsuite/gcc.dg/20030204-1.c +++ b/gcc/testsuite/gcc.dg/20030204-1.c @@ -1,7 +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-*-* } } */ +/* { 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 f25887d47d28..32db09195273 100644 --- a/gcc/testsuite/gcc.dg/20030826-2.c +++ b/gcc/testsuite/gcc.dg/20030826-2.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -fomit-frame-pointer" } */ -/* { dg-options "-O2 -fomit-frame-pointer -march=i386" { target i?86-*-* } } */ +/* { 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/20030926-1.c b/gcc/testsuite/gcc.dg/20030926-1.c index 39833a651712..8f81f31361cc 100644 --- a/gcc/testsuite/gcc.dg/20030926-1.c +++ b/gcc/testsuite/gcc.dg/20030926-1.c @@ -1,7 +1,10 @@ /* 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-*-* } } */ +/* { 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 *); void foo (char *p) diff --git a/gcc/testsuite/gcc.dg/20031102-1.c b/gcc/testsuite/gcc.dg/20031102-1.c index 4da4e6a8cc01..5a02a704a26f 100644 --- a/gcc/testsuite/gcc.dg/20031102-1.c +++ b/gcc/testsuite/gcc.dg/20031102-1.c @@ -3,7 +3,7 @@ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -march=i686" { target i686-*-* } } */ +/* { dg-options "-O2 -march=i686" { target { { i686-*-* x86_64-*-* } && ilp32 } } } */ /* Verify that reload_cse_move2add doesn't add unexpected CLOBBERs. */ diff --git a/gcc/testsuite/gcc.dg/20031202-1.c b/gcc/testsuite/gcc.dg/20031202-1.c index 424e01b5dd42..c7fbfe52404d 100644 --- a/gcc/testsuite/gcc.dg/20031202-1.c +++ b/gcc/testsuite/gcc.dg/20031202-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-options "-O2 -mtune=i686" { target i?86-*-* } } */ +/* { 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/980226-1.c b/gcc/testsuite/gcc.dg/980226-1.c index f66e9e2a9f7c..d3a5dd94cb9f 100644 --- a/gcc/testsuite/gcc.dg/980226-1.c +++ b/gcc/testsuite/gcc.dg/980226-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options -O2 } */ extern double bar (double); diff --git a/gcc/testsuite/gcc.dg/980312-1.c b/gcc/testsuite/gcc.dg/980312-1.c index 8f72c31d341f..edf3cf5d79d0 100644 --- a/gcc/testsuite/gcc.dg/980312-1.c +++ b/gcc/testsuite/gcc.dg/980312-1.c @@ -1,4 +1,5 @@ -/* { dg-do link { target i?86-*-* } } */ +/* { 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 1036339b076c..889654fc7921 100644 --- a/gcc/testsuite/gcc.dg/980313-1.c +++ b/gcc/testsuite/gcc.dg/980313-1.c @@ -1,4 +1,5 @@ -/* { dg-do link { target i?86-*-* } } */ +/* { 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/980414-1.c b/gcc/testsuite/gcc.dg/980414-1.c index 59382ef2c494..e179c8137c0a 100644 --- a/gcc/testsuite/gcc.dg/980414-1.c +++ b/gcc/testsuite/gcc.dg/980414-1.c @@ -1,6 +1,6 @@ /* Test double on x86. */ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options -O2 } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/980520-1.c b/gcc/testsuite/gcc.dg/980520-1.c index e1401824f548..b11f0d3a893b 100644 --- a/gcc/testsuite/gcc.dg/980520-1.c +++ b/gcc/testsuite/gcc.dg/980520-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options -O2 } */ int bug(void) diff --git a/gcc/testsuite/gcc.dg/980709-1.c b/gcc/testsuite/gcc.dg/980709-1.c index a4359300587a..01b6bfe358ea 100644 --- a/gcc/testsuite/gcc.dg/980709-1.c +++ b/gcc/testsuite/gcc.dg/980709-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options -O2 } */ extern __inline__ int test_and_set_bit(int nr, volatile void * addr) diff --git a/gcc/testsuite/gcc.dg/990117-1.c b/gcc/testsuite/gcc.dg/990117-1.c index 606ba440ca82..24c56f2febf8 100644 --- a/gcc/testsuite/gcc.dg/990117-1.c +++ b/gcc/testsuite/gcc.dg/990117-1.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { 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/990130-1.c b/gcc/testsuite/gcc.dg/990130-1.c index 3e711c2febb4..57e046b22a6b 100644 --- a/gcc/testsuite/gcc.dg/990130-1.c +++ b/gcc/testsuite/gcc.dg/990130-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options -O0 } */ typedef int SItype __attribute__ ((mode (SI))); diff --git a/gcc/testsuite/gcc.dg/990213-2.c b/gcc/testsuite/gcc.dg/990213-2.c index a0a13b560f9b..d095e3723f99 100644 --- a/gcc/testsuite/gcc.dg/990213-2.c +++ b/gcc/testsuite/gcc.dg/990213-2.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-fPIC" } */ struct normal_encoding {}; diff --git a/gcc/testsuite/gcc.dg/990214-1.c b/gcc/testsuite/gcc.dg/990214-1.c index 7ad81b6b90bc..b3cb519a471b 100644 --- a/gcc/testsuite/gcc.dg/990214-1.c +++ b/gcc/testsuite/gcc.dg/990214-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-fPIC" } */ typedef int int64_t __attribute__ ((__mode__ ( __DI__ ))) ; diff --git a/gcc/testsuite/gcc.dg/990424-1.c b/gcc/testsuite/gcc.dg/990424-1.c index 00b476427f3e..5b5af818076e 100644 --- a/gcc/testsuite/gcc.dg/990424-1.c +++ b/gcc/testsuite/gcc.dg/990424-1.c @@ -1,7 +1,8 @@ /* Test that stack alignment is preserved with pending_stack_adjust with stdcall functions. */ -/* { dg-do run { target i?86-*-* } } */ +/* { 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 8b1017245033..ee4ebd626717 100644 --- a/gcc/testsuite/gcc.dg/990524-1.c +++ b/gcc/testsuite/gcc.dg/990524-1.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { 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/991129-1.c b/gcc/testsuite/gcc.dg/991129-1.c index 24faefddaff2..489b7f987fa6 100644 --- a/gcc/testsuite/gcc.dg/991129-1.c +++ b/gcc/testsuite/gcc.dg/991129-1.c @@ -1,6 +1,6 @@ /* Test against a problem in push_reload. */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-options "-O2" } */ unsigned long foo (unsigned long long x, unsigned long y) diff --git a/gcc/testsuite/gcc.dg/991209-1.c b/gcc/testsuite/gcc.dg/991209-1.c index b3a47285158e..6b5c492c299d 100644 --- a/gcc/testsuite/gcc.dg/991209-1.c +++ b/gcc/testsuite/gcc.dg/991209-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ int foo () { diff --git a/gcc/testsuite/gcc.dg/991214-1.c b/gcc/testsuite/gcc.dg/991214-1.c index 68b6b927916f..cfe3a9a41210 100644 --- a/gcc/testsuite/gcc.dg/991214-1.c +++ b/gcc/testsuite/gcc.dg/991214-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-options "-O2" } */ /* Test against a problem with the combiner substituting explicit hard reg diff --git a/gcc/testsuite/gcc.dg/991230-1.c b/gcc/testsuite/gcc.dg/991230-1.c index 76b1b8e98842..b87d0e2e3cb8 100644 --- a/gcc/testsuite/gcc.dg/991230-1.c +++ b/gcc/testsuite/gcc.dg/991230-1.c @@ -1,4 +1,5 @@ -/* { dg-do run { target i?86-*-* } } */ +/* { 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/asm-1.c b/gcc/testsuite/gcc.dg/asm-1.c index 1f509422e974..3bf5c29c4cdc 100644 --- a/gcc/testsuite/gcc.dg/asm-1.c +++ b/gcc/testsuite/gcc.dg/asm-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile } */ struct x { int selector; diff --git a/gcc/testsuite/gcc.dg/clobbers.c b/gcc/testsuite/gcc.dg/clobbers.c index 5e312bcb95c2..be48ed7e277f 100644 --- a/gcc/testsuite/gcc.dg/clobbers.c +++ b/gcc/testsuite/gcc.dg/clobbers.c @@ -1,7 +1,7 @@ /* Test asm clobbers on x86. */ -/* { dg-do run { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-fpic" "-fPIC" } { "" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/i386-387-1.c b/gcc/testsuite/gcc.dg/i386-387-1.c index 74a76b63807d..6b8c25bec513 100644 --- a/gcc/testsuite/gcc.dg/i386-387-1.c +++ b/gcc/testsuite/gcc.dg/i386-387-1.c @@ -1,5 +1,6 @@ /* Verify that -mno-fancy-math-387 works. */ -/* { dg-do compile { target "i?86-*-*" } } */ +/* { 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 bfda85bc1710..8a896e2f5325 100644 --- a/gcc/testsuite/gcc.dg/i386-387-2.c +++ b/gcc/testsuite/gcc.dg/i386-387-2.c @@ -1,5 +1,6 @@ /* Verify that -march overrides -mno-fancy-math-387. */ -/* { dg-do compile { target "i?86-*-*" } } */ +/* { 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 f61cd6100e2b..ed80f78187d1 100644 --- a/gcc/testsuite/gcc.dg/i386-387-3.c +++ b/gcc/testsuite/gcc.dg/i386-387-3.c @@ -1,5 +1,6 @@ /* Verify that 387 mathematical constants are recognized. */ -/* { dg-do compile { target "i?86-*-*" } } */ +/* { 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 809ab823660a..55398275570c 100644 --- a/gcc/testsuite/gcc.dg/i386-387-4.c +++ b/gcc/testsuite/gcc.dg/i386-387-4.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target "i?86-*-*" } } */ +/* { 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 2c86dd0869a6..2bcd6dec588f 100644 --- a/gcc/testsuite/gcc.dg/i386-387-5.c +++ b/gcc/testsuite/gcc.dg/i386-387-5.c @@ -1,7 +1,7 @@ /* Verify that -mno-fancy-math-387 works. */ -/* { dg-do compile { target "i?86-*-*" } } */ +/* { 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" } } */ double f1(double x) { return __builtin_atan(x); } - diff --git a/gcc/testsuite/gcc.dg/i386-387-6.c b/gcc/testsuite/gcc.dg/i386-387-6.c index 8eb29a11320b..940d1d1dd15f 100644 --- a/gcc/testsuite/gcc.dg/i386-387-6.c +++ b/gcc/testsuite/gcc.dg/i386-387-6.c @@ -1,5 +1,6 @@ /* Verify that -march overrides -mno-fancy-math-387. */ -/* { dg-do compile { target "i?86-*-*" } } */ +/* { 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" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-asm-1.c b/gcc/testsuite/gcc.dg/i386-asm-1.c index bf7aa1d0c4b5..e871dd9343f1 100644 --- a/gcc/testsuite/gcc.dg/i386-asm-1.c +++ b/gcc/testsuite/gcc.dg/i386-asm-1.c @@ -1,7 +1,9 @@ /* PR inline-asm/11676 */ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2" } */ +extern void abort (void); static int bar(int x) __asm__("bar") __attribute__((regparm(1))); static int __attribute__((regparm(1), noinline, used)) bar(int x) diff --git a/gcc/testsuite/gcc.dg/i386-asm-2.c b/gcc/testsuite/gcc.dg/i386-asm-2.c index e143ea369788..7e9ecb7797df 100644 --- a/gcc/testsuite/gcc.dg/i386-asm-2.c +++ b/gcc/testsuite/gcc.dg/i386-asm-2.c @@ -1,5 +1,6 @@ /* PR opt/13862 */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O" } */ typedef struct _fame_syntax_t_ { diff --git a/gcc/testsuite/gcc.dg/i386-bitfield1.c b/gcc/testsuite/gcc.dg/i386-bitfield1.c index 26154f57d11c..e285ba0526a1 100644 --- a/gcc/testsuite/gcc.dg/i386-bitfield1.c +++ b/gcc/testsuite/gcc.dg/i386-bitfield1.c @@ -1,7 +1,8 @@ // Test for bitfield alignment in structs on IA-32 -// { dg-do run { target i?86-*-* } } +// { 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 *-*-interix* } } +// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw*} } extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.dg/i386-bitfield2.c b/gcc/testsuite/gcc.dg/i386-bitfield2.c index 2ea798207dc4..54f5c8dbfd30 100644 --- a/gcc/testsuite/gcc.dg/i386-bitfield2.c +++ b/gcc/testsuite/gcc.dg/i386-bitfield2.c @@ -1,7 +1,8 @@ // Test for bitfield alignment in structs on IA-32 -// { dg-do run { target i?86-*-* } } +// { 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 *-*-interix* } } +// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw* } } extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.dg/i386-bitfield3.c b/gcc/testsuite/gcc.dg/i386-bitfield3.c index 781c2f7ba4ee..111f5f28c427 100644 --- a/gcc/testsuite/gcc.dg/i386-bitfield3.c +++ b/gcc/testsuite/gcc.dg/i386-bitfield3.c @@ -1,5 +1,5 @@ // Test for bitfield alignment in structs on IA-32 -// { dg-do run { target i?86-*-* } } +// { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-options "-O2" } // { dg-options "-mno-align-double -mno-ms-bitfields" { target *-*-interix* } } diff --git a/gcc/testsuite/gcc.dg/i386-call-1.c b/gcc/testsuite/gcc.dg/i386-call-1.c index 9cd49da3b2fa..3c3d642babd5 100644 --- a/gcc/testsuite/gcc.dg/i386-call-1.c +++ b/gcc/testsuite/gcc.dg/i386-call-1.c @@ -1,6 +1,6 @@ /* PR optimization/11304 */ /* Originator: */ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O -fomit-frame-pointer" } */ /* Verify that %eax is always restored after a call. */ diff --git a/gcc/testsuite/gcc.dg/i386-local.c b/gcc/testsuite/gcc.dg/i386-local.c index 1ff6b53b66df..2fda2a2fc994 100644 --- a/gcc/testsuite/gcc.dg/i386-local.c +++ b/gcc/testsuite/gcc.dg/i386-local.c @@ -1,9 +1,7 @@ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -funit-at-a-time" } */ -/* { dg-final { scan-assembler "magic\[^\\n\]*eax" { target i?86-*-* } } } */ -/* { dg-final { scan-assembler "magic\[^\\n\]*edi" { target x86_64-*-* } } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ -/* { dg-skip-if "" { x86_64-*-* } { "-m32" } { "" } } */ +/* { dg-final { scan-assembler "magic\[^\\n\]*eax" { target ilp32 } } } */ +/* { dg-final { scan-assembler "magic\[^\\n\]*edi" { target lp64 } } } */ /* Verify that local calling convention is used. */ static t(int) __attribute__ ((noinline)); diff --git a/gcc/testsuite/gcc.dg/i386-loop-1.c b/gcc/testsuite/gcc.dg/i386-loop-1.c index 635f012a4777..479c80a2d7ab 100644 --- a/gcc/testsuite/gcc.dg/i386-loop-1.c +++ b/gcc/testsuite/gcc.dg/i386-loop-1.c @@ -1,5 +1,6 @@ /* PR optimization/9888 */ -/* { dg-do run { target i?86-*-* } } */ +/* { 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 3a3e69e98b4f..8994eada46ef 100644 --- a/gcc/testsuite/gcc.dg/i386-loop-2.c +++ b/gcc/testsuite/gcc.dg/i386-loop-2.c @@ -1,6 +1,7 @@ /* PR optimization/9888 */ /* Originator: Jim Bray */ -/* { dg-do run { target i?86-*-* } } */ +/* { 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 c1b4bcea5be4..4e046b28acb4 100644 --- a/gcc/testsuite/gcc.dg/i386-loop-3.c +++ b/gcc/testsuite/gcc.dg/i386-loop-3.c @@ -1,9 +1,13 @@ /* PR target/11044 */ /* Originator: Tim McGrath */ /* Testcase contributed by Eric Botcazou */ -/* { dg-do run { target i?86-*-* } } */ +/* { 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__); +extern void abort (void); + typedef struct { unsigned char colormod; diff --git a/gcc/testsuite/gcc.dg/i386-memset-1.c b/gcc/testsuite/gcc.dg/i386-memset-1.c index f450dd7287ef..b7ee8575f93b 100644 --- a/gcc/testsuite/gcc.dg/i386-memset-1.c +++ b/gcc/testsuite/gcc.dg/i386-memset-1.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002 Free Software Foundation. +/* Copyright (C) 2002, 2005 Free Software Foundation. Test -minline-all-stringops memset with various combinations of pointer alignments and lengths to make sure builtin optimizations are correct. @@ -7,7 +7,7 @@ Written by Michael Meissner, March 9, 2002. Target by Roger Sayle, April 25, 2002. */ -/* { dg-do run { target "i?86-*-*" } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -minline-all-stringops" } */ #ifndef MAX_OFFSET diff --git a/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c b/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c index 8d4a083e5d8f..2ae7512cb48b 100644 --- a/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c +++ b/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c @@ -1,6 +1,6 @@ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-O2 -march=pentium4" { target i?86-*-* } } */ -/* { dg-options "-O2 -march=pentium4 -m32" { target x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ +/* { dg-options "-O2 -march=pentium4" } */ /* { dg-final { scan-assembler-not "imull" } } */ /* Should be done not using imull. */ diff --git a/gcc/testsuite/gcc.dg/i386-pic-1.c b/gcc/testsuite/gcc.dg/i386-pic-1.c index 4c548bf1cd60..7762230c2f6c 100644 --- a/gcc/testsuite/gcc.dg/i386-pic-1.c +++ b/gcc/testsuite/gcc.dg/i386-pic-1.c @@ -1,5 +1,6 @@ /* PR target/8340 */ -/* { dg-do compile { target i?86-*-* } } */ +/* { 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 18206ea7fc34..e3cd8b090ffa 100644 --- a/gcc/testsuite/gcc.dg/i386-regparm.c +++ b/gcc/testsuite/gcc.dg/i386-regparm.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { 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 8b8866e92aa2..adb351a2772f 100644 --- a/gcc/testsuite/gcc.dg/i386-signbit-1.c +++ b/gcc/testsuite/gcc.dg/i386-signbit-1.c @@ -1,5 +1,6 @@ /* PR optimization/8746 */ -/* { dg-do run { target i?86-*-* } } */ +/* { 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 5687d857a077..8ca63965062b 100644 --- a/gcc/testsuite/gcc.dg/i386-signbit-2.c +++ b/gcc/testsuite/gcc.dg/i386-signbit-2.c @@ -1,5 +1,6 @@ /* PR optimization/8746 */ -/* { dg-do run { target i?86-*-* } } */ +/* { 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-3.c b/gcc/testsuite/gcc.dg/i386-signbit-3.c index ae97f2156032..a08ca498142f 100644 --- a/gcc/testsuite/gcc.dg/i386-signbit-3.c +++ b/gcc/testsuite/gcc.dg/i386-signbit-3.c @@ -1,5 +1,6 @@ /* PR optimization/8746 */ -/* { dg-do run { target i?86-*-* } } */ +/* { 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 ff41a8e52386..8fa2247411f9 100644 --- a/gcc/testsuite/gcc.dg/i386-sse-5.c +++ b/gcc/testsuite/gcc.dg/i386-sse-5.c @@ -1,5 +1,7 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-Winline -O2 -march=i386" } */ + typedef float v2df __attribute__ ((mode(V2DF))); 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 ffaa5fa93900..23bf8d76cda4 100644 --- a/gcc/testsuite/gcc.dg/i386-sse-8.c +++ b/gcc/testsuite/gcc.dg/i386-sse-8.c @@ -1,9 +1,9 @@ -/* PR target/14313 */ +/* PR target/14343 */ /* Origin: */ /* { dg-do compile } */ -/* { dg-options "-march=pentium3" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "" } */ +/* { dg-options "-march=pentium3" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ int main() { diff --git a/gcc/testsuite/gcc.dg/i386-ssetype-3.c b/gcc/testsuite/gcc.dg/i386-ssetype-3.c index 3b2461be32cb..cae79e552029 100644 --- a/gcc/testsuite/gcc.dg/i386-ssetype-3.c +++ b/gcc/testsuite/gcc.dg/i386-ssetype-3.c @@ -11,7 +11,7 @@ #include -__m128 magic_a, magic_b; +static __m128 magic_a, magic_b; __m128 t1(void) { diff --git a/gcc/testsuite/gcc.dg/i386-ssetype-5.c b/gcc/testsuite/gcc.dg/i386-ssetype-5.c index 866c4d3d5778..b03c83bab84e 100644 --- a/gcc/testsuite/gcc.dg/i386-ssetype-5.c +++ b/gcc/testsuite/gcc.dg/i386-ssetype-5.c @@ -10,7 +10,7 @@ /* Verify that we generate proper instruction with memory operand. */ #include -__m128i magic_a, magic_b; +static __m128i magic_a, magic_b; __m128i t1(void) { diff --git a/gcc/testsuite/gcc.dg/i386-unroll-1.c b/gcc/testsuite/gcc.dg/i386-unroll-1.c index a424b95eba24..e681474725a3 100644 --- a/gcc/testsuite/gcc.dg/i386-unroll-1.c +++ b/gcc/testsuite/gcc.dg/i386-unroll-1.c @@ -1,5 +1,6 @@ /* PR optimization/8599 */ -/* { dg-do run { target i?86-*-* } } */ +/* { 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/i386-volatile-1.c b/gcc/testsuite/gcc.dg/i386-volatile-1.c index 633ea5022ec9..8a37df48b203 100644 --- a/gcc/testsuite/gcc.dg/i386-volatile-1.c +++ b/gcc/testsuite/gcc.dg/i386-volatile-1.c @@ -1,6 +1,6 @@ /* PR optimization/11381 */ /* Originator: */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O" } */ /* Verify that the comparison is not optimized away. */ diff --git a/gcc/testsuite/gcc.dg/loop-3.c b/gcc/testsuite/gcc.dg/loop-3.c index 8c7b1a4cffc9..06428d92feb8 100644 --- a/gcc/testsuite/gcc.dg/loop-3.c +++ b/gcc/testsuite/gcc.dg/loop-3.c @@ -3,8 +3,7 @@ /* { dg-do compile } */ /* { dg-options "-O3" } */ -/* { dg-options "-O3 -mtune=i386" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ +/* { dg-options "-O3 -mtune=i386" { target { { i?86-*-* x86_64-*-* } && 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 8f38a4a7f46c..80c7546d9fbe 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-do compile { target i?86-*-* x86_64-*-* } } */ +/* { 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/pr14289-1.c b/gcc/testsuite/gcc.dg/pr14289-1.c index 652916325c21..71317d542c77 100644 --- a/gcc/testsuite/gcc.dg/pr14289-1.c +++ b/gcc/testsuite/gcc.dg/pr14289-1.c @@ -1,5 +1,5 @@ /* PR middle-end/14289 */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O0" } */ register int a[2] asm("ebx"); diff --git a/gcc/testsuite/gcc.dg/pr14289-2.c b/gcc/testsuite/gcc.dg/pr14289-2.c index 7530b468caca..6cc33e733c42 100644 --- a/gcc/testsuite/gcc.dg/pr14289-2.c +++ b/gcc/testsuite/gcc.dg/pr14289-2.c @@ -1,5 +1,5 @@ /* PR middle-end/14289 */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O0" } */ static register int a[2] asm("ebx"); /* { dg-error "multiple storage" } */ diff --git a/gcc/testsuite/gcc.dg/pr14289-3.c b/gcc/testsuite/gcc.dg/pr14289-3.c index 7cfbf78ce050..a96e48c5fdaf 100644 --- a/gcc/testsuite/gcc.dg/pr14289-3.c +++ b/gcc/testsuite/gcc.dg/pr14289-3.c @@ -1,5 +1,5 @@ /* PR middle-end/14289 */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O0" } */ extern register int a[2] asm("ebx"); /* { dg-error "multiple storage" } */ diff --git a/gcc/testsuite/gcc.dg/pr9771-1.c b/gcc/testsuite/gcc.dg/pr9771-1.c index 1e3bc036aeee..30e42de60b1e 100644 --- a/gcc/testsuite/gcc.dg/pr9771-1.c +++ b/gcc/testsuite/gcc.dg/pr9771-1.c @@ -1,5 +1,6 @@ /* PR rtl-optimization/9771 */ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -fomit-frame-pointer -ffixed-ebp" } */ extern void abort(void); diff --git a/gcc/testsuite/gcc.dg/setjmp-2.c b/gcc/testsuite/gcc.dg/setjmp-2.c index 6c89f8e96970..8ad874d522cc 100644 --- a/gcc/testsuite/gcc.dg/setjmp-2.c +++ b/gcc/testsuite/gcc.dg/setjmp-2.c @@ -1,8 +1,8 @@ /* PR middle-end/17813 */ /* Origin: Tom Hughes */ /* { dg-do run { target i?86-*-linux* x86_64-*-linux* } } */ -/* { dg-options "-O -fomit-frame-pointer -march=i386" { target i?86-*-linux* } } */ -/* { dg-options "-O -fomit-frame-pointer -m32 -march=i386" { target x86_64-*-linux* } } */ +/* { 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 6a4e388d1796..4c470529bc70 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-*-* } } */ -/* { dg-options "-O -m32 -mtune=i686" { target x86_64-*-* } } */ +/* { 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 1c5963c5a2f2..0026a88c1ff7 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-*-* } } */ -/* { dg-options "-O -m32 -mtune=i686" { target x86_64-*-* } } */ +/* { dg-options "-O -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ extern void abort(); diff --git a/gcc/testsuite/gcc.dg/sibcall-5.c b/gcc/testsuite/gcc.dg/sibcall-5.c index 424908dba5a3..f4ab7dd384c3 100644 --- a/gcc/testsuite/gcc.dg/sibcall-5.c +++ b/gcc/testsuite/gcc.dg/sibcall-5.c @@ -1,5 +1,6 @@ /* Check that indirect sibcalls understand regparm. */ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2" } */ int (*f)(int, int) __attribute__((regparm(2))); diff --git a/gcc/testsuite/gcc.dg/sibcall-6.c b/gcc/testsuite/gcc.dg/sibcall-6.c index 771a14e8b567..0ff37e936dbf 100644 --- a/gcc/testsuite/gcc.dg/sibcall-6.c +++ b/gcc/testsuite/gcc.dg/sibcall-6.c @@ -7,6 +7,7 @@ Contributed by Andreas Bauer */ /* { dg-do run { target i?86-*-* x86_64-*-*} } */ +/* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && ilp32 } { "-fpic" "-fPIC" } { "" } } */ /* { dg-options "-O2 -foptimize-sibling-calls" } */ int foo (int); diff --git a/gcc/testsuite/gcc.dg/tls/opt-1.c b/gcc/testsuite/gcc.dg/tls/opt-1.c index 8523c762a2ed..111caa8bd366 100644 --- a/gcc/testsuite/gcc.dg/tls/opt-1.c +++ b/gcc/testsuite/gcc.dg/tls/opt-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fPIC" } */ -/* { dg-options "-O2 -fPIC -mtune=i686" { target i?86-*-* } } */ +/* { dg-options "-O2 -fPIC -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ +/* { 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 713fb7f360c2..b422eec60ab5 100644 --- a/gcc/testsuite/gcc.dg/tls/opt-2.c +++ b/gcc/testsuite/gcc.dg/tls/opt-2.c @@ -4,7 +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-*-* } } */ +/* { dg-options "-O2 -ftls-model=initial-exec -march=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ __thread int thr; diff --git a/gcc/testsuite/gcc.dg/tls/opt-3.c b/gcc/testsuite/gcc.dg/tls/opt-3.c index 8e476f657e8e..1d187822980a 100644 --- a/gcc/testsuite/gcc.dg/tls/opt-3.c +++ b/gcc/testsuite/gcc.dg/tls/opt-3.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fpic" } */ -/* { dg-options "-O2 -fpic -mregparm=3" { target i?86-*-* } } */ +/* { dg-options "-O2 -fpic -mregparm=3" { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target fpic } */ extern __thread int i, j, k; extern void bar(int *, int *, int *); diff --git a/gcc/testsuite/gcc.dg/torture/pr18582-1.c b/gcc/testsuite/gcc.dg/torture/pr18582-1.c index 93fde0c4a2f9..25218562a5df 100644 --- a/gcc/testsuite/gcc.dg/torture/pr18582-1.c +++ b/gcc/testsuite/gcc.dg/torture/pr18582-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-msse3" } */ typedef char v16qi __attribute__((vector_size (16))); typedef int v4si __attribute__((vector_size (16))); diff --git a/gcc/testsuite/gcc.dg/unroll-1.c b/gcc/testsuite/gcc.dg/unroll-1.c index 1e2dd09ebecc..0148490e6ba9 100644 --- a/gcc/testsuite/gcc.dg/unroll-1.c +++ b/gcc/testsuite/gcc.dg/unroll-1.c @@ -1,7 +1,7 @@ /* PR optimization/8599 */ /* { dg-do run } */ /* { dg-options "-O2 -funroll-loops" } */ -/* { dg-options "-mtune=k6 -O2 -funroll-loops" { target i?86-*-* } } */ +/* { dg-options "-mtune=k6 -O2 -funroll-loops" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.misc-tests/i386-pf-3dnow-1.c b/gcc/testsuite/gcc.misc-tests/i386-pf-3dnow-1.c index 5774963d04fc..ffb2e79530b9 100644 --- a/gcc/testsuite/gcc.misc-tests/i386-pf-3dnow-1.c +++ b/gcc/testsuite/gcc.misc-tests/i386-pf-3dnow-1.c @@ -1,7 +1,10 @@ /* Test that the correct data prefetch instructions are generated for i386 variants that use 3DNow! prefetch instructions. */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-*} } */ +/* { dg-require-effective-target ilp32 } */ + +extern void exit (int); char *msg = "howdy there"; diff --git a/gcc/testsuite/gcc.misc-tests/i386-pf-athlon-1.c b/gcc/testsuite/gcc.misc-tests/i386-pf-athlon-1.c index 301e8b7ed9f8..8d5ad1efe7d6 100644 --- a/gcc/testsuite/gcc.misc-tests/i386-pf-athlon-1.c +++ b/gcc/testsuite/gcc.misc-tests/i386-pf-athlon-1.c @@ -2,7 +2,10 @@ variants that use 3DNow! prefetchw or SSE prefetch instructions with locality hints. */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ + +extern void exit (int); char *msg = "howdy there"; diff --git a/gcc/testsuite/gcc.misc-tests/i386-pf-none-1.c b/gcc/testsuite/gcc.misc-tests/i386-pf-none-1.c index bdd236ade883..d87a2100dda8 100644 --- a/gcc/testsuite/gcc.misc-tests/i386-pf-none-1.c +++ b/gcc/testsuite/gcc.misc-tests/i386-pf-none-1.c @@ -1,7 +1,10 @@ /* Test that data prefetch instructions are not generated for i386 variants that do not support those instructions. */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ + +extern void exit (int); char *msg = "howdy there"; diff --git a/gcc/testsuite/gcc.misc-tests/i386-pf-sse-1.c b/gcc/testsuite/gcc.misc-tests/i386-pf-sse-1.c index 783fc822dae1..fb47c9dfc539 100644 --- a/gcc/testsuite/gcc.misc-tests/i386-pf-sse-1.c +++ b/gcc/testsuite/gcc.misc-tests/i386-pf-sse-1.c @@ -1,7 +1,10 @@ /* Test that the correct data prefetch instructions are generated for i386 variants that use SSE prefetch instructions. */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ + +extern void exit (int); char *msg = "howdy there";