fallback: legalize: G_PHI <N x f16>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x f16> M |
| Occurrences: | 3 in 3 configs, 2 test files, 29 more counted only |
| Snippet from: | fixed-vectors-masked-load-fp.ce0f5f05b8.ll (mutant of fixed-vectors-masked-load-fp.ll) @masked_load_v4f16 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O0 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global <4 x half>
define <4 x half> @masked_load_v4f16(ptr %a, <4 x i1> %mask) {
%load = call <4 x half> @llvm.masked.load.v4f16.p0(ptr align 8 %a, <4 x i1> %mask, <4 x half> poison)
store <4 x half> %load, ptr @G.2, align 8
ret <4 x half> %load
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <4 x half> @llvm.masked.load.v4f16.p0(ptr captures(none), <4 x i1>, <4 x half>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %40:_(<4 x f16>) = G_PHI %38:_(<4 x f16>), %bb.8, %31:_(<4 x f16>), %bb.7 (in function: masked_load_v4f16)
warning: Instruction selection used fallback path for masked_load_v4f16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-expandload-fp.01a3f6d6d1.ll (mutant of fixed-vectors-expandload-fp.ll) | expandload_v4f16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+f,+d,+xtheadba -O1 |
| fixed-vectors-masked-load-fp.a98771b845.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v128f16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O3 |
| fixed-vectors-masked-load-fp.ce0f5f05b8.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v4f16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O0 |
Generated 2026-11-29 14:49 UTC.