[llvm-bugs] [Bug 42304] New: [WebAssembly] llvm::TargetLowering::getVectorElementPointer - assertion failed: Converting bits to bytes lost precision

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 18 05:30:57 PDT 2019


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

            Bug ID: 42304
           Summary: [WebAssembly]
                    llvm::TargetLowering::getVectorElementPointer -
                    assertion failed: Converting bits to bytes lost
                    precision
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: llvm-bugs at lists.llvm.org

Reduced from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13905

; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "llvm/test/Transforms/InstCombine/apint-shift.ll"
target triple = "wasm32-unknown-unknown"

define void @multiuse_shl_shl_splat() {
bb:
  %L = load i16, i16* undef
  %E = extractelement <2 x i42> zeroinitializer, i16 %L
  store i42 %E, i42* undef
  ret void
}


llc -mtriple=wasm32--
        .text
        .file   "apint-shift.ll"
llc: /home/simon/LLVM/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:5412:
llvm::SDValue
llvm::TargetLowering::getVectorElementPointer(llvm::SelectionDAG&,
llvm::SDValue, llvm::EVT, llvm::SDValue) const: Assertion `EltSize * 8 ==
EltVT.getSizeInBits() && "Converting bits to bytes lost precision"' failed.

-- 
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/20190618/8b09252f/attachment.html>


More information about the llvm-bugs mailing list