[llvm-bugs] [Bug 41203] New: [X86] Assertion failed: ((I->getValueType() == EltVT || (EltVT.isInteger() && I->getValueType().isInteger() && EltVT.bitsLE(I->getValueType()))) && "Wrong operand type!")

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 22 08:26:02 PDT 2019


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

            Bug ID: 41203
           Summary: [X86] Assertion failed: ((I->getValueType() == EltVT
                    || (EltVT.isInteger() && I->getValueType().isInteger()
                    && EltVT.bitsLE(I->getValueType()))) && "Wrong operand
                    type!")
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: florian_hahn at apple.com
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    llvm-dev at redking.me.uk, spatel+llvm at rotateright.com

Created attachment 21654
  --> https://bugs.llvm.org/attachment.cgi?id=21654&action=edit
Reproducer

The reproducer triggers the following assertion on X86 with AVX512. Bisected to
https://reviews.llvm.org/rL356618

Assertion failed: ((I->getValueType() == EltVT || (EltVT.isInteger() &&
I->getValueType().isInteger() && EltVT.bitsLE(I->getValueType()))) && "Wrong
operand type!"), function VerifySDNode, file
llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp, line 816.
Stack dump:
0.      Program arguments: bin/llc ../test-suite/bugpoint-reduced-simplified.bc
1.      Running pass 'Function Pass Manager' on module
'../test-suite/bugpoint-reduced-simplified.bc'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@do_zinsertf32x4'
0  llc                      0x000000010c5f68b5
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  llc                      0x000000010c5f57f8 llvm::sys::RunSignalHandlers() +
248
2  llc                      0x000000010c5f6ec8 SignalHandler(int) + 264
3  libsystem_platform.dylib 0x00007fff5aa88b5d _sigtramp + 29
4  libsystem_platform.dylib 0x0000000114cce938 _sigtramp + 3122945528
5  libsystem_c.dylib        0x00007fff5a9476a6 abort + 127
6  libsystem_c.dylib        0x00007fff5a91010d basename_r + 0
7  llc                      0x000000010c46d3d4
llvm::SelectionDAG::InsertNode(llvm::SDNode*) + 1588
8  llc                      0x000000010c494f77
llvm::SelectionDAG::getNode(unsigned int, llvm::SDLoc const&, llvm::EVT,
llvm::ArrayRef<llvm::SDValue>, llvm::SDNodeFlags) + 1351
9  llc                      0x000000010b684722
lowerShuffleAsBitMask(llvm::SDLoc const&, llvm::MVT, llvm::SDValue,
llvm::SDValue, llvm::ArrayRef<int>, llvm::APInt const&, llvm::X86Subtarget
const&, llvm::SelectionDAG&) + 898
10 llc                      0x000000010b6803fd lowerShuffleAsBlend(llvm::SDLoc
const&, llvm::MVT, llvm::SDValue, llvm::SDValue, llvm::ArrayRef<int>,
llvm::APInt const&, llvm::X86Subtarget const&, llvm::SelectionDAG&) + 621
11 llc                      0x000000010b6057b3
lowerVectorShuffle(llvm::SDValue, llvm::X86Subtarget const&,
llvm::SelectionDAG&) + 15555
12 llc                      0x000000010b5ea5c7
llvm::X86TargetLowering::LowerOperation(llvm::SDValue, llvm::SelectionDAG&)
const + 16551
13 llc                      0x000000010c34a762 (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDNode*) + 3762
14 llc                      0x000000010c349770 llvm::SelectionDAG::Legalize() +
384
15 llc                      0x000000010c4c66f2
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 4994
16 llc                      0x000000010c4c3ceb
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 9835
17 llc                      0x000000010c4c0285
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 2245
18 llc                      0x000000010b588df1 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 65
19 llc                      0x000000010bbe769a
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 330
20 llc                      0x000000010bf3af76
llvm::FPPassManager::runOnFunction(llvm::Function&) + 726
21 llc                      0x000000010bf3b2c8
llvm::FPPassManager::runOnModule(llvm::Module&) + 72
22 llc                      0x000000010bf3b742
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 834
23 llc                      0x000000010a92e212 compileModule(char**,
llvm::LLVMContext&) + 9986
24 llc                      0x000000010a92b87c main + 1948
25 libdyld.dylib            0x00007fff5a8a13ed start + 1

-- 
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/20190322/83b3c799/attachment-0001.html>


More information about the llvm-bugs mailing list