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

            Bug ID: 40914
           Summary: memory.copy on alloca addresses crashes
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: CONFIRMED
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

llc -mattr=+bulk-memory fails with the following IR:

target triple = "wasm32-unknown-unknown"

declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i1)

define void @memcpy_alloca() {
  %p = alloca i8
  call void @llvm.memcpy.p0i8.p0i8.i32(i8* undef, i8* %p, i32 16, i1 false)
  ret void
}

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

Reply via email to