fallback: legalize: G_STRICT_FDIV <N x f16>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_STRICT_FDIV <N x f16> M |
| Occurrences: | 6 in 3 configs, 1 test files, 4 more counted only |
| Snippet from: | fixed-vectors-vfdiv-constrained-sdnode.1ab3daeba5.ll (mutant of fixed-vectors-vfdiv-constrained-sdnode.ll) @vfdiv_vv_v32f16 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global bfloat
@G.1 = external global i1
; Function Attrs: strictfp
define <32 x half> @vfdiv_vv_v32f16(<32 x half> %va, <32 x half> %vb) #0 {
entry:
%LGV = load bfloat, ptr @G, align 2
%C = fcmp ord bfloat %LGV, 0.000000e+00
%vc = call <32 x half> @llvm.experimental.constrained.fdiv.v32f16(<32 x half> %va, <32 x half> %vb, metadata !"round.dynamic", metadata !"fpexcept.ignore")
store i1 %C, ptr @G.1, align 1
ret <32 x half> %vc
}
; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare <32 x half> @llvm.experimental.constrained.fdiv.v32f16(<32 x half>, <32 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 -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %127:_(<32 x f16>) = nofpexcept G_STRICT_FDIV %0:_, %1:_ (in function: vfdiv_vv_v32f16)
warning: Instruction selection used fallback path for vfdiv_vv_v32f16
Occurrences (6):
Generated 2026-11-29 14:49 UTC.