Skip to content

[AArch64][SVE] Error in vector_reverse: Do not know how to widen the result of this operator! #55166

@stevesuzuki-arm

Description

@stevesuzuki-arm

llvm.experimental.vector.reverse https://godbolt.org/z/zbbrjMvje

define <vscale x 6 x i32> @rev_nxv6i32(<vscale x 6 x i32> %a) #0 {
    %1 = call <vscale x 6 x i32> @llvm.experimental.vector.reverse.nxv6i32(<vscale x 6 x i32> %a)
    ret <vscale x 6 x i32> %1
}
declare <vscale x 6 x i32> @llvm.experimental.vector.reverse.nxv6i32(<vscale x 6 x i32>)

Crashes with target triple = "aarch64-linux-gnu" -mattr=+sve2 -O3

WidenVectorResult #0: t8: nxv6i32 = vector_reverse t7

Do not know how to widen the result of this operator!
UNREACHABLE executed at /root/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:3564!
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-assertions-trunk/bin/llc -o /app/output.s -x86-asm-syntax=intel -mattr=+sve2 -O3 <source>
1.	Running pass 'Function Pass Manager' on module '<source>'.
2.	Running pass 'AArch64 Instruction Selection' on function '@rev_nxv6i32'
 #0 0x000055a009d9a40f PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
 #1 0x000055a009d97e7c SignalHandler(int) Signals.cpp:0:0
 #2 0x00007f166ae313c0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x143c0)
 #3 0x00007f166a8fe03b raise (/lib/x86_64-linux-gnu/libc.so.6+0x4303b)
 #4 0x00007f166a8dd859 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22859)
 #5 0x000055a009cdc9ca (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x30dc9ca)
 #6 0x000055a009c3a47a llvm::DAGTypeLegalizer::WidenVectorResult(llvm::SDNode*, unsigned int) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x303a47a)
 #7 0x000055a009bfc5d8 llvm::DAGTypeLegalizer::run() (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x2ffc5d8)
 #8 0x000055a009bfd726 llvm::SelectionDAG::LegalizeTypes() (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x2ffd726)
 #9 0x000055a009b90a43 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x2f90a43)
#10 0x000055a009b945a3 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x2f945a3)
#11 0x000055a009b95cd8 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (.part.960) SelectionDAGISel.cpp:0:0
#12 0x000055a0090d6116 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x24d6116)
#13 0x000055a009584a96 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x2984a96)
#14 0x000055a009584de9 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x2984de9)
#15 0x000055a009585729 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x2985729)
#16 0x000055a00773e598 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#17 0x000055a007698937 main (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0xa98937)
#18 0x00007f166a8df0b3 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x240b3)
#19 0x000055a007734f6a _start (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0xb34f6a)
Compiler returned: 139

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions