fallback: legalize: G_GET_ROUNDING s32

Run:main-04ca53e65f-20261014-105623
Kind:fallback
Category:legalize: G_GET_ROUNDING s32
Occurrences:12 in 4 configs, 2 test files
Snippet from:fpenv.ll @func_01 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_01() {
  %rm = call i32 @llvm.get.rounding()
  ret i32 %rm
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite)
declare i32 @llvm.get.rounding() #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_ROUNDING (in function: func_01)
warning: Instruction selection used fallback path for func_01

Occurrences (12):

InputFunctionConfig
flt-rounds.lltest_flt_rounds-mtriple=riscv32 -verify-machineinstrs
flt-rounds.lltest_flt_rounds-mtriple=riscv64 -verify-machineinstrs
fpenv.llfunc_01-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv.lltest_get_rounding_sideeffect-mtriple=riscv32 -mattr=+f -verify-machineinstrs
fpenv.llfunc_01-mtriple=riscv64 -mattr=+f -verify-machineinstrs
fpenv.lltest_get_rounding_sideeffect-mtriple=riscv64 -mattr=+f -verify-machineinstrs
flt-rounds.0666f8c0c2.ll (mutant of flt-rounds.ll)test_flt_rounds-mtriple=riscv64 -verify-machineinstrs
flt-rounds.2a11f12ff8.ll (mutant of flt-rounds.ll)test_flt_rounds-mtriple=riscv32 -verify-machineinstrs
flt-rounds.6d31ec55db.ll (mutant of flt-rounds.ll)test_flt_rounds-mtriple=riscv64 -verify-machineinstrs
flt-rounds.74fcc4fcde.ll (mutant of flt-rounds.ll)test_flt_rounds-mtriple=riscv32 -verify-machineinstrs
fpenv.c353182845.ll (mutant of fpenv.ll)func_01-mtriple=riscv64 -mattr=+f -verify-machineinstrs
fpenv.fcffdf6f63.ll (mutant of fpenv.ll)func_01-mtriple=riscv32 -mattr=+f -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.