fallback: translate: inttoptr i64

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: inttoptr i64 M
Occurrences:5 in 4 configs, 2 test files, 9 more counted only
Snippet from:rv64-stackmap.69e617bc5a.ll (mutant of rv64-stackmap.ll) @propertyRead via llvm-extract
Config:-mtriple=riscv64 -mattr=+zfinx -O1 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.4 = external global ptr

define i64 @propertyRead(ptr %obj) {
entry:
  %resolveRead = inttoptr i64 244837814094590 to ptr
  %result = call anyregcc i64 (i64, i32, ptr, i32, ...) @llvm.experimental.patchpoint.i64(i64 5, i32 28, ptr %resolveRead, i32 1, ptr %obj)
  %G = getelementptr ptr, ptr %obj, i64 %result
  %add = add i64 %result, 3
  store ptr %G, ptr @G.4, align 8
  ret i64 %add
}

declare i64 @llvm.experimental.patchpoint.i64(i64 immarg, i32 immarg, ptr, i32 immarg, ...)

Reproduce:

llc -mtriple=riscv64 -mattr=+zfinx -O1 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zfinx -O1 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: inttoptr: '  %resolveRead = inttoptr i64 244837814094590 to ptr' (in function: propertyRead)
warning: Instruction selection used fallback path for propertyRead

Occurrences (5):

InputFunctionConfig
prefetch.c376fde08a.ll (mutant of prefetch.ll)test_prefetch_constant_address_2-mtriple=riscv64 -mattr=+zicbop,+zfinx,+zicsr -O2 -code-model=medium -verify-machineinstrs
prefetch.d7500e5b7e.ll (mutant of prefetch.ll)test_prefetch_constant_address_2-mtriple=riscv32 -mattr=+zhinx -O0 -verify-machineinstrs
rv64-stackmap.69e617bc5a.ll (mutant of rv64-stackmap.ll)propertyRead-mtriple=riscv64 -mattr=+zfinx -O1 -verify-machineinstrs
rv64-stackmap.69e617bc5a.ll (mutant of rv64-stackmap.ll)jsIntCall-mtriple=riscv64 -mattr=+zfinx -O1 -verify-machineinstrs
rv64-stackmap.b9375b91e7.ll (mutant of rv64-stackmap.ll)jsIntCall-mtriple=riscv64 -mattr=+a,+zdinx -O0 -code-model=medium -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.