fallback: legalize: G_LOAD p10
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_LOAD p10 M |
| Occurrences: | 3 in 3 configs, 1 test files, 11 more counted only |
| Snippet from: | addrspacecast.5d959542e9.ll (mutant of addrspacecast.ll) @cast1 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfa -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global ptr
define void @cast1(ptr %ptr) {
%castptr = addrspacecast ptr %ptr to ptr addrspace(10)
%L = load i1, ptr addrspace(10) %castptr, align 1
call void @foo(ptr addrspace(10) %castptr)
%G = getelementptr ptr, ptr %ptr, i1 %L
store ptr %G, ptr @G, align 8
ret void
}
declare void @foo(ptr addrspace(10))
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfa -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfa -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %11:_(i16) = G_LOAD %1:_(p10) :: (load (i8) from %ir.castptr, addrspace 10) (in function: cast1)
warning: Instruction selection used fallback path for cast1
Occurrences (3):
| Input | Function | Config |
|---|
| addrspacecast.5ae2880c04.ll (mutant of addrspacecast.ll) | cast1 | -mtriple=riscv32 -verify-machineinstrs -O3 |
| addrspacecast.5d959542e9.ll (mutant of addrspacecast.ll) | cast1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfa -O3 |
| addrspacecast.d0991e1081.ll (mutant of addrspacecast.ll) | cast1 | -mtriple=riscv64 -verify-machineinstrs -O3 |
Generated 2026-11-29 14:49 UTC.