fallback: legalize: G_PHI <N x i16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x i16> M |
| Occurrences: | 3 in 3 configs, 2 test files, 16 more counted only |
| Snippet from: | fixed-vectors-expandload-int.b670486373.ll (mutant of fixed-vectors-expandload-int.ll) @expandload_v4i16 via llvm-extract |
| Config: | -verify-machineinstrs -mtriple=riscv64 -mattr=+m -O2 -code-model=small |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.3 = external global <4 x i16>
define <4 x i16> @expandload_v4i16(ptr %base, <4 x i16> %src0, <4 x i1> %mask) {
%res = call <4 x i16> @llvm.masked.expandload.v4i16.p0(ptr align 2 %base, <4 x i1> %mask, <4 x i16> %src0)
%B = add <4 x i16> %res, zeroinitializer
store <4 x i16> %B, ptr @G.3, align 8
ret <4 x i16> %res
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(read)
declare <4 x i16> @llvm.masked.expandload.v4i16.p0(ptr captures(none), <4 x i1>, <4 x i16>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(read) }
Reproduce:
llc -verify-machineinstrs -mtriple=riscv64 -mattr=+m -O2 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -verify-machineinstrs -mtriple=riscv64 -mattr=+m -O2 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %44:_(<4 x i16>) = G_PHI %42:_(<4 x i16>), %bb.8, %36:_(<4 x i16>), %bb.7 (in function: expandload_v4i16)
warning: Instruction selection used fallback path for expandload_v4i16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-expandload-int.b670486373.ll (mutant of fixed-vectors-expandload-int.ll) | expandload_v4i16 | -verify-machineinstrs -mtriple=riscv64 -mattr=+m -O2 -code-model=small |
| fixed-vectors-masked-gather.abe61d5df8.ll (mutant of fixed-vectors-masked-gather.ll) | mgather_baseidx_sext_v8i8_v8i16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin -O0 |
| fixed-vectors-masked-gather.f372f48f57.ll (mutant of fixed-vectors-masked-gather.ll) | mgather_v2i16_sextload_v2i64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b,+zicond -O1 |
Generated 2026-11-29 14:49 UTC.