[Bug target/36090] [4.3/4.4 Regression] ppc64 cacoshl miscompilation
dje at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 1 15:47:00 GMT 2008
------- Comment #8 from dje at gcc dot gnu dot org 2008-05-01 15:46 -------
We can print the offset with something like the following patch:
Index: rs6000.c
===================================================================
*** rs6000.c (revision 134851)
--- rs6000.c (working copy)
*************** print_operand_address (FILE *file, rtx x
*** 12346,12351 ****
--- 12346,12355 ----
contains_minus = XEXP (contains_minus, 0);
minus = XEXP (contains_minus, 0);
+ if (GET_CODE (XEXP (minus, 1)) == CONST
+ && (GET_CODE (XEXP (XEXP (minus, 1), 0)) == PLUS))
+ fprintf (file, HOST_WIDE_INT_PRINT_DEC"+",
+ -INTVAL (XEXP (XEXP (XEXP (minus, 1), 0), 1)));
symref = XEXP (minus, 0);
XEXP (contains_minus, 0) = symref;
if (TARGET_ELF)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36090
More information about the Gcc-bugs
mailing list