[llvm-bugs] [Bug 43170] New: Crash test-suite/SingleSource/UnitTests/Vector/AVX512F/t_movzext.c

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 29 14:52:34 PDT 2019


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

            Bug ID: 43170
           Summary: Crash
                    test-suite/SingleSource/UnitTests/Vector/AVX512F/t_mov
                    zext.c
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm at meinersbur.de
                CC: llvm-bugs at lists.llvm.org

Created attachment 22449
  --> https://bugs.llvm.org/attachment.cgi?id=22449&action=edit
t_movzext-4e1c95.ll

The attached file (derived by compiling the test-suite's
SingleSource/UnitTests/Vector/AVX512F/t_movzext.c with clang) crashes the code
generator (invoked either using llc or clang).

clang/LLVM version r370251.


$ llc t_movzext-4e1c95.ll

llc:
/tmp/meinersbur/execslave/persistent/job_ci/llvm-src/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1570:
llvm::SDValue llvm::SelectionDAG::getVectorShuffle(llvm::EVT, const
llvm::SDLoc&, llvm::SDValue, llvm::SDValue, llvm::ArrayRef<int>): Assertion
`VT.getVectorNumElements() == Mask.size() && "Must have the same number of
vector elements as mask elements!"' failed.
Stack dump:
0.      Program arguments:
/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc
t_movzext-4e1c95.ll
1.      Running pass 'Function Pass Manager' on module 't_movzext-4e1c95.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@do_zext'
 #0 0x0000000002561c7a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x2561c7a)
 #1 0x000000000255fac4 llvm::sys::RunSignalHandlers()
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x255fac4)
 #2 0x000000000255fbf2 SignalHandler(int)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x255fbf2)
 #3 0x00007f32f6943680 __restore_rt (/lib64/libpthread.so.0+0xf680)
 #4 0x00007f32f54b5207 raise (/lib64/libc.so.6+0x36207)
 #5 0x00007f32f54b68f8 abort (/lib64/libc.so.6+0x378f8)
 #6 0x00007f32f54ae026 __assert_fail_base (/lib64/libc.so.6+0x2f026)
 #7 0x00007f32f54ae0d2 (/lib64/libc.so.6+0x2f0d2)
 #8 0x00000000023cbfbd llvm::SelectionDAG::getVectorShuffle(llvm::EVT,
llvm::SDLoc const&, llvm::SDValue, llvm::SDValue, llvm::ArrayRef<int>)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x23cbfbd)
 #9 0x000000000142adf3 EltsFromConsecutiveLoads(llvm::EVT,
llvm::ArrayRef<llvm::SDValue>, llvm::SDLoc const&, llvm::SelectionDAG&,
llvm::X86Subtarget const&, bool)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x142adf3)
#10 0x000000000142b682 combineConcatVectorOps(llvm::SDLoc const&, llvm::MVT,
llvm::ArrayRef<llvm::SDValue>, llvm::SelectionDAG&,
llvm::TargetLowering::DAGCombinerInfo&, llvm::X86Subtarget const&) (.isra.1541)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x142b682)
#11 0x000000000149c843
llvm::X86TargetLowering::PerformDAGCombine(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x149c843)
#12 0x00000000022f0d3b (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x22f0d3b)
#13 0x00000000022f26fd (anonymous
namespace)::DAGCombiner::Run(llvm::CombineLevel)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x22f26fd)
#14 0x00000000022f489d llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults*, llvm::CodeGenOpt::Level)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x22f489d)
#15 0x00000000023e6753 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x23e6753)
#16 0x00000000023eb208
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x23eb208)
#17 0x00000000023ecc5c
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(.part.805)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x23ecc5c)
#18 0x00000000013b3d0f (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x13b3d0f)
#19 0x0000000001b6666f
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x1b6666f)
#20 0x0000000001efb281 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x1efb281)
#21 0x0000000001efb371 llvm::FPPassManager::runOnModule(llvm::Module&)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x1efb371)
#22 0x0000000001efa551 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x1efa551)
#23 0x0000000000791fe2 main
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x791fe2)
#24 0x00007f32f54a13d5 __libc_start_main (/lib64/libc.so.6+0x223d5)
#25 0x00000000007fe679 _start
(/tmp/meinersbur/execslave/persistent/job_ci/llvm-install/bin/llc+0x7fe679)
Aborted

-- 
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/20190829/1fe6d616/attachment-0001.html>


More information about the llvm-bugs mailing list