fallback: legalize: G_STRICT_FSQRT <N x f32>

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

Snippet:

; Function Attrs: strictfp
define <4 x float> @vfsqrt_v4f32(<4 x float> %v) #0 {
  %B = frem <4 x float> %v, splat (float 1.000000e+00)
  %r = call <4 x float> @llvm.experimental.constrained.sqrt.v4f32(<4 x float> %v, metadata !"round.dynamic", metadata !"fpexcept.strict")
  store <4 x float> %B, ptr poison, align 16
  ret <4 x float> %r
}

; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare <4 x float> @llvm.experimental.constrained.sqrt.v4f32(<4 x float>, 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 -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (7):

InputFunctionConfig
fixed-vectors-vfsqrt-constrained-sdnode.3c65e4ae18.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v16f32-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_v4f32-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_v4f32-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_v16f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3
fixed-vectors-vfsqrt-constrained-sdnode.d019cb15c7.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v4f32-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_v4f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O0
fixed-vectors-vfsqrt-constrained-sdnode.f77ed73eb6.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll)vfsqrt_v16f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O0

Generated 2026-11-29 14:49 UTC.