[arm] Fix rtl-checking failure in arm_print_value

Noticed while debugging the arm bootstrap failure.

2019-10-03  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
	* config/arm/arm.c (arm_print_value): Use real_to_decimal
	to print CONST_DOUBLEs.

From-SVN: r276508
This commit is contained in:
Richard Sandiford 2019-10-03 13:05:31 +00:00 committed by Richard Sandiford
parent 12e088ba57
commit eec306385d
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
* config/arm/arm.c (arm_print_value): Use real_to_decimal
to print CONST_DOUBLEs.
2019-10-03 Andrea Corallo <andrea.corallo@arm.com> 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
* ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum. * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.

View File

@ -16122,7 +16122,12 @@ arm_print_value (FILE *f, rtx x)
return; return;
case CONST_DOUBLE: case CONST_DOUBLE:
fprintf (f, "<0x%lx,0x%lx>", (long)XWINT (x, 2), (long)XWINT (x, 3)); {
char fpstr[20];
real_to_decimal (fpstr, CONST_DOUBLE_REAL_VALUE (x),
sizeof (fpstr), 0, 1);
fputs (fpstr, f);
}
return; return;
case CONST_VECTOR: case CONST_VECTOR: