fallback: legalize: G_STRICT_FSQRT <N x f16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_STRICT_FSQRT <N x f16> M
Occurrences:8 in 5 configs, 1 test files, 8 more counted only
Snippet from:fixed-vectors-vfsqrt-constrained-sdnode.5176472669.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll) @vfsqrt_v4f16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i128

; Function Attrs: strictfp
define <4 x half> @vfsqrt_v4f16(<4 x half> %v) #0 {
  %LGV1 = load i128, ptr @G.2, align 4
  %B = udiv i128 0, %LGV1
  %r = call <4 x half> @llvm.experimental.constrained.sqrt.v4f16(<4 x half> %v, metadata !"round.dynamic", metadata !"fpexcept.strict")
  store i128 %B, ptr poison, align 4
  ret <4 x half> %r
}

; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare <4 x half> @llvm.experimental.constrained.sqrt.v4f16(<4 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: %10:_(<4 x f16>) = G_STRICT_FSQRT %0:_ (in function: vfsqrt_v4f16)
warning: Instruction selection used fallback path for vfsqrt_v4f16

Occurrences (8):

InputFunctionConfig
fixed-vectors-vfsqrt-constrained-sdnode.3c65e4ae18.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v32f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3 -code-model=medium
fixed-vectors-vfsqrt-constrained-sdnode.5176472669.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3
fixed-vectors-vfsqrt-constrained-sdnode.5176472669.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v16f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3
fixed-vectors-vfsqrt-constrained-sdnode.5c93905611.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v16f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3
fixed-vectors-vfsqrt-constrained-sdnode.c35da438cb.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+v,+zfhmin -O2
fixed-vectors-vfsqrt-constrained-sdnode.d019cb15c7.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v16f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfa -O2
fixed-vectors-vfsqrt-constrained-sdnode.d019cb15c7.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v32f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfa -O2
fixed-vectors-vfsqrt-constrained-sdnode.f77ed73eb6.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v2f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O0

Generated 2026-11-29 14:49 UTC.