fallback: legalize: G_STRICT_FDIV <N x f32>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_STRICT_FDIV <N x f32> M
Occurrences:4 in 3 configs, 1 test files, 1 more counted only
Snippet from:fixed-vectors-vfdiv-constrained-sdnode.52502a0101.ll (mutant of fixed-vectors-vfdiv-constrained-sdnode.ll) @vfdiv_vf_v4f32 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zbkb -O2 -code-model=medium
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global i1

; Function Attrs: strictfp
define <4 x float> @vfdiv_vf_v4f32(<4 x float> %va, float %b) #0 {
  %C = fcmp uno float 1.401300e-45, %b
  %head = insertelement <4 x float> poison, float %b, i32 0
  %splat = shufflevector <4 x float> %head, <4 x float> poison, <4 x i32> zeroinitializer
  %vc = call <4 x float> @llvm.experimental.constrained.fdiv.v4f32(<4 x float> %va, <4 x float> %splat, metadata !"round.dynamic", metadata !"fpexcept.ignore")
  store i1 %C, ptr @G.3, align 1
  ret <4 x float> %vc
}

; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare <4 x float> @llvm.experimental.constrained.fdiv.v4f32(<4 x float>, <4 x float>, metadata, metadata) #1

attributes #0 = { strictfp }
attributes #1 = { nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite) }

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zbkb -O2 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zbkb -O2 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %13:_(<4 x f32>) = nofpexcept G_STRICT_FDIV %0:_, %12:_ (in function: vfdiv_vf_v4f32)
warning: Instruction selection used fallback path for vfdiv_vf_v4f32

Occurrences (4):

InputFunctionConfig
fixed-vectors-vfdiv-constrained-sdnode.52502a0101.ll (mutant of fixed-vectors-vfdiv-constrained-sdnode.ll)vfdiv_vf_v4f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zbkb -O2 -code-model=medium
fixed-vectors-vfdiv-constrained-sdnode.52502a0101.ll (mutant of fixed-vectors-vfdiv-constrained-sdnode.ll)vfdiv_vf_v8f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zbkb -O2 -code-model=medium
fixed-vectors-vfdiv-constrained-sdnode.68d96e47ea.ll (mutant of fixed-vectors-vfdiv-constrained-sdnode.ll)vfdiv_fv_v8f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+f -O1
fixed-vectors-vfdiv-constrained-sdnode.bd428ed8ee.ll (mutant of fixed-vectors-vfdiv-constrained-sdnode.ll)vfdiv_vv_v4f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O0

Generated 2026-11-29 14:49 UTC.