Commit 0adc764e by Richard Kenner

(output_toc): Use REAL_VALUE_* macros.

From-SVN: r8985
parent 8d800403
...@@ -1996,17 +1996,18 @@ output_toc (file, x, labelno) ...@@ -1996,17 +1996,18 @@ output_toc (file, x, labelno)
FP constants. */ FP constants. */
if (GET_CODE (x) == CONST_DOUBLE if (GET_CODE (x) == CONST_DOUBLE
&& GET_MODE (x) == DFmode && GET_MODE (x) == DFmode
&& TARGET_FLOAT_FORMAT == HOST_FLOAT_FORMAT
&& BITS_PER_WORD == HOST_BITS_PER_INT
&& ! (TARGET_NO_FP_IN_TOC && ! TARGET_MINIMAL_TOC)) && ! (TARGET_NO_FP_IN_TOC && ! TARGET_MINIMAL_TOC))
{ {
REAL_VALUE_TYPE r;
long l[2];
REAL_VALUE_FROM_CONST_DOUBLE (r, x);
REAL_VALUE_TO_TARGET_DOUBLE (r, l);
if (TARGET_MINIMAL_TOC) if (TARGET_MINIMAL_TOC)
fprintf (file, "\t.long %d\n\t.long %d\n", fprintf (file, "\t.long %ld\n\t.long %ld\n", l[0], l[1]);
CONST_DOUBLE_LOW (x), CONST_DOUBLE_HIGH (x));
else else
fprintf (file, "\t.tc FD_%x_%x[TC],%d,%d\n", fprintf (file, "\t.tc FD_%lx_%lx[TC],%ld,%ld\n",
CONST_DOUBLE_LOW (x), CONST_DOUBLE_HIGH (x), l[0], l[1], l[0], l[1]);
CONST_DOUBLE_LOW (x), CONST_DOUBLE_HIGH (x));
return; return;
} }
else if (GET_CODE (x) == CONST_DOUBLE && GET_MODE (x) == SFmode else if (GET_CODE (x) == CONST_DOUBLE && GET_MODE (x) == SFmode
......
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