fallback: translate: getelementptr ptr

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:translate: getelementptr ptr
Occurrences:13 in 11 configs, 4 test files
Snippet from:mscatter-combine.ll @complex_gep via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+v -target-abi=ilp32d -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

%struct = type { i64, i64, ptr, i32, i32, i32, [4 x i32] }

define void @complex_gep(ptr %p, <vscale x 2 x i64> %vec.ind, <vscale x 2 x i1> %m) {
  %gep = getelementptr inbounds %struct, ptr %p, <vscale x 2 x i64> %vec.ind, i32 5
  call void @llvm.masked.scatter.nxv2i32.nxv2p0(<vscale x 2 x i32> zeroinitializer, <vscale x 2 x ptr> align 8 %gep, <vscale x 2 x i1> %m)
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(write)
declare void @llvm.masked.scatter.nxv2i32.nxv2p0(<vscale x 2 x i32>, <vscale x 2 x ptr>, <vscale x 2 x i1>) #0

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(write) }

Reproduce:

llc -mtriple=riscv32 -mattr=+m,+v -target-abi=ilp32d -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+v -target-abi=ilp32d -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: getelementptr: '  %gep = getelementptr inbounds %struct, ptr %p, <vscale x 2 x i64> %vec.ind, i32 5' (in function: complex_gep)
warning: Instruction selection used fallback path for complex_gep

Occurrences (13):

InputFunctionConfig
mscatter-combine.llcomplex_gep-mtriple=riscv32 -mattr=+m,+v -target-abi=ilp32d -verify-machineinstrs
mscatter-combine.llcomplex_gep-mtriple=riscv64 -mattr=+m,+v -target-abi=lp64d -verify-machineinstrs
float-imm.41878ab325.ll (mutant of float-imm.ll)float_positive_zero-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs -target-abi=lp64
float-imm.8fec39c0fb.ll (mutant of float-imm.ll)float_positive_zero-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs -target-abi=ilp32
half-imm.1ed18322c7.ll (mutant of half-imm.ll)half_positive_zero-mtriple=riscv32 -mattr=+zhinxmin -verify-machineinstrs -target-abi ilp32
half-imm.6bfa3ecc57.ll (mutant of half-imm.ll)half_positive_zero-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64
half-imm.9926f442c5.ll (mutant of half-imm.ll)half_positive_zero-mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi ilp32
half-imm.c9f91ce59d.ll (mutant of half-imm.ll)half_positive_zero-mtriple=riscv64 -mattr=+zhinxmin -verify-machineinstrs -target-abi lp64
mscatter-combine.027bbebda0.ll (mutant of mscatter-combine.ll)complex_gep-mtriple=riscv32 -mattr=+m,+v -target-abi=ilp32d -verify-machineinstrs
mscatter-combine.f6c94e51be.ll (mutant of mscatter-combine.ll)complex_gep-mtriple=riscv64 -mattr=+m,+v -target-abi=lp64d -verify-machineinstrs
zdinx-boundary-check.21218cbf6f.ll (mutant of zdinx-boundary-check.ll)foo9-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
zdinx-boundary-check.434197192f.ll (mutant of zdinx-boundary-check.ll)foo9-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
zdinx-boundary-check.807acdd712.ll (mutant of zdinx-boundary-check.ll)foo9-mtriple=riscv32 -mattr=+zdinx,+unaligned-scalar-mem -verify-machineinstrs -target-abi=ilp32

Generated 2026-11-29 14:49 UTC.