[LLVMbugs] [Bug 6698] New: address-space 256/257 GEP references miscompiled at -O0

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 24 19:50:39 PDT 2010


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

           Summary: address-space 256/257 GEP references miscompiled at
                    -O0
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nelhage at mit.edu
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4585)
 --> (http://llvm.org/bugs/attachment.cgi?id=4585)
Miscompiled example

The attached .ll file, when compiled on x86/x86_84 using 'llc -O0' produces
incorrect assembly, that results in a load without a specified segment, instead
of off the %fs segment as intended.

At -O1 or -O2 the GEP and the load are folded into a single instruction, which 
correctly loads off of %fs.

-- 
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