https://sourceware.org/bugzilla/show_bug.cgi?id=20934
Bug ID: 20934 Summary: wrong replacements for ld/sd on mips-o32 abi Product: binutils Version: 2.28 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: ma.jiang at zte dot com.cn Target Milestone: --- Hi all, When using mips-o32 abi, gas will replace ld/sd into lw/sw. This behavior seems strange. The gas could produce wrong codes easily without any warnings. Using "gas -mabi=32", a "ld $v0, ($a1)" will be silently translated into "lw v0,0(a1);lw v1,4(a1)". IMO, this is NOT right, because the v1 register is changed and the coder probably could not notice this. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils