crash: Assertion failed: (STI.hasHalfFPLoadStoreMove() && "Unexpected extensions"), function copyPhysReg, file RISCVInstrInfo.cpp

Run:explore-db12fc36f6-20261127-115111
Kind:crash
Category:Assertion failed: (STI.hasHalfFPLoadStoreMove() && "Unexpected extensions"), function copyPhysReg, file RISCVInstrInfo.cpp
Occurrences:3 in 3 configs, 1 test files, 22 more counted only
Snippet from:xandesbfhcvt.65bf773a.ll @fcvt_bf16_s via llvm-extract
Config:-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:https://godbolt.org/z/e548G3vd4 (llc-assertions-trunk, checked 2026-11-27 15:30 UTC): G reproduces

Snippet:

; Function Attrs: nounwind
define bfloat @fcvt_bf16_s(float %a) #0 {
  %B = fmul bfloat 3.389530e+38, 4.200000e+01
  ret bfloat %B
}

attributes #0 = { nounwind }

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*1340llc: /root/llvm-project/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp:598: virtual void llvm::RISCVInstrInfo::copyPhysReg(llvm::MachineBasicBlock&, llvm::MachineBasicBlock::iterator, const llvm::DebugLoc&, llvm::Register, llvm::Register, bool, bool, bool) const: Assertion `STI.hasHalfFPLoadStoreMove() && "Unexpected extensions"' 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 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O2 -global-isel=006-

Reproduce:

llc -mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O2 -global-isel=0 snippet.ll -o -

Local llc output:

llc: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp:598: virtual void llvm::RISCVInstrInfo::copyPhysReg(MachineBasicBlock &, MachineBasicBlock::iterator, const DebugLoc &, Register, Register, bool, bool, bool) const: Assertion `STI.hasHalfFPLoadStoreMove() && "Unexpected extensions"' 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 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O2 -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 '@fcvt_bf16_s'
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       0x0000560525f3bc1b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x0000560525f38bf1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x0000560525f3c69b
3  libc.so.6 0x00007f9747645330
4  libc.so.6 0x00007f974769ebec pthread_kill + 284
5  libc.so.6 0x00007f974764527e gsignal + 30
6  libc.so.6 0x00007f97476288ff abort + 223
7  libc.so.6 0x00007f974762881b
8  libc.so.6 0x00007f974763b517
9  llc       0x00005605243e4578
10 llc       0x0000560524eef847 llvm::TargetInstrInfo::lowerCopy(llvm::MachineInstr*) const + 359
11 llc       0x0000560524a5ef1b
12 llc       0x0000560524a5f673
13 llc       0x0000560524bb4761 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
14 llc       0x0000560525150a77 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
15 llc       0x0000560525158f92 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
16 llc       0x0000560525151820 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
17 llc       0x00005605243ab689
18 llc       0x00005605243a8813 main + 1747
19 libc.so.6 0x00007f974762a1ca
20 libc.so.6 0x00007f974762a28b __libc_start_main + 139
21 llc       0x00005605243a7925 _start + 37

Occurrences (3):

InputFunctionConfig
xandesbfhcvt.65bf773a.23bf4acf9b.ll (mutant of xandesbfhcvt.65bf773a.ll)-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt,+zfa -O3 -code-model=small
xandesbfhcvt.65bf773a.80f2fffbd7.ll (mutant of xandesbfhcvt.65bf773a.ll)-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt,+zvkb -O0 -code-model=medium
xandesbfhcvt.65bf773a.ll-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O2

Generated 2026-11-29 14:49 UTC.