fallback: legalize: G_STORE p10,p0
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_STORE p10,p0 M |
| Occurrences: | 3 in 3 configs, 2 test files, 18 more counted only |
| Snippet from: | addrspacecast.271ea0982d.ll (mutant of addrspacecast.ll) @cast1 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global i32
@G.3 = external global i1
define void @cast1(ptr %ptr) {
%LGV = load i1, ptr @G.3, align 1
%LGV1 = load i32, ptr @G.2, align 4
%castptr = addrspacecast ptr %ptr to ptr addrspace(10)
%G = getelementptr ptr addrspace(10), ptr addrspace(10) %castptr, i32 %LGV1
br i1 %LGV, label %T, label %F
BB: ; preds = %F, %T
call void @foo(ptr addrspace(10) %castptr)
store ptr addrspace(10) %G, ptr poison, align 8
ret void
T: ; preds = %0
br label %BB
F: ; preds = %0
br label %BB
}
declare void @foo(ptr addrspace(10))
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: G_STORE %7:_(p10), %9:_(p0) :: (store (p10) into `ptr poison`) (in function: cast1)
warning: Instruction selection used fallback path for cast1
Occurrences (3):
| Input | Function | Config |
|---|
| addrspacecast.0843499e.c5314c51.00a8e5bf48.ll (mutant of addrspacecast.0843499e.c5314c51.ll) | cast1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause,+zfh,+zicond,+zcb -O0 |
| addrspacecast.271ea0982d.ll (mutant of addrspacecast.ll) | cast1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause -O3 |
| addrspacecast.5ed118a2aa.ll (mutant of addrspacecast.ll) | cast1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+a -O3 |
Generated 2026-11-29 14:49 UTC.