fallback: legalize: G_SET_FPMODE s32

Run:explore-bc8218b282-20261015-075519
Kind:fallback
Category:legalize: G_SET_FPMODE s32
Occurrences:9 in 3 configs, 1 test files
Snippet from:fpenv-xlen.ll @func_set_fpmode via llvm-extract
Config:-mtriple=riscv32 -mattr=+f -verify-machineinstrs
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @func_set_fpmode(i32 %fpmode) {
entry:
  call void @llvm.set.fpmode.i32(i32 %fpmode)
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite)
declare void @llvm.set.fpmode.i32(i32) #0

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) }

Reproduce:

llc -mtriple=riscv32 -mattr=+f -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+f -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: G_SET_FPMODE %0:_(s32) (in function: func_set_fpmode)
warning: Instruction selection used fallback path for func_set_fpmode

Occurrences (9):

InputFunctionConfig
fpenv-xlen.llfunc_set_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.llfunc_set_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.llfunc_set_fpmode-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.1de12d6af6.ll (mutant of fpenv-xlen.ll)func_set_fpmode-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.2f1b28c26f.ll (mutant of fpenv-xlen.ll)func_set_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.44b68c4ca4.ll (mutant of fpenv-xlen.ll)func_set_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.abda5cd290.ll (mutant of fpenv-xlen.ll)func_set_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.b9c33cdc63.ll (mutant of fpenv-xlen.ll)func_set_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.bf7024a327.ll (mutant of fpenv-xlen.ll)func_set_fpmode-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.