fallback: legalize: G_RESET_FPENV

Run:explore-bc8218b282-20261015-075519
Kind:fallback
Category:legalize: G_RESET_FPENV
Occurrences:18 in 6 configs, 1 test files
Snippet from:fpenv-xlen.ll @func_reset_fpenv 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_reset_fpenv() {
entry:
  call void @llvm.reset.fpenv()
  ret void
}

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

Occurrences (18):

InputFunctionConfig
fpenv-xlen.llfunc_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.llfunc_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.llfunc_reset_fpenv-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.llfunc_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs
fpenv-xlen.llfunc_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.llfunc_reset_fpenv-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.0d596724a2.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.2dacc3b78e.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs
fpenv-xlen.314df836af.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.544e288230.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.6102b94db7.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.615598dcea.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.62acf4dc83.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.73e91f94c7.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.84b0f62817.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.e075f4cc2b.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.e58a9e04ff.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.f645565e15.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.