fallback: translate: frem bfloat

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: frem bfloat M
Occurrences:3 in 3 configs, 3 test files, 13 more counted only
Snippet from:rv64zfhmin-half-convert.1d7438a45c.ll (mutant of rv64zfhmin-half-convert.ll) @uitofp_sext_i32_to_f16 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin,+c -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global bfloat

; Function Attrs: nounwind
define half @uitofp_sext_i32_to_f16(i32 signext %a) #0 {
  %B = frem bfloat 9.183550e-41, 3.389530e+38
  %1 = uitofp i32 %a to half
  store bfloat %B, ptr @G, align 2
  ret half %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin,+c -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin,+c -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: frem: '  %B = frem bfloat 9.183550e-41, 3.389530e+38' (in function: uitofp_sext_i32_to_f16)
warning: Instruction selection used fallback path for uitofp_sext_i32_to_f16

Occurrences (3):

InputFunctionConfig
rv64zfhmin-half-convert.1d7438a45c.ll (mutant of rv64zfhmin-half-convert.ll)uitofp_sext_i32_to_f16-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin,+c -O0
xqcilsm-memset.cbbdfe75eb.ll (mutant of xqcilsm-memset.ll)test7c-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O3 -code-model=small
zfhmin-half-intrinsics.a5bcde022f.ll (mutant of zfhmin-half-intrinsics.ll)lrint_f16-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zdinx -O0

Generated 2026-11-29 14:49 UTC.