fallback: translate: inttoptr i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: inttoptr i32 M
Occurrences:3 in 3 configs, 2 test files, 23 more counted only
Snippet from:half-mem.39ee1d1046.ll (mutant of half-mem.ll) @flh_fsh_constant via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define half @flh_fsh_constant(half %a) #0 {
  %1 = inttoptr i32 -559038737 to ptr
  %L = load half, ptr %1, align 2
  %2 = load volatile half, ptr %1, align 2
  %B = fdiv half %a, %L
  %3 = fadd half %a, %2
  store half %3, ptr %1, align 2
  ret half %B
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin -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: flh_fsh_constant)
warning: Instruction selection used fallback path for flh_fsh_constant

Occurrences (3):

InputFunctionConfig
float-mem.3590470aa0.ll (mutant of float-mem.ll)flw_fsw_constant-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O0
half-mem.39ee1d1046.ll (mutant of half-mem.ll)flh_fsh_constant-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin -O0
half-mem.cdab9d4a1a.ll (mutant of half-mem.ll)flh_fsh_constant-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx,+zvkb -O0

Generated 2026-11-29 14:49 UTC.