OSDN Git Service

* lib/target-supports.exp (check_effective_target_hard_dfp): New.
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Dec 2008 21:05:53 +0000 (21:05 +0000)
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Dec 2008 21:05:53 +0000 (21:05 +0000)
* gcc.dg/dfp/convert-dfp-round.c: Skip for hard_dfp.
* gcc.dg/dfp/fe-binop.c: Ditto.
* gcc.dg/dfp/fe-convert-1.c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142494 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c
gcc/testsuite/gcc.dg/dfp/fe-binop.c
gcc/testsuite/gcc.dg/dfp/fe-convert-1.c
gcc/testsuite/lib/target-supports.exp

index 6a0d2c6..f4843d5 100644 (file)
@@ -1,3 +1,10 @@
+2008-12-05  Janis Johnson  <janis187@us.ibm.com>
+
+       * lib/target-supports.exp (check_effective_target_hard_dfp): New.
+       * gcc.dg/dfp/convert-dfp-round.c: Skip for hard_dfp.
+       * gcc.dg/dfp/fe-binop.c: Ditto.
+       * gcc.dg/dfp/fe-convert-1.c: Ditto.
+
 2008-12-05  Catherine Moore  <clm@codesourcery.com>
 
        * gcc-target/mips/mips-nonpic: New testsuite.
index 87867fa..9833abb 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-options "-O0 -std=gnu99" } */
+/* { dg-skip-if "test is for emulation" { hard_dfp } { "*" } { "" } } */
 
 /* N1150 5.2: Conversions among decimal floating types and between
    decimal floating types and generic floating types.
index 007bc6e..23f1378 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-options "-std=gnu99" } */
+/* { dg-skip-if "test is for emulation" { hard_dfp } { "*" } { "" } } */
 
 /* Touch tests that check for raising appropriate exceptions for binary
    arithmetic operations on decimal float values.  */
index 6ea632d..f65cf78 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-options "-std=gnu99" } */
+/* { dg-skip-if "test is for emulation" { hard_dfp } { "*" } { "" } } */
 
 /* Check that appropriate exceptions are raised for conversions involving
    decimal float values.  */
index cc62a97..a297480 100644 (file)
@@ -2656,3 +2656,12 @@ proc check_effective_target_pow10 { } {
        }
     } "-lm" ]
 }
+
+# Return 1 if current options generate DFP instructions, 0 otherwise.
+
+proc check_effective_target_hard_dfp {} {
+    return [check_no_messages_and_pattern hard_dfp "!adddd3" assembly {
+       _Decimal64 x, y, z;
+       void foo (void) { z = x + y; }
+    }]
+}