fallback: legalize: G_STRICT_FADD <N x f16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_STRICT_FADD <N x f16> M |
| Occurrences: | 3 in 1 configs, 1 test files, 5 more counted only |
| Snippet from: | fixed-vectors-vfadd-constrained-sdnode.c055aa2de6.ll (mutant of fixed-vectors-vfadd-constrained-sdnode.ll) @vfadd_vf_v2f16 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfhmin,+experimental-zvfbfa,+v -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global i1
; Function Attrs: strictfp
define <2 x half> @vfadd_vf_v2f16(<2 x half> %va, half %b) #0 {
%C = fcmp ole double +inf, 4.940660e-324
%head = insertelement <2 x half> poison, half %b, i32 0
%splat = shufflevector <2 x half> %head, <2 x half> poison, <2 x i32> zeroinitializer
%vc = call <2 x half> @llvm.experimental.constrained.fadd.v2f16(<2 x half> %va, <2 x half> %splat, metadata !"round.dynamic", metadata !"fpexcept.ignore")
store i1 %C, ptr @G.2, align 1
ret <2 x half> %vc
}
; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare <2 x half> @llvm.experimental.constrained.fadd.v2f16(<2 x half>, <2 x half>, metadata, metadata) #1
attributes #0 = { strictfp }
attributes #1 = { nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite) }
Reproduce:
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfhmin,+experimental-zvfbfa,+v -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfhmin,+experimental-zvfbfa,+v -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %11:_(<2 x f16>) = nofpexcept G_STRICT_FADD %0:_, %10:_ (in function: vfadd_vf_v2f16)
warning: Instruction selection used fallback path for vfadd_vf_v2f16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-vfadd-constrained-sdnode.c055aa2de6.ll (mutant of fixed-vectors-vfadd-constrained-sdnode.ll) | vfadd_vf_v2f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfhmin,+experimental-zvfbfa,+v -O3 |
| fixed-vectors-vfadd-constrained-sdnode.c055aa2de6.ll (mutant of fixed-vectors-vfadd-constrained-sdnode.ll) | vfadd_vv_v4f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfhmin,+experimental-zvfbfa,+v -O3 |
| fixed-vectors-vfadd-constrained-sdnode.c055aa2de6.ll (mutant of fixed-vectors-vfadd-constrained-sdnode.ll) | vfadd_vf_v32f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfhmin,+experimental-zvfbfa,+v -O3 |
Generated 2026-11-29 14:49 UTC.