[llvm-bugs] [Bug 27644] New: [MIPS] LA macro expansion limitation	for PIC mode
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Wed May  4 07:56:27 PDT 2016
    
    
  
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: unassignedbugs at nondot.org
          Reporter: milko.leporis at imgtec.com
                CC: llvm-bugs at lists.llvm.org
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160504/6071ecf3/attachment.html>
    
    
More information about the llvm-bugs
mailing list