https://llvm.org/bugs/show_bug.cgi?id=27644

            Bug ID: 27644
           Summary: [MIPS] LA macro expansion limitation for PIC mode
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-as
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

In current version of llvm-as, LA macro is incorrectly expanded when in PIC
mode.


Real life example from Chromium source, sandbox/linux/seccomp-bpf/syscall.cc:


la     $v0, 2f

in PIC mode is expanded to 

lui     v0,0x0
addiu   v0,v0,0

instead of something like:

lw      v0,0(gp)
addiu   v0,v0,96



This issue is a reference for future work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to