fallback: legalize: G_STORE p1,p0
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_STORE p1,p0 M |
| Occurrences: | 8 in 8 configs, 2 test files, 63 more counted only |
| Snippet from: | addrspacecast.781f6fd37b.ll (mutant of addrspacecast.ll) @cast0 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+f,+xtheadba -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
define void @cast0(ptr addrspace(1) %ptr) {
%G = getelementptr i1, ptr addrspace(1) %ptr, i64 0
%ptr0 = addrspacecast ptr addrspace(1) %ptr to ptr
%L1 = load i8, ptr %ptr0, align 1
%L = load i8, ptr %ptr0, align 1
store i32 0, ptr %ptr0, align 4
store ptr addrspace(1) %G, ptr %ptr0, align 8
%C = icmp eq i8 %L, %L1
store i1 %C, ptr @G, align 1
ret void
}
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+f,+xtheadba -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+f,+xtheadba -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: G_STORE %0:_(p1), %1:_(p0) :: (store (p1) into %ir.ptr0) (in function: cast0)
warning: Instruction selection used fallback path for cast0
Occurrences (8):
| Input | Function | Config |
|---|
| addrspacecast.4399836a28.ll (mutant of addrspacecast.ll) | cast0 | -mtriple=riscv64 -verify-machineinstrs -O0 |
| addrspacecast.46dc708b71.ll (mutant of addrspacecast.ll) | cast0 | -mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadba -O1 -code-model=medium |
| addrspacecast.781f6fd37b.ll (mutant of addrspacecast.ll) | cast0 | -mtriple=riscv64 -verify-machineinstrs -mattr=+f,+xtheadba -O0 |
| addrspacecast.8cc9f0bc.3af4a3c323.ll (mutant of addrspacecast.8cc9f0bc.ll) | cast0 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 |
| addrspacecast.8cc9f0bc.3bdbcce7e7.ll (mutant of addrspacecast.8cc9f0bc.ll) | cast0 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 |
| addrspacecast.8cc9f0bc.83ff29fd6e.ll (mutant of addrspacecast.8cc9f0bc.ll) | cast0 | -mtriple=riscv32 -verify-machineinstrs -O3 -code-model=small |
| addrspacecast.9dd3c78bb1.ll (mutant of addrspacecast.ll) | cast0 | -mtriple=riscv64 -verify-machineinstrs -O3 |
| addrspacecast.ffc7c1686d.ll (mutant of addrspacecast.ll) | cast0 | -mtriple=riscv64 -verify-machineinstrs -mattr=+f -O0 |
Generated 2026-11-29 14:49 UTC.