[llvm-bugs] [Bug 24633] New: MI Serialization - parsing fails for undef load access

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 31 00:42:47 PDT 2015


            Bug ID: 24633
           Summary: MI Serialization - parsing fails for undef load access
           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: hfinkel at anl.gov
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ cat miruv.ll
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64-unknown-linux-gnu"

; Function Attrs: nounwind
define i8* @mm_update_next_owner() #0 {
  %0 = load i8*, i8** undef, align 8
  ret i8* %0

attributes #0 = { nounwind "target-cpu"="pwr7" }

$ llc -o /dev/null -stop-after=if-converter miruv.ll > miruv.mir
$ llc -o - miruv.mir -start-after=if-converter

error: miruv.mir:40:48: expected a constant value
    %x3 = LD 0, undef %x3 :: (load 8 from `i8** undef`)

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/20150831/3e1576e8/attachment.html>

More information about the llvm-bugs mailing list