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

Run:explore-d9924131a4-20261128-105811
Kind:crash
Category:Assertion failed: (STI.hasHalfFPLoadStoreMove() && "Unexpected extensions"), function copyPhysReg, file RISCVInstrInfo.cpp
Occurrences:3 in 3 configs, 1 test files, 7 more counted only
Snippet from:xandesbfhcvt.65bf773a.560b9602c7.ll (mutant of xandesbfhcvt.65bf773a.ll) @fcvt_bf16_s via llvm-extract
Config:-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O3 -code-model=small
Local check:reproduces at d9924131a4
Compiler Explorer:https://godbolt.org/z/8r6hq4P7e (llc-assertions-trunk, checked 2026-11-28 14:45 UTC): G reproduces

Snippet:

@G.2 = external global float
@G.3 = external global i1

; Function Attrs: nounwind
define bfloat @fcvt_bf16_s(float %a) #0 {
  %C = fcmp one float +qnan, %a
  %B1 = frem float %a, +qnan
  %B2 = udiv i1 false, false
  %B = fmul bfloat 3.389530e+38, 4.200000e+01
  store float %B1, ptr @G.2, align 4
  store i1 %B2, ptr poison, align 1
  store i1 %C, ptr @G.3, align 1
  ret bfloat %B
}

attributes #0 = { nounwind }

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O3 -code-model=small -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 -O3 -code-model=small -global-isel=0021-

Reproduce:

llc -mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O3 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O3 -code-model=small -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 -O3 -code-model=small -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       0x000056000c98ab5b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x000056000c987b31 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000056000c98b5db
3  libc.so.6 0x00007f0d01c45330
4  libc.so.6 0x00007f0d01c9ebec pthread_kill + 284
5  libc.so.6 0x00007f0d01c4527e gsignal + 30
6  libc.so.6 0x00007f0d01c288ff abort + 223
7  libc.so.6 0x00007f0d01c2881b
8  libc.so.6 0x00007f0d01c3b517
9  llc       0x000056000ae337b8
10 llc       0x000056000b93e9a7 llvm::TargetInstrInfo::lowerCopy(llvm::MachineInstr*) const + 359
11 llc       0x000056000b4ae05b
12 llc       0x000056000b4ae7b3
13 llc       0x000056000b603891 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
14 llc       0x000056000bb9f7f7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
15 llc       0x000056000bba7d12 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
16 llc       0x000056000bba05a0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
17 llc       0x000056000adfa8c9
18 llc       0x000056000adf7a53 main + 1747
19 libc.so.6 0x00007f0d01c2a1ca
20 libc.so.6 0x00007f0d01c2a28b __libc_start_main + 139
21 llc       0x000056000adf6b65 _start + 37

Occurrences (3):

InputFunctionConfig
xandesbfhcvt.65bf773a.560b9602c7.ll (mutant of xandesbfhcvt.65bf773a.ll)-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O3 -code-model=small
xandesbfhcvt.65bf773a.f6136477be.ll (mutant of xandesbfhcvt.65bf773a.ll)-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt,+zba -O2
xandesbfhcvt.65bf773a.ll-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+xandesbfhcvt -O2

Generated 2026-11-29 14:49 UTC.