fallback: legalize: G_INTRINSIC <N x f16>,<N x i1>
| Run: | main-b577f07195-20261129-101839 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC <N x f16>,<N x i1> M |
| Occurrences: | 4 in 2 configs, 1 test files |
| Snippet from: | fixed-vectors-reduction-fp-vp.874d07aba0.ll (mutant of fixed-vectors-reduction-fp-vp.ll) @vpreduce_fadd_v4f16 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define half @vpreduce_fadd_v4f16(half %s, <4 x half> %v, <4 x i1> %m, i32 zeroext %evl) {
%r = call reassoc half @llvm.vp.reduce.fadd.v4f16(half %s, <4 x half> %v, <4 x i1> %m, i32 %evl)
%B = udiv i32 %evl, 65536
store i32 %B, ptr poison, align 4
ret half %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.vp.reduce.fadd.v4f16(half, <4 x half>, <4 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %6:_(f16) = reassoc G_INTRINSIC intrinsic(@llvm.vp.reduce.fadd), %0:_(f16), %1:_(<4 x f16>), %2:_(<4 x i1>), %3:_(i32) (in function: vpreduce_fadd_v4f16)
warning: Instruction selection used fallback path for vpreduce_fadd_v4f16
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp-vp.4fc6fe95b2.ll (mutant of fixed-vectors-reduction-fp-vp.ll) | vpreduce_fadd_v4f16 | -mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs |
| fixed-vectors-reduction-fp-vp.874d07aba0.ll (mutant of fixed-vectors-reduction-fp-vp.ll) | vpreduce_fadd_v4f16 | -mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs |
| fixed-vectors-reduction-fp-vp.c040846264.ll (mutant of fixed-vectors-reduction-fp-vp.ll) | vpreduce_fadd_v4f16 | -mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs |
| fixed-vectors-reduction-fp-vp.ed415a7062.ll (mutant of fixed-vectors-reduction-fp-vp.ll) | vpreduce_fadd_v4f16 | -mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.