Commit 624b157f by Joseph Myers Committed by Joseph Myers

predicates.md (easy_fp_constant): Reject TFmode constants for E500 double.

	* config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
	constants for E500 double.

testsuite:
	* gcc.c-torture/compile/20080628-1.c: New test.

From-SVN: r137232
parent e5e9ea16
2008-06-28 Joseph Myers <joseph@codesourcery.com>
* config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
constants for E500 double.
2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* doc/rtl.texi (const_vector): Document const_fixed as legitimate
......
......@@ -213,6 +213,9 @@
switch (mode)
{
case TFmode:
if (TARGET_E500_DOUBLE)
return 0;
REAL_VALUE_FROM_CONST_DOUBLE (rv, op);
REAL_VALUE_TO_TARGET_LONG_DOUBLE (rv, k);
......
2008-06-28 Joseph Myers <joseph@codesourcery.com>
* gcc.c-torture/compile/20080628-1.c: New test.
2008-06-28 Richard Guenther <rguenther@suse.de>
* gcc.c-torture/execute/pta-field-1.c: Add return 0.
......
void f (long double, long double);
struct s {
char c;
struct s *p;
} *p;
void
g (void)
{
long double ld;
p->p->c = 1;
ld = p->p->c;
f (ld, 1.0L);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment