Commit ac3b8691 by Uros Bizjak Committed by Uros Bizjak

*.c: Remove target selectors from dg-do directives.

	* gcc.target/i386/*.c: Remove target selectors from dg-do directives.
	* gcc.target/i386/991129-1.c, gcc.target/i386/991209-1.c,
	gcc.target/i386/991214-1.c, gcc.target/i386/pr26778.c,
	gcc.target/i386/pr27827.c, gcc.target/i386/pr30505.c,
	gcc.target/i386/pr32389.c, gcc.target/i386/sse-8.c,
	gcc.target/i386/stack-realign.c,
	gcc.target/i386/gcc-have-sync-compare-and-swap-1.c,
	gcc.target/i386/gcc-have-sync-compare-and-swap-2.c,
	gcc.target/i386/gcc-have-sync-compare-and-swap-3.c: Require ilp32
	target using dg-require-effective-target directive.
	* gcc.target/i386/amd64-abi-1.c, gcc.target/i386/amd64-abi-2.c,
	gcc.target/i386/cleanup-2.c, gcc.target/i386/cmpxchg16b-1.c,
	gcc.target/i386/gcc-have-sync-compare-and-swap-4.c,
	gcc.target/i386/large-size-array-3.c, gcc.target/i386/pr25254.c,
	gcc.target/i386/pr31167.c, gcc.target/i386/pr32268.c,
	gcc.target/i386/pr32661-1.c, gcc.target/i386/pr32708-2.c,
	gcc.target/i386/pr32708-3.c, gcc.target/i386/sse4_1-pextrq.c,
	gcc.target/i386/sse4_1-pinsrq.c, gcc.target/i386/sse4_2-crc32q.c,
	gcc.target/i386/sse4_2-popcntq.c, gcc.target/i386/stack-prot-kernel.c:
	Require lp64 target using dg-require-effective-target directive.
	* gcc.target/i386/cleanup-1.c, gcc.target/i386/cleanup-2.c,
	gcc.target/i386/pr32268.c: Use *-*-linux* target selector in dg-do
	directive.
	* gcc.target/i386/20010202-1.c: Move from here ...
	* gcc.dg/20010202-1.c: ... to here.

From-SVN: r127698
parent f8dd107d
2007-08-22 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/*.c: Remove target selectors from dg-do directives.
* gcc.target/i386/991129-1.c, gcc.target/i386/991209-1.c,
gcc.target/i386/991214-1.c, gcc.target/i386/pr26778.c,
gcc.target/i386/pr27827.c, gcc.target/i386/pr30505.c,
gcc.target/i386/pr32389.c, gcc.target/i386/sse-8.c,
gcc.target/i386/stack-realign.c,
gcc.target/i386/gcc-have-sync-compare-and-swap-1.c,
gcc.target/i386/gcc-have-sync-compare-and-swap-2.c,
gcc.target/i386/gcc-have-sync-compare-and-swap-3.c: Require ilp32
target using dg-require-effective-target directive.
* gcc.target/i386/amd64-abi-1.c, gcc.target/i386/amd64-abi-2.c,
gcc.target/i386/cleanup-2.c, gcc.target/i386/cmpxchg16b-1.c,
gcc.target/i386/gcc-have-sync-compare-and-swap-4.c,
gcc.target/i386/large-size-array-3.c, gcc.target/i386/pr25254.c,
gcc.target/i386/pr31167.c, gcc.target/i386/pr32268.c,
gcc.target/i386/pr32661-1.c, gcc.target/i386/pr32708-2.c,
gcc.target/i386/pr32708-3.c, gcc.target/i386/sse4_1-pextrq.c,
gcc.target/i386/sse4_1-pinsrq.c, gcc.target/i386/sse4_2-crc32q.c,
gcc.target/i386/sse4_2-popcntq.c, gcc.target/i386/stack-prot-kernel.c:
Require lp64 target using dg-require-effective-target directive.
* gcc.target/i386/cleanup-1.c, gcc.target/i386/cleanup-2.c,
gcc.target/i386/pr32268.c: Use *-*-linux* target selector in dg-do
directive.
* gcc.target/i386/20010202-1.c: Move from here ...
* gcc.dg/20010202-1.c: ... to here.
2007-08-22 Richard Guenther <rguenther@suse.de> 2007-08-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/33142 PR tree-optimization/33142
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O1 -ffast-math -march=i686" } */ /* { dg-options "-O1 -ffast-math -march=i686" } */
......
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
void bar(char *p) void bar(char *p)
......
/* { dg-do run { target i?86-*-* x86_64-*-*} } */ /* { dg-do run } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
extern void abort (void); extern void abort (void);
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-mpreferred-stack-boundary=2 -march=i586 -O2 -fomit-frame-pointer" } */ /* { dg-options "-mpreferred-stack-boundary=2 -march=i586 -O2 -fomit-frame-pointer" } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target fpic } */ /* { dg-require-effective-target fpic } */
/* { dg-options "-Os -fpic" } */ /* { dg-options "-Os -fpic" } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target fpic } */ /* { dg-require-effective-target fpic } */
/* { dg-options "-O0 -fpic" } */ /* { dg-options "-O0 -fpic" } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
extern inline float bar (float x) extern inline float bar (float x)
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-w" } */ /* { dg-options "-w" } */
void f () void f ()
......
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
extern void abort (void); extern void abort (void);
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
int foo (int s) int foo (int s)
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -mtune=k6" } */ /* { dg-options "-O2 -mtune=k6" } */
......
/* Test for reload failing to eliminate from argp to sp. */ /* Test for reload failing to eliminate from argp to sp. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */ /* { dg-require-effective-target fpic } */
/* { dg-skip-if "" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */ /* { dg-skip-if "" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */
......
/* This testcase ICEd because a SFmode variable was given a MMX register /* This testcase ICEd because a SFmode variable was given a MMX register
for which there is no movsf exists. */ for which there is no movsf exists. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -march=i686 -mmmx -fno-strict-aliasing" } */ /* { dg-options "-O2 -march=i686 -mmmx -fno-strict-aliasing" } */
......
/* Verify that X86-64 only SSE registers aren't restored on IA-32. */ /* Verify that X86-64 only SSE registers aren't restored on IA-32. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -msse" } */ /* { dg-options "-O2 -msse" } */
/* { dg-final { scan-assembler-not "xmm8" } } */ /* { dg-final { scan-assembler-not "xmm8" } } */
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
expected the callee to pop up the hidden return structure pointer, expected the callee to pop up the hidden return structure pointer,
while callee was actually not poping it up (as the hidden argument while callee was actually not poping it up (as the hidden argument
was passed in register). */ was passed in register). */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-options "-O2 -fomit-frame-pointer" } */ /* { dg-options "-O2 -fomit-frame-pointer" } */
extern void abort (void); extern void abort (void);
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-msoft-float -mfp-ret-in-387" } */ /* { dg-options "-msoft-float -mfp-ret-in-387" } */
......
/* PR target/6753 /* PR target/6753
This testcase was miscompiled because sse_mov?fcc_const0* This testcase was miscompiled because sse_mov?fcc_const0*
patterns were missing earlyclobber. */ patterns were missing earlyclobber. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */ /* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */
/* { dg-skip-if "PIC default" { *-*-darwin* } { "*" } { "" } } */ /* { dg-skip-if "PIC default" { *-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
......
/* PR target/6753 /* PR target/6753
This testcase was miscompiled because sse_mov?fcc_const0* This testcase was miscompiled because sse_mov?fcc_const0*
patterns were missing earlyclobber. */ patterns were missing earlyclobber. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-march=pentium3 -msse -ffast-math -O2" } */ /* { dg-options "-march=pentium3 -msse -ffast-math -O2" } */
......
/* PR optimization/6842 /* PR optimization/6842
This testcase caused ICE when trying to optimize V8QI subreg of VOIDmode This testcase caused ICE when trying to optimize V8QI subreg of VOIDmode
CONST_DOUBLE. */ CONST_DOUBLE. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -mmmx" } */ /* { dg-options "-O2 -mmmx" } */
typedef char __v8qi __attribute__ ((vector_size (8))); typedef char __v8qi __attribute__ ((vector_size (8)));
......
/* PR opt/6722 */ /* PR opt/6722 */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
#if !__PIC__ #if !__PIC__
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -march=k6" } */ /* { dg-options "-O2 -march=k6" } */
......
/* Test whether denormal floating point constants in hexadecimal notation /* Test whether denormal floating point constants in hexadecimal notation
are parsed correctly. */ are parsed correctly. */
/* { dg-do run { target i?86-*-linux* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-options "-std=c99" } */ /* { dg-options "-std=c99" } */
long double d = 0x0.0000003ffffffff00000p-16357L; long double d = 0x0.0000003ffffffff00000p-16357L;
......
/* PR optimization/11741 */ /* PR optimization/11741 */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -minline-all-stringops" } */ /* { dg-options "-O2 -minline-all-stringops" } */
/* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target ilp32 } } */
extern void *memcpy (void *, const void *, __SIZE_TYPE__); extern void *memcpy (void *, const void *, __SIZE_TYPE__);
extern __SIZE_TYPE__ strlen (const char *); extern __SIZE_TYPE__ strlen (const char *);
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
/* { dg-final { scan-assembler "testb" } } */ /* { dg-final { scan-assembler "testb" } } */
ftn (char *sp) ftn (char *sp)
......
/* PR middle-end/19164 */ /* PR middle-end/19164 */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-mmmx" } */ /* { dg-options "-mmmx" } */
typedef short int V __attribute__ ((vector_size (8))); typedef short int V __attribute__ ((vector_size (8)));
......
/* PR rtl-optimization/25703 */ /* PR rtl-optimization/25703 */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -mtune=i486" } */ /* { dg-options "-O2 -mtune=i486" } */
......
/* PR rtl-optimization/25703 */ /* PR rtl-optimization/25703 */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -mtune=pentiumpro" } */ /* { dg-options "-O2 -mtune=pentiumpro" } */
......
/* { dg-do run { target i?86-*-* } } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-std=gnu99 -msse2" } */ /* { dg-options "-std=gnu99 -msse2" } */
#include <emmintrin.h> #include <emmintrin.h>
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-std=gnu99" } */ /* { dg-options "-std=gnu99" } */
int int
......
/* { dg-do run { target i?86-*-* } } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-std=gnu99 -msse2 -mstackrealign" } */ /* { dg-options "-std=gnu99 -msse2 -mstackrealign" } */
#include <emmintrin.h> #include <emmintrin.h>
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-mstackrealign" } */ /* { dg-options "-mstackrealign" } */
int int
......
/* Verify that -mno-fancy-math-387 works. */ /* Verify that -mno-fancy-math-387 works. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387 -march=i386" } */ /* { 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(.*)sin" } } */
......
/* PR tree-optimization/24964 */ /* PR tree-optimization/24964 */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -mfpmath=387" } */ /* { dg-options "-O2 -mfpmath=387" } */
double fabs(double x); double fabs(double x);
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -mfpmath=387" } */ /* { dg-options "-O2 -mfpmath=387" } */
double foo(double x, double y) double foo(double x, double y)
......
/* PR target/26915 */ /* PR target/26915 */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O" } */ /* { dg-options "-O" } */
......
/* Verify that -march overrides -mno-fancy-math-387. */ /* Verify that -march overrides -mno-fancy-math-387. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */ /* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */
/* { dg-final { scan-assembler "fsin" } } */ /* { dg-final { scan-assembler "fsin" } } */
......
/* Verify that 387 mathematical constants are recognized. */ /* Verify that 387 mathematical constants are recognized. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -march=i686" } */ /* { dg-options "-O2 -march=i686" } */
/* { dg-final { scan-assembler "fldpi" } } */ /* { dg-final { scan-assembler "fldpi" } } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -march=i686" } */ /* { dg-options "-O2 -march=i686" } */
/* { dg-final { scan-assembler "fldpi" } } */ /* { dg-final { scan-assembler "fldpi" } } */
......
/* Verify that -mno-fancy-math-387 works. */ /* Verify that -mno-fancy-math-387 works. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387 -march=i386" } */ /* { 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(.*)atan" } } */
......
/* Verify that -march overrides -mno-fancy-math-387. */ /* Verify that -march overrides -mno-fancy-math-387. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */ /* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */
/* { dg-final { scan-assembler "fpatan" } } */ /* { dg-final { scan-assembler "fpatan" } } */
......
/* Verify that 387 fsincos instruction is generated. */ /* Verify that 387 fsincos instruction is generated. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O -ffast-math -march=i686" } */ /* { dg-options "-O -ffast-math -march=i686" } */
/* { dg-final { scan-assembler "fsincos" } } */ /* { dg-final { scan-assembler "fsincos" } } */
......
/* Verify that 387 fptan instruction is generated. Also check that /* Verify that 387 fptan instruction is generated. Also check that
inherent load of 1.0 is used in further calculations. */ inherent load of 1.0 is used in further calculations. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -ffast-math -march=i686" } */ /* { dg-options "-O2 -ffast-math -march=i686" } */
/* { dg-final { scan-assembler "fptan" } } */ /* { dg-final { scan-assembler "fptan" } } */
......
/* Verify that 387 fsincos instruction is generated. */ /* Verify that 387 fsincos instruction is generated. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O -funsafe-math-optimizations -march=i686" } */ /* { dg-options "-O -funsafe-math-optimizations -march=i686" } */
......
/* { dg-do assemble { target i?86-*-* x86_64-*-* } } */ /* { dg-do assemble } */
/* { dg-options "-O2 -Werror-implicit-function-declaration -m3dnow" } */ /* { dg-options "-O2 -Werror-implicit-function-declaration -m3dnow" } */
/* Test that the intrinsics compile with optimization. All of them are /* Test that the intrinsics compile with optimization. All of them are
......
/* { dg-do assemble { target i?86-*-* x86_64-*-* } } */ /* { dg-do assemble } */
/* { dg-options "-O0 -Werror-implicit-function-declaration -m3dnow" } */ /* { dg-options "-O0 -Werror-implicit-function-declaration -m3dnow" } */
/* Test that the intrinsics compile without optimization. All of them are /* Test that the intrinsics compile without optimization. All of them are
......
/* { dg-do assemble { target i?86-*-* x86_64-*-* } } */ /* { dg-do assemble } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -Werror-implicit-function-declaration -m3dnow -march=athlon" } */ /* { dg-options "-O2 -Werror-implicit-function-declaration -m3dnow -march=athlon" } */
......
/* { dg-do assemble { target i?86-*-* x86_64-*-* } } */ /* { dg-do assemble } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O0 -Werror-implicit-function-declaration -m3dnow -march=athlon" } */ /* { dg-options "-O0 -Werror-implicit-function-declaration -m3dnow -march=athlon" } */
......
/* Test long double on x86 and x86-64. */ /* Test long double on x86 and x86-64. */
/* { dg-do run { target i?86-*-* x86_64-*-*} } */ /* { dg-do run } */
/* { dg-options -O2 } */ /* { dg-options -O2 } */
extern void abort (void); extern void abort (void);
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options -O2 } */ /* { dg-options -O2 } */
extern int printf (const char *, ...); extern int printf (const char *, ...);
......
/* Test double on x86. */ /* Test double on x86. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-options -O2 } */ /* { dg-options -O2 } */
extern void abort (void); extern void abort (void);
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options -O2 } */ /* { dg-options -O2 } */
int bug(void) int bug(void)
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options -O2 } */ /* { dg-options -O2 } */
extern __inline__ int test_and_set_bit(int nr, volatile void * addr) extern __inline__ int test_and_set_bit(int nr, volatile void * addr)
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -march=pentiumpro" } */ /* { dg-options "-O2 -march=pentiumpro" } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options -O0 } */ /* { dg-options -O0 } */
typedef int SItype __attribute__ ((mode (SI))); typedef int SItype __attribute__ ((mode (SI)));
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target fpic } */ /* { dg-require-effective-target fpic } */
/* { dg-options "-fPIC" } */ /* { dg-options "-fPIC" } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target fpic } */ /* { dg-require-effective-target fpic } */
/* { dg-options "-fPIC" } */ /* { dg-options "-fPIC" } */
......
/* Test that stack alignment is preserved with pending_stack_adjust /* Test that stack alignment is preserved with pending_stack_adjust
with stdcall functions. */ with stdcall functions. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options -mpreferred-stack-boundary=4 } */ /* { dg-options -mpreferred-stack-boundary=4 } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -march=pentiumpro" } */ /* { dg-options "-O2 -march=pentiumpro" } */
......
/* Test against a problem in push_reload. */ /* Test against a problem in push_reload. */
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
unsigned long foo (unsigned long long x, unsigned long y) unsigned long foo (unsigned long long x, unsigned long y)
......
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-ansi -pedantic" } */ /* { dg-options "-ansi -pedantic" } */
int foo () int foo ()
......
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
/* Test against a problem with the combiner substituting explicit hard reg /* Test against a problem with the combiner substituting explicit hard reg
......
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O -ffast-math -mtune=i486" } */ /* { dg-options "-O -ffast-math -mtune=i486" } */
......
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ /* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-mno-sse" } */ /* { dg-options "-mno-sse" } */
double foo(void) { return 0; } /* { dg-error "SSE disabled" } */ double foo(void) { return 0; } /* { dg-error "SSE disabled" } */
......
/* PR target/26223 */ /* PR target/26223 */
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ /* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-mno-80387" } */ /* { dg-options "-mno-80387" } */
long double foo(long double x) { return x; } /* { dg-error "x87 disabled" } */ long double foo(long double x) { return x; } /* { dg-error "x87 disabled" } */
long double bar(long double x) { return x; } long double bar(long double x) { return x; }
......
/* PR opt/13862 */ /* PR opt/13862 */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O" } */ /* { dg-options "-O" } */
......
/* PR inline-asm/6806 */ /* PR inline-asm/6806 */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
/* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */ /* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */
/* { dg-skip-if "PIC default" { *-*-darwin* } { "*" } { "" } } */ /* { dg-skip-if "PIC default" { *-*-darwin* } { "*" } { "" } } */
......
/* Test if functions marked __attribute__((used)), but with address never /* Test if functions marked __attribute__((used)), but with address never
taken in C code, don't use alternate calling convention for local taken in C code, don't use alternate calling convention for local
functions on IA-32. */ functions on IA-32. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* The asm in this test uses an absolute address. */ /* The asm in this test uses an absolute address. */
/* { dg-require-effective-target nonpic } */ /* { dg-require-effective-target nonpic } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
......
/* PR inline-asm/11676 */ /* PR inline-asm/11676 */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
void foo1(int i, int j) __attribute__((fastcall, cdecl)); /* { dg-error "not compatible" } */ void foo1(int i, int j) __attribute__((fastcall, cdecl)); /* { dg-error "not compatible" } */
......
// Test for bitfield alignment in structs on IA-32 // Test for bitfield alignment in structs on IA-32
// { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-do run }
// { dg-require-effective-target ilp32 } // { dg-require-effective-target ilp32 }
// { dg-options "-O2" } // { dg-options "-O2" }
// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw*} } // { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw*} }
......
// Test for bitfield alignment in structs on IA-32 // Test for bitfield alignment in structs on IA-32
// { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-do run }
// { dg-require-effective-target ilp32 } // { dg-require-effective-target ilp32 }
// { dg-options "-O2" } // { dg-options "-O2" }
// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw* } } // { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw* } }
......
// Test for bitfield alignment in structs on IA-32 // Test for bitfield alignment in structs on IA-32
// { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-do run }
// { dg-options "-O2" } // { dg-options "-O2" }
// { dg-options "-mno-align-double -mno-ms-bitfields" { target *-*-interix* } } // { dg-options "-mno-align-double -mno-ms-bitfields" { target *-*-interix* } }
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -march=k8" } */ /* { dg-options "-O2 -march=k8" } */
/* { dg-final { scan-assembler "sbb" } } */ /* { dg-final { scan-assembler "sbb" } } */
......
/* PR optimization/11304 */ /* PR optimization/11304 */
/* Originator: <manuel.serrano@sophia.inria.fr> */ /* Originator: <manuel.serrano@sophia.inria.fr> */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-options "-O -fomit-frame-pointer" } */ /* { dg-options "-O -fomit-frame-pointer" } */
/* Verify that %eax is always restored after a call. */ /* Verify that %eax is always restored after a call. */
......
/* { dg-do run { target i?86-*-linux* x86_64-*-linux* } } */ /* { dg-do run { target *-*-linux* } } */
/* { dg-options "-fexceptions -fnon-call-exceptions -fasynchronous-unwind-tables -O2" } */ /* { dg-options "-fexceptions -fnon-call-exceptions -fasynchronous-unwind-tables -O2" } */
/* Test complex CFA value expressions. */ /* Test complex CFA value expressions. */
......
/* { dg-do run { target { { i?86-*-linux* x86_64-*-linux* } && lp64 } } } */ /* { dg-do run { target *-*-linux* } } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-fexceptions -fnon-call-exceptions -fasynchronous-unwind-tables -O2" } */ /* { dg-options "-fexceptions -fnon-call-exceptions -fasynchronous-unwind-tables -O2" } */
/* Test complex CFA value expressions. */ /* Test complex CFA value expressions. */
......
/* Test asm clobbers on x86. */ /* Test asm clobbers on x86. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-do run } */
/* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */ /* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */
extern void abort (void); extern void abort (void);
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* This test checks for absolute memory operands. */ /* This test checks for absolute memory operands. */
/* { dg-require-effective-target nonpic } */ /* { dg-require-effective-target nonpic } */
/* { dg-options "-O2 -march=k8" } */ /* { dg-options "-O2 -march=k8" } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -march=k8" } */ /* { dg-options "-O2 -march=k8" } */
/* { dg-final { scan-assembler "sbb" } } */ /* { dg-final { scan-assembler "sbb" } } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -march=k8" } */ /* { dg-options "-O2 -march=k8" } */
/* { dg-final { scan-assembler "cmov" } } */ /* { dg-final { scan-assembler "cmov" } } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -march=k8" } */ /* { dg-options "-O2 -march=k8" } */
/* { dg-final { scan-assembler "cmov" } } */ /* { dg-final { scan-assembler "cmov" } } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -march=k8" } */ /* { dg-options "-O2 -march=k8" } */
/* { dg-final { scan-assembler "sbb" } } */ /* { dg-final { scan-assembler "sbb" } } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -march=k8" } */ /* { dg-options "-O2 -march=k8" } */
/* { dg-final { scan-assembler "cmov\[^6\]" } } */ /* { dg-final { scan-assembler "cmov\[^6\]" } } */
......
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ /* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O2 -mcx16" } */ /* { dg-options "-O2 -mcx16" } */
typedef int TItype __attribute__ ((mode (TI))); typedef int TItype __attribute__ ((mode (TI)));
......
/* { dg-do compile { target i?86*-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */ /* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=387 -fpic" } */ /* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=387 -fpic" } */
......
/* { dg-do compile { target i?86*-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=387" } */ /* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=387" } */
double foo (double x) { double foo (double x) {
......
/* { dg-do compile { target i?86*-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */ /* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=sse -fpic" } */ /* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=sse -fpic" } */
......
/* { dg-do compile { target i?86*-*-* } } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=sse" } */ /* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=sse" } */
double foo (double x) { double foo (double x) {
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -march=k8 -mfpmath=sse" } */ /* { dg-options "-O2 -march=k8 -mfpmath=sse" } */
/* { dg-final { scan-assembler "cvttsd2si" } } */ /* { dg-final { scan-assembler "cvttsd2si" } } */
/* { dg-final { scan-assembler "cvttss2si" } } */ /* { dg-final { scan-assembler "cvttss2si" } } */
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -msse2 -march=k8" } */ /* { dg-options "-O2 -msse2 -march=k8" } */
/* { dg-final { scan-assembler-not "cvtss2sd" } } */ /* { dg-final { scan-assembler-not "cvtss2sd" } } */
float a,b; float a,b;
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -msse2 -march=k8" } */ /* { dg-options "-O2 -msse2 -march=k8" } */
/* { dg-final { scan-assembler-not "cvtss2sd" } } */ /* { dg-final { scan-assembler-not "cvtss2sd" } } */
float a,b; float a,b;
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -msse2 -march=k8" } */ /* { dg-options "-O2 -msse2 -march=k8" } */
/* { dg-final { scan-assembler-not "cvtss2sd" } } */ /* { dg-final { scan-assembler-not "cvtss2sd" } } */
extern double fabs (double); extern double fabs (double);
......
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-do compile } */
/* { dg-options "-O2 -march=k8 -mfpmath=sse" } */ /* { dg-options "-O2 -march=k8 -mfpmath=sse" } */
/* { dg-final { scan-assembler "cvtsi2sd" } } */ /* { dg-final { scan-assembler "cvtsi2sd" } } */
/* Check that conversions will get folded. */ /* Check that conversions will get folded. */
......
/* { dg-do preprocess { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-do preprocess } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-march=i386" } */ /* { dg-options "-march=i386" } */
#ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 #ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1
......
/* { dg-do preprocess { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-do preprocess } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-march=i486" } */ /* { dg-options "-march=i486" } */
#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1
......
/* { dg-do preprocess { target i?86-*-* x86_64-*-* } } */ /* { dg-do preprocess } */
/* { dg-options "-march=i586" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-march=i586" } */
#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1
#error nonono #error nonono
......
/* { dg-do preprocess { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ /* { dg-do preprocess } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-mcx16" } */ /* { dg-options "-mcx16" } */
#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1
......
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ /* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-mcmodel=medium" } */ /* { dg-options "-mcmodel=medium" } */
/* { dg-final { scan-assembler "8589934588" } } */ /* { dg-final { scan-assembler "8589934588" } } */
int bigarray[2147483647]; int bigarray[2147483647];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment