summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/dfp/compare-special-d64.c
diff options
context:
space:
mode:
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-16 18:53:16 +0000
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-16 18:53:16 +0000
commit0ab5481f30050ed8a84fb6f77fdf48f0fc0678c4 (patch)
tree8b91c211691919e460efda16f240e785989ae017 /gcc/testsuite/gcc.dg/dfp/compare-special-d64.c
parentb1049655242921e41a603286327da1db7830f06e (diff)
downloadgcc-0ab5481f30050ed8a84fb6f77fdf48f0fc0678c4.tar.gz
gcc/
* config/dfp-bit.c (dfp_compare_op): Return separate value for NaN. (DFP_NE, DFP_LE, DFP_GE): Return false for NaN. gcc/testsuite/ * gcc.dg/dfp/compare-special.h: New file. * gcc.dg/dfp/compare-special-32.c: New test. * gcc.dg/dfp/compare-special-64.c: New test. * gcc.dg/dfp/compare-special-128.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120830 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/dfp/compare-special-d64.c')
-rw-r--r--gcc/testsuite/gcc.dg/dfp/compare-special-d64.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/dfp/compare-special-d64.c b/gcc/testsuite/gcc.dg/dfp/compare-special-d64.c
new file mode 100644
index 00000000000..2238e0190e3
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/dfp/compare-special-d64.c
@@ -0,0 +1,15 @@
+/* { dg-options "-std=gnu99 -O0" } */
+
+/* C99 6.5.8 Relational operators.
+ C99 6.5.9 Equality operators.
+ Compare decimal float special values at runtime. */
+
+#define WIDTH 64
+#include "compare-special.h"
+
+int
+main ()
+{
+ test_compares ();
+ return 0;
+}