fallback: legalize: G_RESET_FPMODE

Run:main-04ca53e65f-20261014-105623
Kind:fallback
Category:legalize: G_RESET_FPMODE
Occurrences:18 in 6 configs, 1 test files
Snippet from:fpenv-xlen.ll @func_reset_fpmode via llvm-extract
Config:-mtriple=riscv32 -mattr=+f -verify-machineinstrs
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @func_reset_fpmode() {
entry:
  call void @llvm.reset.fpmode()
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite)
declare void @llvm.reset.fpmode() #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_RESET_FPMODE (in function: func_reset_fpmode)
warning: Instruction selection used fallback path for func_reset_fpmode

Occurrences (18):

InputFunctionConfig
fpenv-xlen.llfunc_reset_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.llfunc_reset_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.llfunc_reset_fpmode-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.llfunc_reset_fpmode-mtriple=riscv64 -mattr=+f -verify-machineinstrs
fpenv-xlen.llfunc_reset_fpmode-mtriple=riscv64 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.llfunc_reset_fpmode-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.07bb48876d.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.152f1964fb.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv64 -mattr=+f -verify-machineinstrs
fpenv-xlen.2d9cf3d9b2.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.3add6a7c9a.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.6181a32d73.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.9b027357bf.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.9fbd6639b4.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv64 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.b9fed0ddcf.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.bdc0973475.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv64 -mattr=+f -verify-machineinstrs
fpenv-xlen.bf26ee5024.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.efa00aff57.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.f338936c3b.ll (mutant of fpenv-xlen.ll)func_reset_fpmode-mtriple=riscv64 -mattr=+f -verify-machineinstrs -O0

Generated 2026-10-15 08:05 UTC.