aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJanis Johnson <janis187@us.ibm.com>2008-12-05 21:05:53 +0000
committerJanis Johnson <janis@gcc.gnu.org>2008-12-05 21:05:53 +0000
commit4f809983df5aff0181c6780a68a3d9359bc331db (patch)
tree9555c90e09dbb3cd50f0e71b5786e2c999e18909 /gcc
parent13fa1171569120832ac2b6c9bea6da30e6985e97 (diff)
downloadgcc-4f809983df5aff0181c6780a68a3d9359bc331db.zip
gcc-4f809983df5aff0181c6780a68a3d9359bc331db.tar.gz
gcc-4f809983df5aff0181c6780a68a3d9359bc331db.tar.bz2
target-supports.exp (check_effective_target_hard_dfp): New.
* 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. From-SVN: r142494
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c1
-rw-r--r--gcc/testsuite/gcc.dg/dfp/fe-binop.c1
-rw-r--r--gcc/testsuite/gcc.dg/dfp/fe-convert-1.c1
-rw-r--r--gcc/testsuite/lib/target-supports.exp9
5 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6a0d2c6..f4843d5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c b/gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c
index 87867fa..9833abb 100644
--- a/gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c
+++ b/gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/dfp/fe-binop.c b/gcc/testsuite/gcc.dg/dfp/fe-binop.c
index 007bc6e..23f1378 100644
--- a/gcc/testsuite/gcc.dg/dfp/fe-binop.c
+++ b/gcc/testsuite/gcc.dg/dfp/fe-binop.c
@@ -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. */
diff --git a/gcc/testsuite/gcc.dg/dfp/fe-convert-1.c b/gcc/testsuite/gcc.dg/dfp/fe-convert-1.c
index 6ea632d..f65cf78 100644
--- a/gcc/testsuite/gcc.dg/dfp/fe-convert-1.c
+++ b/gcc/testsuite/gcc.dg/dfp/fe-convert-1.c
@@ -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. */
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index cc62a97..a297480 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -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; }
+ }]
+}