MIPS gcc generates bogus "sw 0,0($sp)"

Jeffrey A Law law@cygnus.com
Wed Aug 5 16:03:00 GMT 1998

  In message < 199808040508.WAA16043@tucson-net-82.eng.ascend.com >you write:
  > Shouldn't reload turn the (const_int 0) back into (reg:SI 0 $0) ??
No.  The compiler does not know that (const_int 0) == (reg:SI 0)

The output templates in mips.md/mips.c have to detect this case and output
correct code, or they must not allow a const_int to be used in the insn
to start with.


More information about the Gcc-bugs mailing list