fallback: legalize: G_STORE p1,p0

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_STORE p1,p0 M
Occurrences:8 in 8 configs, 2 test files, 42 more counted only
Snippet from:addrspacecast.cb7aada890.ll (mutant of addrspacecast.ll) @cast0 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @cast0(ptr addrspace(1) %ptr) {
  %A = alloca ptr addrspace(1), align 8
  store ptr addrspace(1) poison, ptr %A, align 8
  %ptr0 = addrspacecast ptr addrspace(1) %ptr to ptr
  %L = load i1, ptr %ptr0, align 1
  store i32 0, ptr %ptr0, align 4
  %G = getelementptr ptr addrspace(1), ptr addrspace(1) %ptr, i1 %L
  store ptr addrspace(1) %G, ptr %A, align 8
  ret void
}

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: G_STORE %9:_(p1), %1:_(p0) :: (store (p1) into %ir.A, align 8) (in function: cast0)
warning: Instruction selection used fallback path for cast0

Occurrences (8):

InputFunctionConfig
addrspacecast.0843499e.c5314c51.87437b8479.ll (mutant of addrspacecast.0843499e.c5314c51.ll)cast0-mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause,+zfh,+zicond,+zcb,+zbkb -O2
addrspacecast.0843499e.c5314c51.9072addf31.ll (mutant of addrspacecast.0843499e.c5314c51.ll)cast0-mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause,+zfh,+zicond,+zcb,+zbs -O0
addrspacecast.0843499e.c5314c51.b640d50dad.ll (mutant of addrspacecast.0843499e.c5314c51.ll)cast0-mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause,+zfh,+zicond,+zcb,+m -O2
addrspacecast.19ecd63559.ll (mutant of addrspacecast.ll)cast0-mtriple=riscv64 -verify-machineinstrs -O1
addrspacecast.23ed25bc61.ll (mutant of addrspacecast.ll)cast0-mtriple=riscv32 -verify-machineinstrs -O1
addrspacecast.271ea0982d.ll (mutant of addrspacecast.ll)cast0-mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause -O3
addrspacecast.5ed118a2aa.ll (mutant of addrspacecast.ll)cast0-mtriple=riscv64 -verify-machineinstrs -mattr=+a -O3
addrspacecast.cb7aada890.ll (mutant of addrspacecast.ll)cast0-mtriple=riscv32 -verify-machineinstrs -O3

Generated 2026-11-29 14:49 UTC.