fallback: translate: urem i128

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:translate: urem i128 M
Occurrences:3 in 3 configs, 3 test files
Snippet from:rv64-half-convert-strict.8846381c1b.ll (mutant of rv64-half-convert-strict.ll) @sitofp_i128_to_f16 via llvm-extract
Config:-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64 -disable-strictnode-mutation
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <4 x float>
@G.2 = external global i128

; Function Attrs: nounwind strictfp
define half @sitofp_i128_to_f16(i128 %a) #0 {
  %B1 = urem i128 %a, %a
  %LGV = load <4 x float>, ptr @G, align 16
  %1 = call half @llvm.experimental.constrained.sitofp.f16.i128(i128 %a, metadata !"round.dynamic", metadata !"fpexcept.strict")
  %B = frem <4 x float> zeroinitializer, %LGV
  store <4 x float> %B, ptr poison, align 16
  store i128 %B1, ptr @G.2, align 4
  ret half %1
}

; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare half @llvm.experimental.constrained.sitofp.f16.i128(i128, metadata, metadata) #1

attributes #0 = { nounwind strictfp }
attributes #1 = { nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite) }

Reproduce:

llc -mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64 -disable-strictnode-mutation -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64 -disable-strictnode-mutation -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: urem: '  %B1 = urem i128 %a, %a' (in function: sitofp_i128_to_f16)
warning: Instruction selection used fallback path for sitofp_i128_to_f16

Occurrences (3):

InputFunctionConfig
rv64-double-convert-strict.73c6ccb3d9.ll (mutant of rv64-double-convert-strict.ll)sitofp_i128_to_f64-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64 -disable-strictnode-mutation
rv64-float-convert-strict.94471d542f.ll (mutant of rv64-float-convert-strict.ll)sitofp_i128_to_f32-mtriple=riscv64 -mattr=+zfinx -target-abi=lp64 -verify-machineinstrs -disable-strictnode-mutation
rv64-half-convert-strict.8846381c1b.ll (mutant of rv64-half-convert-strict.ll)sitofp_i128_to_f16-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64 -disable-strictnode-mutation

Generated 2026-11-29 14:49 UTC.