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
This commit is contained in:
John David Anglin 2008-07-13 22:27:58 +00:00 committed by John David Anglin
parent 4d16a7b7c2
commit 5d94a6d087
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR testsuite/36440
* tree-call-cdce.c (check_target_format): Accept MIPS single, double
and quad formats.
2008-07-13 Jan Hubicka <jh@suse.cz>
* tree.c (decl_assembler_name_equal): Expect assembler name of decl

View File

@ -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)))