fallback: legalize: G_GET_FPENV s32

Run:explore-04ca53e65f-20261014-114124
Kind:fallback
Category:legalize: G_GET_FPENV s32
Occurrences:12 in 3 configs, 1 test files
Snippet from:fpenv-xlen.ll @func_get_fpenv 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 i32 @func_get_fpenv() {
entry:
  %fpenv = call i32 @llvm.get.fpenv.i32()
  ret i32 %fpenv
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite)
declare i32 @llvm.get.fpenv.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: %0:_(s32) = G_GET_FPENV (in function: func_get_fpenv)
warning: Instruction selection used fallback path for func_get_fpenv

Occurrences (12):

InputFunctionConfig
fpenv-xlen.llfunc_get_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.llfunc_get_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.llfunc_get_fpenv-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.050543271b.ll (mutant of fpenv-xlen.ll)func_get_fpenv-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.05dcca216f.ll (mutant of fpenv-xlen.ll)func_get_fpenv-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.0c5db01714.ll (mutant of fpenv-xlen.ll)func_get_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.14b363afa1.ll (mutant of fpenv-xlen.ll)func_get_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.566112cc0c.ll (mutant of fpenv-xlen.ll)func_get_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.8803ad32e5.ll (mutant of fpenv-xlen.ll)func_get_fpenv-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fpenv-xlen.90ca158ebd.ll (mutant of fpenv-xlen.ll)func_get_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv-xlen.b1e4e39066.ll (mutant of fpenv-xlen.ll)func_get_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0
fpenv-xlen.fc2028787d.ll (mutant of fpenv-xlen.ll)func_get_fpenv-mtriple=riscv32 -mattr=+f -verify-machineinstrs -O0

Generated 2026-10-15 08:05 UTC.