Commit 8c7a0ea6 by Andreas Jaeger Committed by Andreas Jaeger

re PR testsuite/20772 (x86 tests should run on both i?86 and x86_64)

	PR testsuite/20772
	* g++.dg/abi/dtor1.C, g++.dg/abi/empty10.C, g++.dg/abi/layout3.C,
	g++.dg/eh/simd-2.C, g++.dg/opt/cse2.C,
	g++.old-deja/g++.ext/asmspec1.C,
	g++.old-deja/g++.other/regstack.C,
	gcc.dg/20000614-1.c, gcc.dg/20000807-1.c, gcc.dg/20000904-1.c,
	gcc.dg/20001127-1.c, gcc.dg/20010202-1.c, gcc.dg/20010520-1.c,
	gcc.dg/20011009-1.c, gcc.dg/20011029-2.c, gcc.dg/20020224-1.c,
	gcc.dg/20020531-1.c, gcc.dg/20020616-1.c, gcc.dg/980226-1.c,
	gcc.dg/980414-1.c, gcc.dg/980520-1.c, gcc.dg/980709-1.c,
	gcc.dg/990117-1.c, gcc.dg/990130-1.c, gcc.dg/990213-2.c,
	gcc.dg/990214-1.c, gcc.dg/991129-1.c, gcc.dg/991209-1.c,
	gcc.dg/991214-1.c, gcc.dg/asm-1.c, gcc.dg/attr-returns_twice-1.c,
	gcc.dg/clobbers.c, gcc.dg/i386-387-7.c, gcc.dg/i386-387-8.c,
	gcc.dg/i386-3dnowA-1.c, gcc.dg/i386-3dnowA-2.c, gcc.dg/i386-asm-1.c
	gcc.dg/i386-asm-2.c, gcc.dg/i386-asm-3.c, gcc.dg/i386-bitfield3.c
	gcc.dg/i386-call-1.c, gcc.dg/i386-memset-1.c,
	gcc.dg/i386-signbit-3.c, gcc.dg/i386-ssefn-1.c,
	gcc.dg/i386-ssefn-2.c, gcc.dg/i386-ssefn-3.c, gcc.dg/i386-ssefn-4.c
	gcc.dg/i386-volatile-1.c, gcc.dg/i386-xorps.c, gcc.dg/pr12092-1.c
	gcc.dg/pr14289-1.c, gcc.dg/pr19236-1.c, gcc.dg/pr20204.c,
	gcc.dg/pr9771-1.c, gcc.dg/register-var-1.c,
	gcc.dg/sibcall-5.c, gcc.dg/charset/asm3.c,
	gcc.dg/cpp/trad/num-sign.c: Run tests also on x86_64.

From-SVN: r100394
parent 9c691961
2005-05-31 Andreas Jaeger <aj@suse.de>
PR testsuite/20772
* g++.dg/abi/dtor1.C, g++.dg/abi/empty10.C, g++.dg/abi/layout3.C,
g++.dg/eh/simd-2.C, g++.dg/opt/cse2.C,
g++.old-deja/g++.ext/asmspec1.C,
g++.old-deja/g++.other/regstack.C,
gcc.dg/20000614-1.c, gcc.dg/20000807-1.c, gcc.dg/20000904-1.c,
gcc.dg/20001127-1.c, gcc.dg/20010202-1.c, gcc.dg/20010520-1.c,
gcc.dg/20011009-1.c, gcc.dg/20011029-2.c, gcc.dg/20020224-1.c,
gcc.dg/20020531-1.c, gcc.dg/20020616-1.c, gcc.dg/980226-1.c,
gcc.dg/980414-1.c, gcc.dg/980520-1.c, gcc.dg/980709-1.c,
gcc.dg/990117-1.c, gcc.dg/990130-1.c, gcc.dg/990213-2.c,
gcc.dg/990214-1.c, gcc.dg/991129-1.c, gcc.dg/991209-1.c,
gcc.dg/991214-1.c, gcc.dg/asm-1.c, gcc.dg/attr-returns_twice-1.c,
gcc.dg/clobbers.c, gcc.dg/i386-387-7.c, gcc.dg/i386-387-8.c,
gcc.dg/i386-3dnowA-1.c, gcc.dg/i386-3dnowA-2.c, gcc.dg/i386-asm-1.c
gcc.dg/i386-asm-2.c, gcc.dg/i386-asm-3.c, gcc.dg/i386-bitfield3.c
gcc.dg/i386-call-1.c, gcc.dg/i386-memset-1.c,
gcc.dg/i386-signbit-3.c, gcc.dg/i386-ssefn-1.c,
gcc.dg/i386-ssefn-2.c, gcc.dg/i386-ssefn-3.c, gcc.dg/i386-ssefn-4.c
gcc.dg/i386-volatile-1.c, gcc.dg/i386-xorps.c, gcc.dg/pr12092-1.c
gcc.dg/pr14289-1.c, gcc.dg/pr19236-1.c, gcc.dg/pr20204.c,
gcc.dg/pr9771-1.c, gcc.dg/register-var-1.c,
gcc.dg/sibcall-5.c, gcc.dg/charset/asm3.c,
gcc.dg/cpp/trad/num-sign.c: Run tests also on x86_64.
2005-05-31 Jeff Law <law@redhat.com> 2005-05-31 Jeff Law <law@redhat.com>
* gcc.dg/tree-ssa/foldaddr-1.c: New test. * gcc.dg/tree-ssa/foldaddr-1.c: New test.
......
// { dg-do compile { target i?86-*-* } } // { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } // { dg-require-effective-target ilp32 }
// { dg-options "-fabi-version=0" } // { dg-options "-fabi-version=0" }
struct A { struct A {
......
// { dg-do run { target i?86-*-* } } // { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } // { dg-require-effective-target ilp32 }
// { dg-options "-fabi-version=0 -w" } // { dg-options "-fabi-version=0 -w" }
struct E {}; struct E {};
......
// { dg-do run { target i?86-*-* } } // { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } // { dg-require-effective-target ilp32 }
// { dg-options "-fabi-version=0 -w" } // { dg-options "-fabi-version=0 -w" }
struct S { struct S {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// Contributed by Aldy Hernandez (aldy@quesejoda.com). // Contributed by Aldy Hernandez (aldy@quesejoda.com).
// { dg-options "-O" } // { dg-options "-O" }
// { dg-options "-O -w" { target i?86-*-* } } // { dg-options "-O -w" { target i?86-*-* } }
// { dg-options "-O -w" { target { x86_64-*-* && ilp32 } } }
// { dg-options "-O -w -maltivec" { target powerpc*-*-linux* } } // { dg-options "-O -w -maltivec" { target powerpc*-*-linux* } }
// { dg-do run } // { dg-do run }
......
// This testcase caused ICE on IA-32 in simplify_unary_operation // This testcase caused ICE on IA-32 in simplify_unary_operation
// CSE did not assume SUBREGs changing mode from integral to floating. // CSE did not assume SUBREGs changing mode from integral to floating.
// { dg-do run { target i?86-*-* sparc*-*-* } } // { dg-do run { target i?86-*-* sparc*-*-* x86_64-*-* } }
// { dg-options "-O2" } // { dg-options "-O2" }
struct A struct A
......
// { dg-do assemble { target i?86-*-* } } // { dg-do assemble { target i?86-*-* x86_64-*-* } }
// Origin: Anthony Green <green@cygnus.com> // Origin: Anthony Green <green@cygnus.com>
void foo () void foo ()
......
// { dg-do run { target i?86-*-* } } // { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-options "-O2" } // { dg-options "-O2" }
inline double foo (double x) inline double foo (double x)
......
/* { dg-do run { target i?86-*-* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
void bar(char *p) void bar(char *p)
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-Os -fpic" } */ /* { dg-options "-Os -fpic" } */
#include <string.h> #include <string.h>
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O0 -fpic" } */ /* { dg-options "-O0 -fpic" } */
static struct { static struct {
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
extern inline float bar (float x) extern inline float bar (float x)
......
/* { dg-do compile { target i?86-*-* sparc*-*-* } } */ /* { dg-do compile { target i?86-*-* sparc*-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
extern void abort (void); extern void abort (void);
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-w" } */ /* { dg-options "-w" } */
void f () void f ()
......
/* { dg-do run { target i?86-*-* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
extern void abort (void); extern void abort (void);
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
int foo (int s) int foo (int s)
......
...@@ -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-*-* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -fomit-frame-pointer" } */ /* { dg-options "-O2 -fomit-frame-pointer" } */
extern void abort (void); extern void abort (void);
......
/* 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-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -mmmx" } */ /* { dg-options "-O2 -mmmx" } */
typedef unsigned char __v8qi __attribute__ ((vector_size (8))); typedef unsigned char __v8qi __attribute__ ((vector_size (8)));
......
/* PR opt/6722 */ /* PR opt/6722 */
/* { dg-do run { target i?86-*-* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
register int k asm("%ebx"); register int k asm("%ebx");
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { 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-*-* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options -O2 } */ /* { dg-options -O2 } */
extern void abort (void); extern void abort (void);
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options -O2 } */ /* { dg-options -O2 } */
int bug(void) int bug(void)
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { 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-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -march=pentiumpro" } */ /* { dg-options "-O2 -march=pentiumpro" } */
extern __inline double extern __inline double
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options -O0 } */ /* { dg-options -O0 } */
typedef int SItype __attribute__ ((mode (SI))); typedef int SItype __attribute__ ((mode (SI)));
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-fPIC" } */ /* { dg-options "-fPIC" } */
struct normal_encoding {}; struct normal_encoding {};
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-fPIC" } */ /* { dg-options "-fPIC" } */
typedef int int64_t __attribute__ ((__mode__ ( __DI__ ))) ; typedef int int64_t __attribute__ ((__mode__ ( __DI__ ))) ;
......
/* Test against a problem in push_reload. */ /* 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" } */ /* { 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-*-* } } */ /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
/* { dg-options "-ansi -pedantic" } */ /* { dg-options "-ansi -pedantic" } */
int foo () int foo ()
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && 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 compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
struct x { struct x {
int selector; int selector;
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-W" } */ /* { dg-options "-W" } */
int newsetjmp(void) __attribute__((returns_twice)); int newsetjmp(void) __attribute__((returns_twice));
......
/* Test for complex asm statements. Make sure it compiles /* Test for complex asm statements. Make sure it compiles
then test for some of the asm statements not being translated. */ 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-require-iconv "IBM1047" }
{ dg-final { scan-assembler "std" } } { dg-final { scan-assembler "std" } }
{ dg-final { scan-assembler "cld" } } { dg-final { scan-assembler "cld" } }
......
/* Test asm clobbers on x86. */ /* Test asm clobbers on x86. */
/* { dg-do run { target i?86-*-* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
extern void abort (void); extern void abort (void);
......
/* Copyright (C) 2001 Free Software Foundation, Inc. */ /* 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 /* Tests that traditional numbers are signed, unless otherwise
specified. This test assumes a 32 bit target. specified. This test assumes a 32 bit target.
......
/* Verify that 387 fsincos instruction is generated. */ /* 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-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 fptan /* Verify that 387 fptan instruction is generated. Also check fptan
peephole2 optimizer. */ 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-options "-O2 -ffast-math -march=i686" } */
/* { dg-final { scan-assembler "fptan" } } */ /* { dg-final { scan-assembler "fptan" } } */
/* { dg-final { scan-assembler-not "fld1" } } */ /* { dg-final { scan-assembler-not "fld1" } } */
......
/* { dg-do assemble { target i?86-*-* } } */ /* { dg-do assemble { target i?86-*-* x86_64-*-* } } */
/* { 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-*-* } } */ /* { dg-do assemble { target i?86-*-* x86_64-*-* } } */
/* { 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" } */
......
/* PR inline-asm/11676 */ /* PR inline-asm/11676 */
/* { dg-do run { target i?86-*-* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
extern void abort (void); extern void abort (void);
......
/* PR opt/13862 */ /* 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" } */ /* { dg-options "-O" } */
typedef struct _fame_syntax_t_ { typedef struct _fame_syntax_t_ {
......
/* PR inline-asm/6806 */ /* PR inline-asm/6806 */
/* { dg-do run { target i?86-*-* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
extern void abort (void); extern void abort (void);
......
// Test for bitfield alignment in structs on IA-32 // 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 "-O2" }
// { dg-options "-mno-align-double -mno-ms-bitfields" { target *-*-interix* } } // { dg-options "-mno-align-double -mno-ms-bitfields" { target *-*-interix* } }
......
/* PR optimization/11304 */ /* PR optimization/11304 */
/* Originator: <manuel.serrano@sophia.inria.fr> */ /* 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" } */ /* { dg-options "-O -fomit-frame-pointer" } */
/* Verify that %eax is always restored after a call. */ /* Verify that %eax is always restored after a call. */
......
/* Copyright (C) 2002 Free Software Foundation. /* Copyright (C) 2002, 2005 Free Software Foundation.
Test -minline-all-stringops memset with various combinations of pointer Test -minline-all-stringops memset with various combinations of pointer
alignments and lengths to make sure builtin optimizations are correct. alignments and lengths to make sure builtin optimizations are correct.
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
Written by Michael Meissner, March 9, 2002. Written by Michael Meissner, March 9, 2002.
Target by Roger Sayle, April 25, 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" } */ /* { dg-options "-O2 -minline-all-stringops" } */
extern void *memset (void *, int, __SIZE_TYPE__); extern void *memset (void *, int, __SIZE_TYPE__);
......
/* PR optimization/8746 */ /* PR optimization/8746 */
/* { dg-do run { target i?86-*-* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ /* { dg-require-effective-target ilp32 } */
/* { dg-options "-O1 -mtune=i586" } */ /* { dg-options "-O1 -mtune=i586" } */
extern void abort (void); extern void abort (void);
......
/* Test argument passing with SSE and local functions /* Test argument passing with SSE and local functions
Written by Paolo Bonzini, 25 January 2005 */ 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 "movss" } } */
/* { dg-final { scan-assembler "mulss" } } */ /* { dg-final { scan-assembler "mulss" } } */
/* { dg-final { scan-assembler-not "movsd" } } */ /* { dg-final { scan-assembler-not "movsd" } } */
......
/* Test argument passing with SSE2 and local functions /* Test argument passing with SSE2 and local functions
Written by Paolo Bonzini, 25 January 2005 */ 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 "movss" } } */
/* { dg-final { scan-assembler "mulss" } } */ /* { dg-final { scan-assembler "mulss" } } */
/* { dg-final { scan-assembler "movsd" } } */ /* { dg-final { scan-assembler "movsd" } } */
......
/* Execution test for argument passing with SSE and local functions /* Execution test for argument passing with SSE and local functions
Written by Paolo Bonzini, 25 January 2005 */ 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" } */ /* { dg-options "-O2 -msse -mfpmath=sse" } */
#include <assert.h> #include <assert.h>
#include "i386-cpuid.h" #include "i386-cpuid.h"
......
/* Execution test for argument passing with SSE2 and local functions /* Execution test for argument passing with SSE2 and local functions
Written by Paolo Bonzini, 25 January 2005 */ 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" } */ /* { dg-options "-O2 -msse2 -mfpmath=sse" } */
#include <assert.h> #include <assert.h>
#include "i386-cpuid.h" #include "i386-cpuid.h"
......
/* PR optimization/11381 */ /* PR optimization/11381 */
/* Originator: <tobias@ringstrom.mine.nu> */ /* Originator: <tobias@ringstrom.mine.nu> */
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O" } */ /* { dg-options "-O" } */
/* Verify that the comparison is not optimized away. */ /* Verify that the comparison is not optimized away. */
......
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-Os -msse2" } */ /* { dg-options "-Os -msse2" } */
typedef float __m128 __attribute__ ((vector_size (16))); typedef float __m128 __attribute__ ((vector_size (16)));
......
/* PR rtl-optimization/12092 */ /* PR rtl-optimization/12092 */
/* Test case reduced by Andrew Pinski <pinskia@physics.uc.edu> */ /* 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-require-effective-target ilp32 } */
/* { dg-options "-O2 -mtune=i486 -march=pentium4 -fprefetch-loop-arrays" } */ /* { dg-options "-O2 -mtune=i486 -march=pentium4 -fprefetch-loop-arrays" } */
......
/* PR middle-end/14289 */ /* PR middle-end/14289 */
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O0" } */ /* { dg-options "-O0" } */
register int a[2] asm("ebx"); register int a[2] asm("ebx");
......
/* PR target/19236 */ /* PR target/19236 */
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-ffast-math" } */ /* { dg-options "-ffast-math" } */
extern float log1pf (float); extern float log1pf (float);
......
/* { dg-do run { target i?86-*-* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
void *x (void *pdst, const void *psrc, unsigned int pn) void *x (void *pdst, const void *psrc, unsigned int pn)
......
/* PR rtl-optimization/9771 */ /* 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" } */ /* { dg-options "-O2 -fomit-frame-pointer -ffixed-ebp" } */
extern void abort(void); extern void abort(void);
......
/* PR/18160 */ /* PR/18160 */
/* { dg-do compile { target i?86-*-* } } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* This should yield an error even without -pedantic. */ /* This should yield an error even without -pedantic. */
/* { dg-options "-ansi" } */ /* { dg-options "-ansi" } */
......
/* Check that indirect sibcalls understand regparm. */ /* 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" } */ /* { dg-options "-O2" } */
extern void abort (void); extern void abort (void);
......
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