-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Open
Labels
Description
https://godbolt.org/z/PYfc3nbqM
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "aarch64--linux-gnueabihf"
define i8 @err_1() {
entry:
%0 = tail call i8 @llvm.vector.reduce.mul.nxv2i8(<vscale x 2 x i8> zeroinitializer)
ret i8 %0
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vector.reduce.mul.nxv2i8(<vscale x 2 x i8>) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
llc -mtriple=aarch64-none-elf -mattr=+sve2 -O2
LLVM ERROR: Expanding reductions for scalable vectors is undefined.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /opt/compiler-explorer/clang-trunk/bin/llc -o /app/output.s -mtriple=aarch64-none-elf -mattr=+sve2 -O2 <source>
1. Running pass 'Function Pass Manager' on module '<source>'.
2. Running pass 'AArch64 Instruction Selection' on function '@err_1'
#0 0x0000000003c27bd8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-trunk/bin/llc+0x3c27bd8)
#1 0x0000000003c24da4 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#2 0x0000746cc6e42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#3 0x0000746cc6e969fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#4 0x0000746cc6e42476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#5 0x0000746cc6e287f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#6 0x00000000007b29ba llvm::UniqueStringSaver::save(llvm::Twine const&) (.cold) StringSaver.cpp:0:0
#7 0x0000000003b7aa49 (/opt/compiler-explorer/clang-trunk/bin/llc+0x3b7aa49)
#8 0x0000000003a38f5c llvm::TargetLowering::expandVecReduce(llvm::SDNode*, llvm::SelectionDAG&) const (/opt/compiler-explorer/clang-trunk/bin/llc+0x3a38f5c)
#9 0x0000000003a79277 (anonymous namespace)::VectorLegalizer::Expand(llvm::SDNode*, llvm::SmallVectorImpl<llvm::SDValue>&) LegalizeVectorOps.cpp:0:0
#10 0x0000000003a7cc4d (anonymous namespace)::VectorLegalizer::LegalizeOp(llvm::SDValue) LegalizeVectorOps.cpp:0:0
#11 0x0000000003a83934 llvm::SelectionDAG::LegalizeVectors() (/opt/compiler-explorer/clang-trunk/bin/llc+0x3a83934)
#12 0x00000000039d428c llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/opt/compiler-explorer/clang-trunk/bin/llc+0x39d428c)
#13 0x00000000039d6d35 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x39d6d35)
#14 0x00000000039d8bc6 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x39d8bc6)
#15 0x00000000039c6161 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x39c6161)
#16 0x0000000002c7ae3d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x2c7ae3d)
#17 0x00000000031ff4a2 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x31ff4a2)
#18 0x00000000031ff621 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x31ff621)
#19 0x0000000003200f67 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x3200f67)
#20 0x00000000008f40c9 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#21 0x00000000007c7b3e main (/opt/compiler-explorer/clang-trunk/bin/llc+0x7c7b3e)
#22 0x0000746cc6e29d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#23 0x0000746cc6e29e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#24 0x00000000008eb925 _start (/opt/compiler-explorer/clang-trunk/bin/llc+0x8eb925)
Program terminated with signal: SIGSEGV
Compiler returned: 139