| Run: | explore-b577f07195-20261129-105236 |
| Kind: | crash |
| Category: | Assertion failed: (BestRC && "Couldn't find the register class"), function getCommonMinimalPhysRegClass, file TargetRegisterInfo.cpp M |
| Occurrences: | 3 in 2 configs, 1 test files, 13 more counted only |
| Snippet from: | zilsd.f764eaa0bc.ll (mutant of zilsd.ll) @select_i64 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+zilsd,+d -O2 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | https://godbolt.org/z/TPMebf6o1 (llc-assertions-trunk, checked 2026-11-29 14:48 UTC): G reproduces |
@G.4 = external global i8
; Function Attrs: nounwind
define i64 @select_i64(i1 %c, i64 %a, i64 %b) #0 {
%B = sub i8 127, 16
%r = select i1 %c, i64 %a, i64 %b
store i8 %B, ptr @G.4, align 1
ret i64 %r
}
attributes #0 = { nounwind }
| Pane | Options | Exit | Insts | stderr |
|---|---|---|---|---|
| GlobalISel | -mtriple=riscv32 -mattr=+zilsd,+d -O2 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* | 134 | 0 | llc: /root/llvm-project/llvm/lib/CodeGen/TargetRegisterInfo.cpp:216: const TargetRegisterClass* getCommonMinimalPhysRegClass(const llvm::TargetRegisterInfo*, llvm::MCRegister, llvm::MCRegister): Assertion `BestRC && "Couldn't find the register class"' failed. PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug. Stack dump: |
| SelectionDAG (control) | -mtriple=riscv32 -mattr=+zilsd,+d -O2 -verify-machineinstrs -global-isel=0 | 0 | 10 | - |
llc -mtriple=riscv32 -mattr=+zilsd,+d -O2 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o - llc -mtriple=riscv32 -mattr=+zilsd,+d -O2 -verify-machineinstrs -global-isel=0 snippet.ll -o -
llc: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/lib/CodeGen/TargetRegisterInfo.cpp:216: const TargetRegisterClass *getCommonMinimalPhysRegClass(const TargetRegisterInfo *, MCRegister, MCRegister): Assertion `BestRC && "Couldn't find the register class"' failed. PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug. Stack dump: 0. Program arguments: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+zilsd,+d -O2 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* -o - 1. Running pass 'Function Pass Manager' on module '<stdin>'. 2. Running pass 'Post-RA pseudo instruction expansion pass' on function '@select_i64' Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): 0 llc 0x000055a66ef439eb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43 1 llc 0x000055a66ef409c1 llvm::sys::RunSignalHandlers() + 369 2 llc 0x000055a66ef4446b 3 libc.so.6 0x00007f28cec45330 4 libc.so.6 0x00007f28cec9ebec pthread_kill + 284 5 libc.so.6 0x00007f28cec4527e gsignal + 30 6 libc.so.6 0x00007f28cec288ff abort + 223 7 libc.so.6 0x00007f28cec2881b 8 libc.so.6 0x00007f28cec3b517 9 llc 0x000055a66df1d428 llvm::TargetRegisterInfo::getCommonMinimalPhysRegClass(llvm::MCRegister, llvm::MCRegister) const + 248 10 llc 0x000055a66d3ecdac 11 llc 0x000055a66def8837 llvm::TargetInstrInfo::lowerCopy(llvm::MachineInstr*) const + 359 12 llc 0x000055a66da67e8b 13 llc 0x000055a66da685e3 14 llc 0x000055a66dbbd6b1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513 15 llc 0x000055a66e158b37 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871 16 llc 0x000055a66e161052 llvm::FPPassManager::runOnModule(llvm::Module&) + 50 17 llc 0x000055a66e1598e0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000 18 llc 0x000055a66d3b4149 19 llc 0x000055a66d3b12d3 main + 1747 20 libc.so.6 0x00007f28cec2a1ca 21 libc.so.6 0x00007f28cec2a28b __libc_start_main + 139 22 llc 0x000055a66d3b03e5 _start + 37
| Input | Function | Config |
|---|---|---|
| zilsd.34e8d91ccd.ll (mutant of zilsd.ll) | -mtriple=riscv32 -target-abi=ilp32d -mattr=+d,+zilsd -O0 -verify-machineinstrs | |
| zilsd.dcd0f77f29.ll (mutant of zilsd.ll) | -mtriple=riscv32 -mattr=+zilsd,+d -O2 -verify-machineinstrs | |
| zilsd.f764eaa0bc.ll (mutant of zilsd.ll) | -mtriple=riscv32 -mattr=+zilsd,+d -O2 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.