[llvm-bugs] [Bug 24427] New: load instruction without MachineMemOperand on -O0

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 11 02:59:58 PDT 2015


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

            Bug ID: 24427
           Summary: load instruction without MachineMemOperand on -O0
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: kjell.braden at cased.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Consider this example code:

====
char mem_buffer[100];

int main(int argc, char* argv[]) {
        return (int) mem_buffer[argc];
}
====

looking at the generated MachineInstrs:
$ clang -target armv7-linux-gnueabihf -O0 -c -emit-llvm test.c
$ llc -O0 -print-after expand-isel-pseudos test.bc
will generate this instruction, lacking a memory operand:

%vreg6<def> = LDRBi12 %vreg11, 0, pred:14, pred:%noreg; GPRnopc:%vreg6
GPR:%vreg11

-- 
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/20150811/7d6ff181/attachment.html>


More information about the llvm-bugs mailing list