fallback: legalize: G_STORE p0,p10

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_STORE p0,p10 M
Occurrences:3 in 3 configs, 2 test files, 9 more counted only
Snippet from:addrspacecast.1da77c57c8.ll (mutant of addrspacecast.ll) @cast1 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zcb -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @cast1(ptr %ptr) {
  %castptr = addrspacecast ptr %ptr to ptr addrspace(10)
  call void @foo(ptr addrspace(10) %castptr)
  %G = getelementptr i128, ptr %ptr, i128 -170141183460469231731687303715884105728
  store ptr %G, ptr addrspace(10) %castptr, align 8
  ret void
}

declare void @foo(ptr addrspace(10))

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: G_STORE %0:_(p0), %1:_(p10) :: (store (p0) into %ir.castptr, addrspace 10) (in function: cast1)
warning: Instruction selection used fallback path for cast1

Occurrences (3):

InputFunctionConfig
addrspacecast.1da77c57c8.ll (mutant of addrspacecast.ll)cast1-mtriple=riscv64 -verify-machineinstrs -mattr=+zcb -O1
addrspacecast.8cc9f0bc.03772d7587.ll (mutant of addrspacecast.8cc9f0bc.ll)cast1-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfhmin -O1
addrspacecast.8cc9f0bc.a56cd04f29.ll (mutant of addrspacecast.8cc9f0bc.ll)cast1-mtriple=riscv32 -verify-machineinstrs -O1 -code-model=small

Generated 2026-11-29 14:49 UTC.