fallback: legalize: G_PHI <N x i16>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x i16> M |
| Occurrences: | 3 in 3 configs, 2 test files, 32 more counted only |
| Snippet from: | fixed-vectors-unaligned.9c8801d3b2.ll (mutant of fixed-vectors-unaligned.ll) @mgather_v2i16_align1 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+unaligned-vector-mem,+zicond -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <2 x i16> @mgather_v2i16_align1(<2 x ptr> %ptrs, <2 x i1> %m, <2 x i16> %passthru) {
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%v = call <2 x i16> @llvm.masked.gather.v2i16.v2p0(<2 x ptr> align 1 %ptrs, <2 x i1> %m, <2 x i16> %passthru)
%C = icmp ult i128 18446744073709551616, 170141183460469231731687303715884105727
store i1 %C, ptr %A, align 1
ret <2 x i16> %v
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(read)
declare <2 x i16> @llvm.masked.gather.v2i16.v2p0(<2 x ptr>, <2 x i1>, <2 x i16>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(read) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+unaligned-vector-mem,+zicond -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+unaligned-vector-mem,+zicond -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %30:_(<2 x i16>) = G_PHI %29:_(<2 x i16>), %bb.4, %22:_(<2 x i16>), %bb.3 (in function: mgather_v2i16_align1)
warning: Instruction selection used fallback path for mgather_v2i16_align1
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-expandload-int.625b20e410.ll (mutant of fixed-vectors-expandload-int.ll) | expandload_v8i16 | -verify-machineinstrs -mtriple=riscv64 -mattr=+m -O3 -code-model=small |
| fixed-vectors-unaligned.58fb9890f2.ll (mutant of fixed-vectors-unaligned.ll) | mgather_v2i16_align1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+unaligned-vector-mem -O2 |
| fixed-vectors-unaligned.9c8801d3b2.ll (mutant of fixed-vectors-unaligned.ll) | mgather_v2i16_align1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+unaligned-vector-mem,+zicond -O0 |
Generated 2026-11-29 14:49 UTC.