fallback: legalize: G_STRICT_FDIV <N x f16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_STRICT_FDIV <N x f16> M |
| Occurrences: | 3 in 2 configs, 1 test files, 2 more counted only |
| Snippet from: | fixed-vectors-vfdiv-constrained-sdnode.68d96e47ea.ll (mutant of fixed-vectors-vfdiv-constrained-sdnode.ll) @vfdiv_vv_v2f16 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+f -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i8
@G.1 = external global i8
; Function Attrs: strictfp
define <2 x half> @vfdiv_vv_v2f16(<2 x half> %va, <2 x half> %vb) #0 {
entry:
%A = alloca i8, align 1
store i8 poison, ptr %A, align 1
%LGV1 = load i8, ptr @G.1, align 1
%LGV = load i8, ptr @G, align 1
%vc = call <2 x half> @llvm.experimental.constrained.fdiv.v2f16(<2 x half> %va, <2 x half> %vb, metadata !"round.dynamic", metadata !"fpexcept.ignore")
%B = and i8 %LGV, %LGV1
store i8 %B, ptr %A, 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.fdiv.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,+zvfh,+f -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+f -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %12:_(<2 x f16>) = nofpexcept G_STRICT_FDIV %0:_, %1:_ (in function: vfdiv_vv_v2f16)
warning: Instruction selection used fallback path for vfdiv_vv_v2f16
Occurrences (3):
Generated 2026-11-29 14:49 UTC.