pr31344.c: Move to ...

* gcc.dg/pr31344.c: Move to ...
	* gcc.dg/dfp/pr31344.c: ... here.
	* gcc.dg/sibcall-6.c: Simplify dg-skip-if directive.
	* gcc.dg/20050503-1.c: Ditto.
	* gcc.dg/20050111-1.c: Simplify i?86 and x86_64 dg-options directive.
	* gcc.dg/20061127-1.c: Compile only for fpic targets.
	* gcc.dg/20060801-1.c: Ditto.

From-SVN: r127889
This commit is contained in:
Uros Bizjak 2007-08-29 11:18:28 +02:00
parent 8a84c9a771
commit 935cb9ac0f
21 changed files with 24 additions and 25 deletions

View File

@ -1,10 +1,7 @@
/* PR middle-end/19084, rtl-optimization/19348 */
/* { dg-do compile } */
/* The following ensures that this test is compiled with -O2, unless
on i?86 or x86_64 with -m32 option. */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -march=i686" { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" { target lp64 } } */
/* { dg-options "-O2 -march=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
unsigned int
foo (unsigned long long x)

View File

@ -2,7 +2,7 @@
Test whether tail call information is propagated through builtin
expanders. */
/* { dg-do compile } */
/* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && ilp32 } { "-fpic" "-fPIC" } { "" } } */
/* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && { ilp32 && fpic } } { "*" } { "" } } */
/* { dg-options "-O2" } */
typedef __SIZE_TYPE__ size_t;

View File

@ -1,4 +1,5 @@
/* { dg-do compile { target { lp64 } } } */
/* { dg-do compile { target fpic } } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-fPIC" } */
char *ptr = 0;
char array[100];

View File

@ -1,4 +1,5 @@
/* { dg-do compile { target lp64 } } */
/* { dg-do compile { target fpic } } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O1 -fPIC" } */
/* PR target/29319 */

View File

@ -1,6 +1,6 @@
/* ARM and Thumb asm statements should be able to access the constant
pool. */
/* { dg-do compile { target arm*-*-* strongarm*-*-* xscale*-*-*} } */
/* { dg-do compile { target arm*-*-* strongarm*-*-* xscale*-*-* } } */
extern unsigned x[];
unsigned *trapTable()
{

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target sh-*-* sh[1234ble]*-*-*} } */
/* { dg-do compile { target sh-*-* sh[1234ble]*-*-* } } */
/* { dg-options "-O" } */
/* Check that trapa / interrput_handler attributes can paired in
either order. */

View File

@ -11,4 +11,4 @@ float foo(float x)
return sin(x);
}
/* {dg-final {scan-assembler "sinf" } } */
/* { dg-final { scan-assembler "sinf" } } */

View File

@ -11,4 +11,4 @@ complex double foo(complex double x)
return exp(x);
}
/* {dg-final {scan-assembler "cexp" } } */
/* { dg-final { scan-assembler "cexp" } } */

View File

@ -11,4 +11,4 @@ complex double foo(complex float x, float y)
return pow(x, y);
}
/* {dg-final {scan-assembler "cpowf" } } */
/* { dg-final { scan-assembler "cpowf" } } */

View File

@ -10,4 +10,4 @@ foo (void)
{
(int) x = 1; /* { dg-bogus "warning" "warning in place of error" } */
}
/* { dg-error "lvalue" "cast as lvalue" { target *-*-*} 11 } */
/* { dg-error "lvalue" "cast as lvalue" { target *-*-* } 11 } */

View File

@ -1,4 +1,4 @@
/* { dg-do run { target hppa*-*-hpux* *-*-linux* powerpc*-*-darwin* *-*-darwin[912]*} } */
/* { dg-do run { target hppa*-*-hpux* *-*-linux* powerpc*-*-darwin* *-*-darwin[912]* } } */
/* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
/* Verify that cleanups work with exception handling through realtime signal
frames on alternate stack. */

View File

@ -1,4 +1,4 @@
/* { dg-do run { target hppa*-*-hpux* *-*-linux* powerpc*-*-darwin* *-*-darwin[912]*} } */
/* { dg-do run { target hppa*-*-hpux* *-*-linux* powerpc*-*-darwin* *-*-darwin[912]* } } */
/* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
/* Verify that cleanups work with exception handling through signal
frames. */

View File

@ -1,4 +1,4 @@
/* { dg-do run { target hppa*-*-hpux* *-*-linux* powerpc*-*-darwin* *-*-darwin[912]*} } */
/* { dg-do run { target hppa*-*-hpux* *-*-linux* powerpc*-*-darwin* *-*-darwin[912]* } } */
/* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
/* Verify that cleanups work with exception handling through realtime
signal frames. */

View File

@ -1,5 +1,5 @@
/* Test 'q' suffix with -pedantic on __float128 type constants. */
/* { dg-do compile { target { ia64-*-* || { { i?86-*-* x86_64-*-*} && lp64 } } } } */
/* { dg-do compile { target { ia64-*-* || { { i?86-*-* x86_64-*-* } && lp64 } } } } */
/* { dg-options "-pedantic" } */
__float128 a = 123.456789q; /* { dg-warning "non-standard suffix on floating constant" } */

View File

@ -1,5 +1,5 @@
/* Test 'q' and 'Q' suffixes on __float128 type constants. */
/* { dg-do compile { target { ia64-*-* || { { i?86-*-* x86_64-*-*} && lp64 } } } } */
/* { dg-do compile { target { ia64-*-* || { { i?86-*-* x86_64-*-* } && lp64 } } } } */
/* { dg-options "" } */
__float128 a = 123.456789q;

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target dfp } } */
/* { dg-do compile } */
/* { dg-options "-O -std=gnu99 -mtune=i386" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
/* { dg-options "-O -std=gnu99" } */

View File

@ -1,4 +1,4 @@
/*{dg-do compile target {h8300-*-*}} */
/* { dg-do compile target { h8300-*-* } } */
/* ICE for signed/unsigned long and signed char comparison */
int main()
{

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target sh-*-* sh[1234ble]*-*-*} } */
/* { dg-do compile { target sh-*-* sh[1234ble]*-*-* } } */
/* { dg-options "-O" } */
/* This test case will check whether trapa is generated only for isr. */
#pragma interrupt

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target h8300-*-* sh-*-* sh[1234ble]*-*-*} } */
/* { dg-do compile { target h8300-*-* sh-*-* sh[1234ble]*-*-* } } */
/* { dg-options "-O3" } */
/* Test case will check whether rte is generated for two ISRs*/
extern void foo();

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target h8300-*-* sh-*-* sh[1234ble]*-*-*} } */
/* { dg-do compile { target h8300-*-* sh-*-* sh[1234ble]*-*-* } } */
/* { dg-options "-O" } */
/* This test case will check whether rte is generated only for isr. */
#pragma interrupt

View File

@ -6,8 +6,8 @@
Copyright (C) 2002 Free Software Foundation Inc.
Contributed by Andreas Bauer <baueran@in.tum.de> */
/* { dg-do run { target i?86-*-* s390*-*-* x86_64-*-*} } */
/* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && ilp32 } { "-fpic" "-fPIC" } { "" } } */
/* { dg-do run { target i?86-*-* x86_64-*-* s390*-*-* } } */
/* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && { ilp32 && fpic } } { "*" } { "" } } */
/* { dg-options "-O2 -foptimize-sibling-calls" } */
extern void abort (void);