fallback: legalize: G_STORE p10
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_STORE p10 M |
| Occurrences: | 3 in 3 configs, 1 test files, 13 more counted only |
| Snippet from: | addrspacecast.8e537038ef.ll (mutant of addrspacecast.ll) @cast1 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zicond,+m -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global i16
define void @cast1(ptr %ptr) {
%LGV = load i16, ptr @G.2, align 2
%B = add i16 -1, %LGV
%castptr = addrspacecast ptr %ptr to ptr addrspace(10)
call void @foo(ptr addrspace(10) %castptr)
store i16 %B, ptr addrspace(10) %castptr, align 2
ret void
}
declare void @foo(ptr addrspace(10))
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zicond,+m -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zicond,+m -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: G_STORE %4:_(i16), %5:_(p10) :: (store (i16) into %ir.castptr, addrspace 10) (in function: cast1)
warning: Instruction selection used fallback path for cast1
Occurrences (3):
| Input | Function | Config |
|---|
| addrspacecast.6156c1311f.ll (mutant of addrspacecast.ll) | cast1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zicond,+xtheadba -O1 |
| addrspacecast.8e537038ef.ll (mutant of addrspacecast.ll) | cast1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zicond,+m -O3 |
| addrspacecast.d37bd8c3be.ll (mutant of addrspacecast.ll) | cast1 | -mtriple=riscv32 -verify-machineinstrs -O2 |
Generated 2026-11-29 14:49 UTC.