[llvm-bugs] [Bug 40267] New: SplitVecOp_EXTRACT_VECTOR_ELT - Invalid vector index!

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 9 05:19:14 PST 2019


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

            Bug ID: 40267
           Summary: SplitVecOp_EXTRACT_VECTOR_ELT - Invalid vector index!
           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=12437

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

define void @foo() {
  %L6 = load i32, i32* undef
  br label %BB1

BB1:                                              ; preds = %BB1, %0
  %bj = select <4 x i1> <i1 true, i1 true, i1 false, i1 false>, <4 x i32> <i32
55, i32 21, i32 92, i32 68>, <4 x i32> <i32 51, i32 61, i32 62, i32 39>
  %E1 = extractelement <4 x i32> %bj, i32 0
  %E23 = extractelement <4 x i32> zeroinitializer, i32 %E1
  %I33 = insertelement <4 x i32> undef, i32 %E23, i1 undef
  store <4 x i32> %I33, <4 x i32>* undef
  br label %BB1
}

llc -mtriple=wasm32 bugpoint-reduced-simplified.bc -o -
        .text
        .file   "fold-vector-select.ll"
llc: llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:1923: llvm::SDValue
llvm::DAGTypeLegalizer::SplitVecOp_EXTRACT_VECTOR_ELT(llvm::SDNode*): Assertion
`IdxVal < VecVT.getVectorNumElements() && "Invalid vector index!"' 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/20190109/5b4eb34c/attachment-0001.html>


More information about the llvm-bugs mailing list