fallback: translate: inttoptr i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: inttoptr i32 M
Occurrences:3 in 3 configs, 3 test files, 10 more counted only
Snippet from:double-mem.2e5f96b867.ll (mutant of double-mem.ll) @fld_fsd_constant via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define dso_local double @fld_fsd_constant(double %a) #0 {
  %1 = inttoptr i32 -559038737 to ptr
  %2 = load volatile double, ptr %1, align 8
  %3 = fadd double %a, %2
  %G = getelementptr double, ptr %1, i64 1
  store double %3, ptr %1, align 8
  %C = fcmp ogt double %a, %2
  store i1 %C, ptr %G, align 1
  ret double %3
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: inttoptr: '  %1 = inttoptr i32 -559038737 to ptr' (in function: fld_fsd_constant)
warning: Instruction selection used fallback path for fld_fsd_constant

Occurrences (3):

InputFunctionConfig
double-mem.2e5f96b867.ll (mutant of double-mem.ll)fld_fsd_constant-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx -O0
float-mem.6069b40a0d.ll (mutant of float-mem.ll)flw_fsw_constant-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O0
half-mem.edf3062f7e.ll (mutant of half-mem.ll)flh_fsh_constant-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx,+zba -O0

Generated 2026-11-29 14:49 UTC.