fallback: legalize: G_STRICT_FSQRT <N x f16>

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

Snippet:

@G.4 = external global i64

; Function Attrs: strictfp
define <4 x half> @vfsqrt_v4f16(<4 x half> %v) #0 {
  %r = call <4 x half> @llvm.experimental.constrained.sqrt.v4f16(<4 x half> %v, metadata !"round.dynamic", metadata !"fpexcept.strict")
  %B = mul i64 9223372036854775807, 42
  store i64 %B, ptr @G.4, 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=+zvfh -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %6:_(<4 x f16>) = G_STRICT_FSQRT %0:_ (in function: vfsqrt_v4f16)
warning: Instruction selection used fallback path for vfsqrt_v4f16

Occurrences (5):

InputFunctionConfig
fixed-vectors-vfsqrt-constrained-sdnode.2f5c99d85f.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v32f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+a -O1
fixed-vectors-vfsqrt-constrained-sdnode.7ca087a1a3.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v8f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+m -O0
fixed-vectors-vfsqrt-constrained-sdnode.7ca087a1a3.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v32f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+m -O0
fixed-vectors-vfsqrt-constrained-sdnode.dcc2478b44.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O3
fixed-vectors-vfsqrt-constrained-sdnode.dcc2478b44.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v32f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O3

Generated 2026-11-29 14:49 UTC.