| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | crash |
| Category: | Assertion failed: (BestRC && "Couldn't find the register class"), function getCommonMinimalPhysRegClass, file TargetRegisterInfo.cpp M |
| Occurrences: | 3 in 3 configs, 1 test files, 8 more counted only |
| Snippet from: | zilsd.9d040a7e06.ll (mutant of zilsd.ll) @select_i64 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+zilsd,+zilsd-word-align,+v,+zfh -O3 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | https://godbolt.org/z/K4Kb6KMY8 (llc-assertions-trunk, checked 2026-11-28 14:45 UTC): G reproduces |
@G.1 = external global i8
; Function Attrs: nounwind
define i64 @select_i64(i1 %c, i64 %a, i64 %b) #0 {
%LGV = load i8, ptr @G.1, align 1
%B = sdiv i8 0, %LGV
%r = select i1 %c, i64 %a, i64 %b
store i8 %B, ptr @G.1, align 1
ret i64 %r
}
attributes #0 = { nounwind }
| Pane | Options | Exit | Insts | stderr |
|---|---|---|---|---|
| GlobalISel | -mtriple=riscv32 -mattr=+zilsd,+zilsd-word-align,+v,+zfh -O3 -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,+zilsd-word-align,+v,+zfh -O3 -verify-machineinstrs -global-isel=0 | 0 | 10 | - |
llc -mtriple=riscv32 -mattr=+zilsd,+zilsd-word-align,+v,+zfh -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o - llc -mtriple=riscv32 -mattr=+zilsd,+zilsd-word-align,+v,+zfh -O3 -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,+zilsd-word-align,+v,+zfh -O3 -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 0x000055f0fe0fdb5b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43 1 llc 0x000055f0fe0fab31 llvm::sys::RunSignalHandlers() + 369 2 llc 0x000055f0fe0fe5db 3 libc.so.6 0x00007f0b0a045330 4 libc.so.6 0x00007f0b0a09ebec pthread_kill + 284 5 libc.so.6 0x00007f0b0a04527e gsignal + 30 6 libc.so.6 0x00007f0b0a0288ff abort + 223 7 libc.so.6 0x00007f0b0a02881b 8 libc.so.6 0x00007f0b0a03b517 9 llc 0x000055f0fd0d6598 llvm::TargetRegisterInfo::getCommonMinimalPhysRegClass(llvm::MCRegister, llvm::MCRegister) const + 248 10 llc 0x000055f0fc5a652c 11 llc 0x000055f0fd0b19a7 llvm::TargetInstrInfo::lowerCopy(llvm::MachineInstr*) const + 359 12 llc 0x000055f0fcc2105b 13 llc 0x000055f0fcc217b3 14 llc 0x000055f0fcd76891 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513 15 llc 0x000055f0fd3127f7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871 16 llc 0x000055f0fd31ad12 llvm::FPPassManager::runOnModule(llvm::Module&) + 50 17 llc 0x000055f0fd3135a0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000 18 llc 0x000055f0fc56d8c9 19 llc 0x000055f0fc56aa53 main + 1747 20 libc.so.6 0x00007f0b0a02a1ca 21 libc.so.6 0x00007f0b0a02a28b __libc_start_main + 139 22 llc 0x000055f0fc569b65 _start + 37
| Input | Function | Config |
|---|---|---|
| zilsd.42280f3b00.ll (mutant of zilsd.ll) | -mtriple=riscv32 -target-abi=ilp32d -mattr=+d,+zilsd,+zvfh -O2 -verify-machineinstrs | |
| zilsd.9b18020171.ll (mutant of zilsd.ll) | -mtriple=riscv32 -target-abi=ilp32d -mattr=+d,+zilsd,+zvbb -O1 -verify-machineinstrs | |
| zilsd.9d040a7e06.ll (mutant of zilsd.ll) | -mtriple=riscv32 -mattr=+zilsd,+zilsd-word-align,+v,+zfh -O3 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.