[LLVMbugs] [Bug 6071] MIPS backend error, missing argument passing in generated code

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 19 09:04:50 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6071


Bruno Cardoso Lopes <bruno.cardoso at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #6 from Bruno Cardoso Lopes <bruno.cardoso at gmail.com>  2010-01-19 11:04:50 ---
Hi Adam,

The argument bug is fixed in trunk (r93880):
http://llvm.org/viewvc/llvm-project?rev=93880&view=rev

For the address load, there is nothing wrong with it, MIPS uses two
instructions to load the address from GOT when using pic. It uses two
relocations for that, as an example:

  64:   8f820000        lw      v0,0(gp)
                        64: R_MIPS_GOT16        .data
  68:   00031880        sll     v1,v1,0x2
  6c:   24420000        addiu   v0,v0,0
                        6c: R_MIPS_LO16 .data

Thanks :)


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list