fallback: legalize: G_INTRINSIC <N x f16>,<N x i1>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC <N x f16>,<N x i1> M |
| Occurrences: | 3 in 3 configs, 1 test files, 29 more counted only |
| Snippet from: | fixed-vectors-reduction-fp-vp.5e33a4eb28.ll (mutant of fixed-vectors-reduction-fp-vp.ll) @vpreduce_ord_fadd_v2f16 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zve32x -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global half
define half @vpreduce_ord_fadd_v2f16(half %s, <2 x half> %v, <2 x i1> %m, i32 zeroext %evl) {
%LGV = load half, ptr @G, align 2
%r = call half @llvm.vp.reduce.fadd.v2f16(half %s, <2 x half> %v, <2 x i1> %m, i32 %evl)
%C = fcmp uge half %r, %LGV
store i1 %C, ptr poison, align 1
ret half %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.vp.reduce.fadd.v2f16(half, <2 x half>, <2 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zve32x -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zve32x -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %8:_(f16) = G_INTRINSIC intrinsic(@llvm.vp.reduce.fadd), %0:_(f16), %1:_(<2 x f16>), %2:_(<2 x i1>), %3:_(i32) (in function: vpreduce_ord_fadd_v2f16)
warning: Instruction selection used fallback path for vpreduce_ord_fadd_v2f16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp-vp.5e33a4eb28.ll (mutant of fixed-vectors-reduction-fp-vp.ll) | vpreduce_ord_fadd_v2f16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zve32x -O1 |
| fixed-vectors-reduction-fp-vp.a00313c2f1.ll (mutant of fixed-vectors-reduction-fp-vp.ll) | vpreduce_fadd_v4f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O0 -code-model=medium |
| fixed-vectors-reduction-fp-vp.aff36028b3.ll (mutant of fixed-vectors-reduction-fp-vp.ll) | vpreduce_fadd_v2f16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+c,+a -O0 |
Generated 2026-11-29 14:49 UTC.