aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2004-07-14 23:48:38 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2004-07-14 23:48:38 +0000
commitb1346fa335a0ebcb11aae2d271f109dca38af973 (patch)
tree2d9ee08430a7ea7110fece59de3376fe55d6e3e9 /gcc
parentff06b392e8f04928d6766cd49075b92b07195bdd (diff)
downloadgcc-b1346fa335a0ebcb11aae2d271f109dca38af973.zip
gcc-b1346fa335a0ebcb11aae2d271f109dca38af973.tar.gz
gcc-b1346fa335a0ebcb11aae2d271f109dca38af973.tar.bz2
ia64.c (ia64_expand_compare): Allow ORDERED comparision of TFmode.
* config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED comparision of TFmode. From-SVN: r84718
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/ia64/ia64.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7d03ff9..c57568f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-14 Steve Ellcey <sje@cup.hp.com>
+
+ * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
+ comparision of TFmode.
+
2004-07-14 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
index 86c271c..c3a9f5f 100644
--- a/gcc/config/ia64/ia64.c
+++ b/gcc/config/ia64/ia64.c
@@ -1698,6 +1698,7 @@ ia64_expand_compare (enum rtx_code code, enum machine_mode mode)
case NE: magic = QCMP_EQ; ncode = EQ; break;
/* isunordered() from C99. */
case UNORDERED: magic = QCMP_UNORD; ncode = NE; break;
+ case ORDERED: magic = QCMP_UNORD; ncode = EQ; break;
/* Relational operators raise FP_INVALID when given
an SNaN operand. */
case LT: magic = QCMP_LT |QCMP_INV; ncode = NE; break;