diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg')
124 files changed, 358 insertions, 346 deletions
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/20000614-1.c b/gcc/testsuite/gcc.dg/20000614-1.c index abc8ca2f714..507596787a6 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 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/20000807-1.c b/gcc/testsuite/gcc.dg/20000807-1.c index f6547649483..360e3245989 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 <string.h> diff --git a/gcc/testsuite/gcc.dg/20000904-1.c b/gcc/testsuite/gcc.dg/20000904-1.c index c6238e35099..31f937cab71 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 6ac76e29e92..f63d1149322 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 f600373b8a3..5f789042eba 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" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/20010520-1.c b/gcc/testsuite/gcc.dg/20010520-1.c index c96dbc4eee5..97ee32b0b82 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 dbf32e63fba..b78d99e997b 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 6fdc6216678..07ef1a806fe 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 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..5dca0dba4c4 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 "-O2 -fprefetch-loop-arrays -march=athlon" { target { i?86-*-* && ilp32 } } } */ +/* { dg-options "-O2 -fprefetch-loop-arrays -march=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/20020224-1.c b/gcc/testsuite/gcc.dg/20020224-1.c index a286b6b0599..c37de2e21b7 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 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 <limits.h> 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/20020531-1.c b/gcc/testsuite/gcc.dg/20020531-1.c index 19f198fcac1..dfefc17c45a 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 unsigned char __v8qi __attribute__ ((vector_size (8))); diff --git a/gcc/testsuite/gcc.dg/20020616-1.c b/gcc/testsuite/gcc.dg/20020616-1.c index 4630664d957..6db78425596 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 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..866ebb808d5 100644 --- a/gcc/testsuite/gcc.dg/20030926-1.c +++ b/gcc/testsuite/gcc.dg/20030926-1.c @@ -1,8 +1,8 @@ /* 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-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/980226-1.c b/gcc/testsuite/gcc.dg/980226-1.c index f9d915f22d4..52ff614ed3a 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 int printf (const char *, ...); 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/980414-1.c b/gcc/testsuite/gcc.dg/980414-1.c index 59382ef2c49..e179c8137c0 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 e1401824f54..b11f0d3a893 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 a4359300587..01b6bfe358e 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 6d71787f305..24c56f2febf 100644 --- a/gcc/testsuite/gcc.dg/990117-1.c +++ b/gcc/testsuite/gcc.dg/990117-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" } */ extern __inline double diff --git a/gcc/testsuite/gcc.dg/990130-1.c b/gcc/testsuite/gcc.dg/990130-1.c index 3e711c2febb..57e046b22a6 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 a0a13b560f9..d095e3723f9 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 7ad81b6b90b..b3cb519a471 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 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/991129-1.c b/gcc/testsuite/gcc.dg/991129-1.c index 24faefddaff..489b7f987fa 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 2381922c660..ab455da098d 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 } } } */ /* { dg-options "-ansi -pedantic" } */ int foo () diff --git a/gcc/testsuite/gcc.dg/991214-1.c b/gcc/testsuite/gcc.dg/991214-1.c index 68b6b927916..cfe3a9a4121 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 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/asm-1.c b/gcc/testsuite/gcc.dg/asm-1.c index 1f509422e97..ac4b6be4b10 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 { target i?86-*-* x86_64-*-* } } */ struct x { int selector; diff --git a/gcc/testsuite/gcc.dg/attr-returns_twice-1.c b/gcc/testsuite/gcc.dg/attr-returns_twice-1.c index 9d3f6f10997..9eb082f4b03 100644 --- a/gcc/testsuite/gcc.dg/attr-returns_twice-1.c +++ b/gcc/testsuite/gcc.dg/attr-returns_twice-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-W" } */ int newsetjmp(void) __attribute__((returns_twice)); diff --git a/gcc/testsuite/gcc.dg/builtins-1.c b/gcc/testsuite/gcc.dg/builtins-1.c index 74144f7befa..640576a50a7 100644 --- a/gcc/testsuite/gcc.dg/builtins-1.c +++ b/gcc/testsuite/gcc.dg/builtins-1.c @@ -190,7 +190,7 @@ CPTEST1 (ccos) CPTEST1 (ccosh) CPTEST1 (cexp) CPTEST1RETFP (cimag) -/*CPTEST1 (clog)*/ +CPTEST1 (clog) CPTEST1 (conj) CPTEST2 (cpow) CPTEST1 (cproj) diff --git a/gcc/testsuite/gcc.dg/c99-math-double-1.c b/gcc/testsuite/gcc.dg/c99-math-double-1.c index 227b6e26cac..54bdf60dfe7 100644 --- a/gcc/testsuite/gcc.dg/c99-math-double-1.c +++ b/gcc/testsuite/gcc.dg/c99-math-double-1.c @@ -1,18 +1,18 @@ -/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
-/* { dg-options "-std=c99 -O" } */
-
-#include <math.h>
-#include "c99-math.h"
-
-int main(void)
-{
- double nan = NAN;
- double inf = INFINITY;
- double huge = HUGE_VAL;
- double norm = __DBL_MIN__;
- double zero = 0.0;
-
- C99_MATH_TESTS (nan, inf, huge, norm, zero)
-
- return 0;
-}
+/* { dg-do run { target *-*-solaris2.1[0-9]* } } */ +/* { dg-options "-std=c99 -O" } */ + +#include <math.h> +#include "c99-math.h" + +int main(void) +{ + double nan = NAN; + double inf = INFINITY; + double huge = HUGE_VAL; + double norm = __DBL_MIN__; + double zero = 0.0; + + C99_MATH_TESTS (nan, inf, huge, norm, zero) + + return 0; +} diff --git a/gcc/testsuite/gcc.dg/c99-math-float-1.c b/gcc/testsuite/gcc.dg/c99-math-float-1.c index 9dd4e9a0483..ba27a710bde 100644 --- a/gcc/testsuite/gcc.dg/c99-math-float-1.c +++ b/gcc/testsuite/gcc.dg/c99-math-float-1.c @@ -1,18 +1,18 @@ -/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
-/* { dg-options "-std=c99 -O" } */
-
-#include <math.h>
-#include "c99-math.h"
-
-int main(void)
-{
- float nan = NAN;
- float inf = INFINITY;
- float huge = HUGE_VALF;
- float norm = __FLT_MIN__;
- float zero = 0.0f;
-
- C99_MATH_TESTS (nan, inf, huge, norm, zero)
-
- return 0;
-}
+/* { dg-do run { target *-*-solaris2.1[0-9]* } } */ +/* { dg-options "-std=c99 -O" } */ + +#include <math.h> +#include "c99-math.h" + +int main(void) +{ + float nan = NAN; + float inf = INFINITY; + float huge = HUGE_VALF; + float norm = __FLT_MIN__; + float zero = 0.0f; + + C99_MATH_TESTS (nan, inf, huge, norm, zero) + + return 0; +} diff --git a/gcc/testsuite/gcc.dg/c99-math-long-double-1.c b/gcc/testsuite/gcc.dg/c99-math-long-double-1.c index 43d15885473..a8fa4d21fc1 100644 --- a/gcc/testsuite/gcc.dg/c99-math-long-double-1.c +++ b/gcc/testsuite/gcc.dg/c99-math-long-double-1.c @@ -1,18 +1,18 @@ -/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
-/* { dg-options "-std=c99 -O" } */
-
-#include <math.h>
-#include "c99-math.h"
-
-int main(void)
-{
- long double nan = NAN;
- long double inf = INFINITY;
- long double huge = HUGE_VALL;
- long double norm = __LDBL_MIN__;
- long double zero = 0.0l;
-
- C99_MATH_TESTS (nan, inf, huge, norm, zero)
-
- return 0;
-}
+/* { dg-do run { target *-*-solaris2.1[0-9]* } } */ +/* { dg-options "-std=c99 -O" } */ + +#include <math.h> +#include "c99-math.h" + +int main(void) +{ + long double nan = NAN; + long double inf = INFINITY; + long double huge = HUGE_VALL; + long double norm = __LDBL_MIN__; + long double zero = 0.0l; + + C99_MATH_TESTS (nan, inf, huge, norm, zero) + + return 0; +} diff --git a/gcc/testsuite/gcc.dg/c99-math.h b/gcc/testsuite/gcc.dg/c99-math.h index a1e217c8ef3..3f42f67319d 100644 --- a/gcc/testsuite/gcc.dg/c99-math.h +++ b/gcc/testsuite/gcc.dg/c99-math.h @@ -1,111 +1,111 @@ -#include <math.h>
-
-extern void abort(void);
-
-#define C99_MATH_TESTS(nan, inf, huge, norm, zero) \
-{ \
- if (fpclassify (nan) != FP_NAN) \
- abort (); \
- \
- if (fpclassify (inf) != FP_INFINITE) \
- abort (); \
- \
- if (fpclassify (huge) != FP_INFINITE) \
- abort (); \
- \
- if (fpclassify (norm) != FP_NORMAL) \
- abort (); \
- \
- if (fpclassify (zero) != FP_ZERO) \
- abort (); \
- \
- \
- if (!isnan (nan)) \
- abort (); \
- \
- if (isnan (inf)) \
- abort (); \
- \
- if (isnan (huge)) \
- abort (); \
- \
- if (isnan (norm)) \
- abort (); \
- \
- if (isnan (zero)) \
- abort (); \
- \
- \
- if (isinf (nan)) \
- abort (); \
- \
- if (!isinf (inf)) \
- abort (); \
- \
- if (!isinf (huge)) \
- abort (); \
- \
- if (isnan (norm)) \
- abort (); \
- \
- if (isinf (zero)) \
- abort (); \
- \
- \
- if (isfinite (nan)) \
- abort (); \
- \
- if (isfinite (inf)) \
- abort (); \
- \
- if (isfinite (huge)) \
- abort (); \
- \
- if (!isfinite (norm)) \
- abort (); \
- \
- if (!isfinite (zero)) \
- abort (); \
- \
- \
- if (isnormal (nan)) \
- abort (); \
- \
- if (isnormal (inf)) \
- abort (); \
- \
- if (isnormal (huge)) \
- abort (); \
- \
- if (!isnormal (norm)) \
- abort (); \
- \
- if (isnormal (zero)) \
- abort (); \
- \
- \
- if (signbit (norm)) \
- abort (); \
- \
- if (!signbit (-(norm))) \
- abort (); \
- \
- \
- if (!isgreater ((inf), (norm))) \
- abort (); \
- \
- if (!isgreaterequal ((inf), (huge))) \
- abort (); \
- \
- if (!isless ((norm), (inf))) \
- abort (); \
- \
- if (!islessequal ((huge), (inf))) \
- abort (); \
- \
- if (!islessgreater ((inf), (norm))) \
- abort (); \
- \
- if (!isunordered ((nan), (norm))) \
- abort (); \
-}
+#include <math.h> + +extern void abort(void); + +#define C99_MATH_TESTS(nan, inf, huge, norm, zero) \ +{ \ + if (fpclassify (nan) != FP_NAN) \ + abort (); \ + \ + if (fpclassify (inf) != FP_INFINITE) \ + abort (); \ + \ + if (fpclassify (huge) != FP_INFINITE) \ + abort (); \ + \ + if (fpclassify (norm) != FP_NORMAL) \ + abort (); \ + \ + if (fpclassify (zero) != FP_ZERO) \ + abort (); \ + \ + \ + if (!isnan (nan)) \ + abort (); \ + \ + if (isnan (inf)) \ + abort (); \ + \ + if (isnan (huge)) \ + abort (); \ + \ + if (isnan (norm)) \ + abort (); \ + \ + if (isnan (zero)) \ + abort (); \ + \ + \ + if (isinf (nan)) \ + abort (); \ + \ + if (!isinf (inf)) \ + abort (); \ + \ + if (!isinf (huge)) \ + abort (); \ + \ + if (isnan (norm)) \ + abort (); \ + \ + if (isinf (zero)) \ + abort (); \ + \ + \ + if (isfinite (nan)) \ + abort (); \ + \ + if (isfinite (inf)) \ + abort (); \ + \ + if (isfinite (huge)) \ + abort (); \ + \ + if (!isfinite (norm)) \ + abort (); \ + \ + if (!isfinite (zero)) \ + abort (); \ + \ + \ + if (isnormal (nan)) \ + abort (); \ + \ + if (isnormal (inf)) \ + abort (); \ + \ + if (isnormal (huge)) \ + abort (); \ + \ + if (!isnormal (norm)) \ + abort (); \ + \ + if (isnormal (zero)) \ + abort (); \ + \ + \ + if (signbit (norm)) \ + abort (); \ + \ + if (!signbit (-(norm))) \ + abort (); \ + \ + \ + if (!isgreater ((inf), (norm))) \ + abort (); \ + \ + if (!isgreaterequal ((inf), (huge))) \ + abort (); \ + \ + if (!isless ((norm), (inf))) \ + abort (); \ + \ + if (!islessequal ((huge), (inf))) \ + abort (); \ + \ + if (!islessgreater ((inf), (norm))) \ + abort (); \ + \ + if (!isunordered ((nan), (norm))) \ + abort (); \ +} diff --git a/gcc/testsuite/gcc.dg/charset/asm3.c b/gcc/testsuite/gcc.dg/charset/asm3.c index 8ae2212fd26..842bd5cfcfa 100644 --- a/gcc/testsuite/gcc.dg/charset/asm3.c +++ b/gcc/testsuite/gcc.dg/charset/asm3.c @@ -1,6 +1,6 @@ /* Test for complex asm statements. Make sure it compiles then test for some of the asm statements not being translated. */ -/* { dg-do compile { target i?86-*-* } } +/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } { dg-require-iconv "IBM1047" } { dg-final { scan-assembler "std" } } { dg-final { scan-assembler "cld" } } diff --git a/gcc/testsuite/gcc.dg/clobbers.c b/gcc/testsuite/gcc.dg/clobbers.c index 474a396a051..44c46b0bf02 100644 --- a/gcc/testsuite/gcc.dg/clobbers.c +++ b/gcc/testsuite/gcc.dg/clobbers.c @@ -1,6 +1,6 @@ /* Test asm clobbers on x86. */ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/cpp/trad/num-sign.c b/gcc/testsuite/gcc.dg/cpp/trad/num-sign.c index 7522bbf41e2..64f12c07211 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/num-sign.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/num-sign.c @@ -1,6 +1,6 @@ /* Copyright (C) 2001 Free Software Foundation, Inc. */ -/* { dg-do preprocess { target i?86-*-* } } */ +/* { dg-do preprocess { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* Tests that traditional numbers are signed, unless otherwise specified. This test assumes a 32 bit target. 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-387-7.c b/gcc/testsuite/gcc.dg/i386-387-7.c index 1a40cd719d8..edcdac1ae3f 100644 --- a/gcc/testsuite/gcc.dg/i386-387-7.c +++ b/gcc/testsuite/gcc.dg/i386-387-7.c @@ -1,5 +1,5 @@ /* Verify that 387 fsincos instruction is generated. */ -/* { dg-do compile { target "i?86-*-*" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ilp32 } */ /* { dg-options "-O -ffast-math -march=i686" } */ /* { dg-final { scan-assembler "fsincos" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-387-8.c b/gcc/testsuite/gcc.dg/i386-387-8.c index 67c16d92c18..6af895998d0 100644 --- a/gcc/testsuite/gcc.dg/i386-387-8.c +++ b/gcc/testsuite/gcc.dg/i386-387-8.c @@ -1,6 +1,7 @@ /* Verify that 387 fptan instruction is generated. Also check fptan peephole2 optimizer. */ -/* { dg-do compile { target "i?86-*-*" } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -ffast-math -march=i686" } */ /* { dg-final { scan-assembler "fptan" } } */ /* { dg-final { scan-assembler-not "fld1" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-3dnowA-1.c b/gcc/testsuite/gcc.dg/i386-3dnowA-1.c index b5327b3d9ec..80209b00c29 100644 --- a/gcc/testsuite/gcc.dg/i386-3dnowA-1.c +++ b/gcc/testsuite/gcc.dg/i386-3dnowA-1.c @@ -1,4 +1,4 @@ -/* { dg-do assemble { target i?86-*-* } } */ +/* { dg-do assemble { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -Werror-implicit-function-declaration -m3dnow -march=athlon" } */ diff --git a/gcc/testsuite/gcc.dg/i386-3dnowA-2.c b/gcc/testsuite/gcc.dg/i386-3dnowA-2.c index ea336af4147..0cce3b1318c 100644 --- a/gcc/testsuite/gcc.dg/i386-3dnowA-2.c +++ b/gcc/testsuite/gcc.dg/i386-3dnowA-2.c @@ -1,4 +1,4 @@ -/* { dg-do assemble { target i?86-*-* } } */ +/* { dg-do assemble { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ilp32 } */ /* { dg-options "-O0 -Werror-implicit-function-declaration -m3dnow -march=athlon" } */ diff --git a/gcc/testsuite/gcc.dg/i386-asm-1.c b/gcc/testsuite/gcc.dg/i386-asm-1.c index a23e0a09298..e871dd9343f 100644 --- a/gcc/testsuite/gcc.dg/i386-asm-1.c +++ b/gcc/testsuite/gcc.dg/i386-asm-1.c @@ -1,6 +1,6 @@ /* PR inline-asm/11676 */ -/* { 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" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/i386-asm-2.c b/gcc/testsuite/gcc.dg/i386-asm-2.c index e143ea36978..7e9ecb7797d 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-asm-3.c b/gcc/testsuite/gcc.dg/i386-asm-3.c index f60f7d6378a..19bf1534521 100644 --- a/gcc/testsuite/gcc.dg/i386-asm-3.c +++ b/gcc/testsuite/gcc.dg/i386-asm-3.c @@ -1,5 +1,5 @@ /* PR inline-asm/6806 */ -/* { 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/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-bitfield3.c b/gcc/testsuite/gcc.dg/i386-bitfield3.c index 781c2f7ba4e..111f5f28c42 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 9cd49da3b2f..3c3d642babd 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: <manuel.serrano@sophia.inria.fr> */ -/* { 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-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 <jb@as220.org> */ -/* { 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 <misty-@charter.net> */ /* Testcase contributed by Eric Botcazou <ebotcazou@libertysurf.fr> */ -/* { 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-memset-1.c b/gcc/testsuite/gcc.dg/i386-memset-1.c index b87a05b8df7..4da21b97ee0 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" } */ extern void *memset (void *, int, __SIZE_TYPE__); diff --git a/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c b/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c index 2df07822ded..2ae7512cb48 100644 --- a/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c +++ b/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c @@ -1,7 +1,6 @@ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-O2 -march=pentium4" { target i?86-*-* } } */ -/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ -/* { 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 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-signbit-3.c b/gcc/testsuite/gcc.dg/i386-signbit-3.c index 882e6421415..a08ca498142 100644 --- a/gcc/testsuite/gcc.dg/i386-signbit-3.c +++ b/gcc/testsuite/gcc.dg/i386-signbit-3.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..ec3acc16906 100644 --- a/gcc/testsuite/gcc.dg/i386-sse-8.c +++ b/gcc/testsuite/gcc.dg/i386-sse-8.c @@ -1,11 +1,10 @@ -/* PR target/14313 */ +/* PR target/14343 */ /* Origin: <Pawe Sikora <pluto@ds14.agh.edu.pl> */ /* 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-*-* } && ilp32 } } } */ int main() { diff --git a/gcc/testsuite/gcc.dg/i386-ssefn-1.c b/gcc/testsuite/gcc.dg/i386-ssefn-1.c index a8b0b14e73c..548c580571f 100644 --- a/gcc/testsuite/gcc.dg/i386-ssefn-1.c +++ b/gcc/testsuite/gcc.dg/i386-ssefn-1.c @@ -1,7 +1,8 @@ /* Test argument passing with SSE and local functions Written by Paolo Bonzini, 25 January 2005 */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-final { scan-assembler "movss" } } */ /* { dg-final { scan-assembler "mulss" } } */ /* { dg-final { scan-assembler-not "movsd" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-ssefn-2.c b/gcc/testsuite/gcc.dg/i386-ssefn-2.c index 0e1970032e9..ded8b724f94 100644 --- a/gcc/testsuite/gcc.dg/i386-ssefn-2.c +++ b/gcc/testsuite/gcc.dg/i386-ssefn-2.c @@ -1,7 +1,8 @@ /* Test argument passing with SSE2 and local functions Written by Paolo Bonzini, 25 January 2005 */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-final { scan-assembler "movss" } } */ /* { dg-final { scan-assembler "mulss" } } */ /* { dg-final { scan-assembler "movsd" } } */ diff --git a/gcc/testsuite/gcc.dg/i386-ssefn-3.c b/gcc/testsuite/gcc.dg/i386-ssefn-3.c index 2816919f7c2..c1b61301f34 100644 --- a/gcc/testsuite/gcc.dg/i386-ssefn-3.c +++ b/gcc/testsuite/gcc.dg/i386-ssefn-3.c @@ -1,7 +1,7 @@ /* Execution test for argument passing with SSE and local functions Written by Paolo Bonzini, 25 January 2005 */ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse -mfpmath=sse" } */ #include <assert.h> #include "i386-cpuid.h" diff --git a/gcc/testsuite/gcc.dg/i386-ssefn-4.c b/gcc/testsuite/gcc.dg/i386-ssefn-4.c index 353afcec0a1..a28382e2826 100644 --- a/gcc/testsuite/gcc.dg/i386-ssefn-4.c +++ b/gcc/testsuite/gcc.dg/i386-ssefn-4.c @@ -1,7 +1,7 @@ /* Execution test for argument passing with SSE2 and local functions Written by Paolo Bonzini, 25 January 2005 */ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse2 -mfpmath=sse" } */ #include <assert.h> #include "i386-cpuid.h" 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/i386-volatile-1.c b/gcc/testsuite/gcc.dg/i386-volatile-1.c index 633ea5022ec..8a37df48b20 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: <tobias@ringstrom.mine.nu> */ -/* { 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/i386-xorps.c b/gcc/testsuite/gcc.dg/i386-xorps.c index 86daa794ab4..0cf7532a1b9 100644 --- a/gcc/testsuite/gcc.dg/i386-xorps.c +++ b/gcc/testsuite/gcc.dg/i386-xorps.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-Os -msse2" } */ typedef float __m128 __attribute__ ((vector_size (16))); diff --git a/gcc/testsuite/gcc.dg/ppc-vector-memcpy.c b/gcc/testsuite/gcc.dg/ppc-vector-memcpy.c index 630ff2e88b1..99ca85e972c 100644 --- a/gcc/testsuite/gcc.dg/ppc-vector-memcpy.c +++ b/gcc/testsuite/gcc.dg/ppc-vector-memcpy.c @@ -5,6 +5,6 @@ void foo(void) { - int x[8] __attribute__((aligned(128))) = { 1 }; + int x[8] __attribute__((aligned(128))) = { 1, 1, 1, 1, 1, 1, 1, 1 }; bar (x); } diff --git a/gcc/testsuite/gcc.dg/pr12092-1.c b/gcc/testsuite/gcc.dg/pr12092-1.c index 1b29452881f..80c7546d9fb 100644 --- a/gcc/testsuite/gcc.dg/pr12092-1.c +++ b/gcc/testsuite/gcc.dg/pr12092-1.c @@ -1,6 +1,6 @@ /* PR rtl-optimization/12092 */ /* Test case reduced by Andrew Pinski <pinskia@physics.uc.edu> */ -/* { 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" } */ diff --git a/gcc/testsuite/gcc.dg/pr14289-1.c b/gcc/testsuite/gcc.dg/pr14289-1.c index 652916325c2..71317d542c7 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/pr19236-1.c b/gcc/testsuite/gcc.dg/pr19236-1.c index 77365aa4074..73b75384384 100644 --- a/gcc/testsuite/gcc.dg/pr19236-1.c +++ b/gcc/testsuite/gcc.dg/pr19236-1.c @@ -1,5 +1,5 @@ /* PR target/19236 */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-ffast-math" } */ extern float log1pf (float); diff --git a/gcc/testsuite/gcc.dg/pr20204.c b/gcc/testsuite/gcc.dg/pr20204.c index ad85af5baa3..7f24abc5529 100644 --- a/gcc/testsuite/gcc.dg/pr20204.c +++ b/gcc/testsuite/gcc.dg/pr20204.c @@ -1,4 +1,4 @@ -/* { dg-do run { target i?86-*-* } } */ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2" } */ void *x (void *pdst, const void *psrc, unsigned int pn) diff --git a/gcc/testsuite/gcc.dg/pr9771-1.c b/gcc/testsuite/gcc.dg/pr9771-1.c index 1e3bc036aee..30e42de60b1 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/register-var-1.c b/gcc/testsuite/gcc.dg/register-var-1.c index 6869b034dcf..a27d56c4b66 100644 --- a/gcc/testsuite/gcc.dg/register-var-1.c +++ b/gcc/testsuite/gcc.dg/register-var-1.c @@ -1,6 +1,6 @@ /* PR/18160 */ -/* { dg-do compile { target i?86-*-* } } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* This should yield an error even without -pedantic. */ /* { dg-options "-ansi" } */ diff --git a/gcc/testsuite/gcc.dg/setjmp-2.c b/gcc/testsuite/gcc.dg/setjmp-2.c index 6c89f8e9697..b44ac666145 100644 --- a/gcc/testsuite/gcc.dg/setjmp-2.c +++ b/gcc/testsuite/gcc.dg/setjmp-2.c @@ -1,8 +1,9 @@ /* PR middle-end/17813 */ /* Origin: Tom Hughes <tom@compton.nu> */ /* { 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-require-effective-target ilp32 } */ +/* { dg-options "-O -fomit-frame-pointer -march=i386" { target { i?86-*-linux* && ilp32 } } } */ +/* { dg-options "-O -fomit-frame-pointer -march=i386" { target { x86_64-*-linux* && ilp32 } } } */ #include <setjmp.h> #include <signal.h> diff --git a/gcc/testsuite/gcc.dg/short-compare-1.c b/gcc/testsuite/gcc.dg/short-compare-1.c index 7ecca243a7c..8c02a893347 100644 --- a/gcc/testsuite/gcc.dg/short-compare-1.c +++ b/gcc/testsuite/gcc.dg/short-compare-1.c @@ -4,7 +4,7 @@ /* { dg-do run } */ /* { dg-options "-O" } */ /* { dg-options "-O -mtune=i686" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O -m32 -mtune=i686" { target x86_64-*-* } } */ +/* { dg-options "-O -mtune=i686" { target { 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 736e1510e8d..1c2192e821a 100644 --- a/gcc/testsuite/gcc.dg/short-compare-2.c +++ b/gcc/testsuite/gcc.dg/short-compare-2.c @@ -5,7 +5,7 @@ /* { dg-do run } */ /* { dg-options "-O" } */ /* { dg-options "-O -mtune=i686" { target { i?86-*-* && ilp32 } } } */ -/* { dg-options "-O -m32 -mtune=i686" { target x86_64-*-* } } */ +/* { dg-options "-O -mtune=i686" { target { 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 da95f13e25c..d94750099fe 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" } */ extern void abort (void); 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/torture/builtin-attr-1.c b/gcc/testsuite/gcc.dg/torture/builtin-attr-1.c index 0e521d84e3f..4bf77892bab 100644 --- a/gcc/testsuite/gcc.dg/torture/builtin-attr-1.c +++ b/gcc/testsuite/gcc.dg/torture/builtin-attr-1.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2003 Free Software Foundation. +/* Copyright (C) 2003, 2005 Free Software Foundation. Verify that the `const' function attribute is applied to various builtins and that these functions are optimized away by the @@ -393,7 +393,7 @@ CPTEST1 (ccos) CPTEST1 (ccosh) CPTEST1 (cexp) CPTEST1R (cimag) -/*CPTEST1 (clog)*/ +CPTEST1 (clog) CPTEST1 (conj) CPTEST2 (cpow) CPTEST1 (cproj) diff --git a/gcc/testsuite/gcc.dg/tree-prof/tree-prof.exp b/gcc/testsuite/gcc.dg/tree-prof/tree-prof.exp index 307cc2c52ae..9559a80e187 100644 --- a/gcc/testsuite/gcc.dg/tree-prof/tree-prof.exp +++ b/gcc/testsuite/gcc.dg/tree-prof/tree-prof.exp @@ -15,7 +15,7 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Test the functionality of programs compiled with profile-directed block -# ordering using -fprofile-generate followed by -fprofile-use +# ordering using -fprofile-generate followed by -fbranch-use. load_lib target-supports.exp diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11.c index bc6c2869d75..faba5451436 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target vect_cmdline_needed } } */ /* { dg-options "-O2 -ftree-vectorize -ftree-vectorizer-verbose=3 -fdump-tree-vect-stats" } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c index 75ec7ce8863..7fbbc0cf37e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target vect_cmdline_needed } } */ /* { dg-options "-O2 -ftree-vectorize -ftree-vectorizer-verbose=3 -fdump-tree-vect-stats" } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11b.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11b.c index 20833533468..c1c33c3ce1d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11b.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11b.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target vect_cmdline_needed } } */ /* { dg-options "-O2 -ftree-vectorize -ftree-vectorizer-verbose=3 -fdump-tree-vect-stats" } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11c.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11c.c index 8632ae42b3a..e57554b8d4e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11c.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11c.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target vect_cmdline_needed } } */ /* { dg-options "-O2 -ftree-vectorize -ftree-vectorizer-verbose=3 -fdump-tree-vect-stats" } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c index be89c268258..8bee1522dc9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target vect_cmdline_needed } } */ /* { dg-options "-O2 -ftree-vectorize -ftree-vectorizer-verbose=3 -fdump-tree-vect-stats" } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c index 5cfec85144a..e6127d8b8e6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target vect_cmdline_needed } } */ /* { dg-options "-O2 -ftree-vectorize -ftree-vectorizer-verbose=3 -fdump-tree-vect-stats" } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-26.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-26.c index b90413aa4bf..bd6a51390e1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-26.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-26.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target vect_cmdline_needed } } */ /* { dg-options "-O2 -ftree-vectorize -ftree-vectorizer-verbose=3 -fdump-tree-vect-stats" } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-28.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-28.c index 0d017529357..4f3bcf84375 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-28.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-28.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target vect_cmdline_needed } } */ /* { dg-options "-O2 -ftree-vectorize -ftree-vectorizer-verbose=3 -fdump-tree-vect-stats" } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-32.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-32.c index 681c7071685..1a46a309daf 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-32.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-32.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target vect_cmdline_needed } } */ /* { dg-options "-O2 -ftree-vectorize -ftree-vectorizer-verbose=3 -fdump-tree-vect-stats" } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr14841.c b/gcc/testsuite/gcc.dg/tree-ssa/pr14841.c index 4acc6ce3fc8..4f9c759da90 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr14841.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr14841.c @@ -25,5 +25,5 @@ foo (void) link_error (); } -/* { dg-final { scan-tree-dump-times "with if \\(0\\)" 1 "store_ccp"} } */ +/* { dg-final { scan-tree-dump-times "Folded statement: if " 1 "store_ccp"} } */ /* { dg-final { cleanup-tree-dump "store_ccp" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-14.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-14.c index 9ead438cc26..2371cfa1a58 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-14.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-14.c @@ -1,12 +1,12 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ -extern unsigned int strlen (const char *) __attribute__ ((__pure__)); +extern __SIZE_TYPE__ strlen (const char *) __attribute__ ((__pure__)); void foo (const char *str) { - unsigned int a = strlen (str); - unsigned int b = strlen (str); + __SIZE_TYPE__ a = strlen (str); + __SIZE_TYPE__ b = strlen (str); if (a != b) link_error (); } diff --git a/gcc/testsuite/gcc.dg/unroll-1.c b/gcc/testsuite/gcc.dg/unroll-1.c index 2ea694f3521..7b09cd1d209 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); diff --git a/gcc/testsuite/gcc.dg/vect/vect-7.c b/gcc/testsuite/gcc.dg/vect/vect-7.c index c753de8cd81..e359bbe2c56 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-7.c +++ b/gcc/testsuite/gcc.dg/vect/vect-7.c @@ -45,7 +45,7 @@ int main (void) return main1 (); } -/* Fails for targets that don't vectorize PLUS. */ -/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { xfail alpha*-*-* } } } */ +/* Fails for 32-bit targets that don't vectorize PLUS. */ +/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */ /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */ /* { dg-final { cleanup-tree-dump "vect" } } */ |