summaryrefslogtreecommitdiff
path: root/gcc/tree-call-cdce.c
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2008-07-13 22:27:58 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2008-07-13 22:27:58 +0000
commit5d94a6d0873fb7b2275b3ee7c4a646783dccf699 (patch)
tree6a215a2a196a543e2a32fdbeb715d692a0e44820 /gcc/tree-call-cdce.c
parent4d16a7b7c29ca46e15e7d8d305b9522addbcdc62 (diff)
downloadgcc-5d94a6d0873fb7b2275b3ee7c4a646783dccf699.tar.gz
re PR testsuite/36440 (FAIL: g++.dg/cdce3.C on powerpc-apple-darwin8.5.0)
PR testsuite/36440 * tree-call-cdce.c (check_target_format): Accept MIPS single, double and quad formats. From-SVN: r137757
Diffstat (limited to 'gcc/tree-call-cdce.c')
-rw-r--r--gcc/tree-call-cdce.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/tree-call-cdce.c b/gcc/tree-call-cdce.c
index 4be0cf9bd89..8f7041bbf09 100644
--- a/gcc/tree-call-cdce.c
+++ b/gcc/tree-call-cdce.c
@@ -142,8 +142,10 @@ check_target_format (tree arg)
type = TREE_TYPE (arg);
mode = TYPE_MODE (type);
rfmt = REAL_MODE_FORMAT (mode);
- if ((mode == SFmode && rfmt == &ieee_single_format)
- || (mode == DFmode && rfmt == &ieee_double_format)
+ if ((mode == SFmode
+ && (rfmt == &ieee_single_format || rfmt == &mips_single_format))
+ || (mode == DFmode
+ && (rfmt == &ieee_double_format || rfmt == &mips_double_format))
/* For long double, we can not really check XFmode
which is only defined on intel platforms.
Candidate pre-selection using builtin function
@@ -151,6 +153,7 @@ check_target_format (tree arg)
for long double modes: double, quad, and extended. */
|| (mode != SFmode && mode != DFmode
&& (rfmt == &ieee_quad_format
+ || rfmt == &mips_quad_format
|| rfmt == &ieee_extended_intel_96_format
|| rfmt == &ieee_extended_intel_128_format
|| rfmt == &ieee_extended_intel_96_round_53_format)))