pr31344.c: Move to ...
authorUros Bizjak <uros@gcc.gnu.org>
Wed, 29 Aug 2007 09:18:28 +0000 (11:18 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 29 Aug 2007 09:18:28 +0000 (11:18 +0200)
* 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

22 files changed:
gcc/testsuite/gcc.dg/20050111-1.c
gcc/testsuite/gcc.dg/20050503-1.c
gcc/testsuite/gcc.dg/20060801-1.c
gcc/testsuite/gcc.dg/20061127-1.c
gcc/testsuite/gcc.dg/arm-asm.c
gcc/testsuite/gcc.dg/attr-isr-trap_exit.c
gcc/testsuite/gcc.dg/c99-tgmath-2.c
gcc/testsuite/gcc.dg/c99-tgmath-3.c
gcc/testsuite/gcc.dg/c99-tgmath-4.c
gcc/testsuite/gcc.dg/cast-lvalue-2.c
gcc/testsuite/gcc.dg/cleanup-11.c
gcc/testsuite/gcc.dg/cleanup-8.c
gcc/testsuite/gcc.dg/cleanup-9.c
gcc/testsuite/gcc.dg/const-float128-ped.c
gcc/testsuite/gcc.dg/const-float128.c
gcc/testsuite/gcc.dg/dfp/pr31344.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/h8300-ice2.c
gcc/testsuite/gcc.dg/pr31344.c [deleted file]
gcc/testsuite/gcc.dg/pragma-isr-trap_exit.c
gcc/testsuite/gcc.dg/pragma-isr.c
gcc/testsuite/gcc.dg/pragma-isr2.c
gcc/testsuite/gcc.dg/sibcall-6.c

index 0cc4b7e195f8c4f291f2032ff5e1b3b491bdced3..7cf04e806d6a76290f4f2937645100369ecb5764 100644 (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)
index 1ab93cad7bfb2505d4546f2f97515a6f64b59d9e..a6c6fa15fa833a46adefb78408d41a52239818ae 100644 (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;
index 26cc7c21d85c63f6f65247e5acbccd071d5de63a..c036acbec8042d551aa494d9ee82422a371ba3d6 100644 (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];
index ec94dc8c3f8508aa03cfd9fcff0c25a3cde03a2e..0b70a5ae2b62c51d621700d4d14dc0a0df0862c0 100644 (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 */
index dd99c68553f7c708f5004a41055f8b167aba536f..1187d9eb466a800f1a8964a124d2207c5335f440 100644 (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()
 {
index 880db37ce73bcd118066ad92d5b01f2bc0625ebe..7ea24c494f0233c1ced49db5d3ee648eb8228a0e 100644 (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.  */
index d162d4ac9ad3bf94ca7031811b3223af574991f2..22435f3f9a488fb73e0b469ce0df794368d74ec3 100644 (file)
@@ -11,4 +11,4 @@ float foo(float x)
   return sin(x);
 }
 
-/* {dg-final {scan-assembler "sinf" } } */
+/* { dg-final { scan-assembler "sinf" } } */
index 4d0de1ee56b0f6bd206e67b8228aec7b297d780b..d3eaca15aee77d6b9c1ccb03cbf879d548b0e898 100644 (file)
@@ -11,4 +11,4 @@ complex double foo(complex double x)
   return exp(x);
 }
 
-/* {dg-final {scan-assembler "cexp" } } */
+/* { dg-final { scan-assembler "cexp" } } */
index e9e490bdec70de0b64a18b8160e96951b3ea90e6..7d40449a7736fcf9e58339560bf5cea56c5d7800 100644 (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" } } */
index ed6a2e69fe816fb56fb5a0781d1174c2610722a9..d4db4bd6ff3fbddfe2fe3145676ad413fd3e6ab1 100644 (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 } */
index 6e145c5f31c1e6eca94cdbeb62f201c8e7307231..d0c78d577b747fc0440324a79763c4ae26ed8378 100644 (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.  */
index 6f3ff6c511bf9f2d17a5bba05cc01503cc33334c..d2335606a21f76f8a5cb6fdbfb75fa98cf51d1ee 100644 (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.  */
index 93d0463aab8b2d47bff4182d390bd99753d2c469..b73125ace9620645d860c1122c8849b00412518d 100644 (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.  */
index 52f0525dcd31bd1afa8305294aca033db468931d..86a630cf9512d8c841389c761e6df4687e2620e6 100644 (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" } */
index 1797e08bc3000714ac35d86646be464a14d90b2d..146e0c9c98637b9c829765af4ab315076c7b9010 100644 (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;
diff --git a/gcc/testsuite/gcc.dg/dfp/pr31344.c b/gcc/testsuite/gcc.dg/dfp/pr31344.c
new file mode 100644 (file)
index 0000000..de76a72
--- /dev/null
@@ -0,0 +1,25 @@
+/* { dg-do compile } */
+/* { dg-options "-O -std=gnu99 -mtune=i386" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
+/* { dg-options "-O -std=gnu99" } */
+
+typedef struct
+{
+  unsigned char bits;
+} decNumber;
+
+typedef struct
+{
+  unsigned char bytes[1];
+} decimal32;
+
+extern decNumber *__decimal32ToNumber (const decimal32 *, decNumber *);
+extern void __host_to_ieee_32 (_Decimal32, decimal32 *);
+
+void
+foo (_Decimal32 arg)
+{
+  decNumber dn;
+  decimal32 d32;
+  __host_to_ieee_32 (arg, &d32);
+  __decimal32ToNumber (&d32, &dn);
+}
index 5dd746a42e962f1d00178f67e61fb8a17fa513f2..951c15deb927d06e7e954ec14fa1e0430f897de5 100644 (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()
 {
diff --git a/gcc/testsuite/gcc.dg/pr31344.c b/gcc/testsuite/gcc.dg/pr31344.c
deleted file mode 100644 (file)
index a01439b..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/* { dg-do compile { target dfp } } */
-/* { dg-options "-O -std=gnu99 -mtune=i386" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
-/* { dg-options "-O -std=gnu99" } */
-
-typedef struct
-{
-  unsigned char bits;
-} decNumber;
-
-typedef struct
-{
-  unsigned char bytes[1];
-} decimal32;
-
-extern decNumber *__decimal32ToNumber (const decimal32 *, decNumber *);
-extern void __host_to_ieee_32 (_Decimal32, decimal32 *);
-
-void
-foo (_Decimal32 arg)
-{
-  decNumber dn;
-  decimal32 d32;
-  __host_to_ieee_32 (arg, &d32);
-  __decimal32ToNumber (&d32, &dn);
-}
index 9b3233a36b552104430a53fb0145289ddcd9fadf..00a0608ccb409d29c27c6a5896b1e91dc6931854 100644 (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
index 07d8fa7f1f9d93186b985984256641140c6b101c..e7565a682454d5b5ca9867b30cfea0ea1084ceaa 100644 (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();
index 7dba7f9bf614651549f1807c1a5f9ff6c193632f..3e2e4bb38bafcedb01c88e2de05efe252ae9f99e 100644 (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
index ca26400ba3343e9d96a1c17dd81cccce16d7071e..f57f9c437815e1d59f33df45d6f3cb04da52820a 100644 (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);