fallback: legalize: G_RESET_FPENV

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:legalize: G_RESET_FPENV
Occurrences:16 in 4 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 d9924131a4
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 (16) (first 15):

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=riscv64 -mattr=+f -verify-machineinstrs
fpenv-xlen.llfunc_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.299149b895.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.83e7eb7bbe.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs
fpenv-xlen.9b027357bf.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.a173f1f378.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs
fpenv-xlen.b60743924e.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.bdc0973475.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs
fpenv-xlen.bf26ee5024.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.cf03f4db4d.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.d1338b3141.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.d7a1e984fb.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.e7abb031f0.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv64 -mattr=+f -verify-machineinstrs -O0

Generated 2026-11-29 14:49 UTC.