fallback: legalize: G_STRICT_FSQRT <N x f64>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_STRICT_FSQRT <N x f64> M |
| Occurrences: | 4 in 3 configs, 1 test files, 5 more counted only |
| Snippet from: | fixed-vectors-vfsqrt-constrained-sdnode.5176472669.ll (mutant of fixed-vectors-vfsqrt-constrained-sdnode.ll) @vfsqrt_v4f64 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.1 = external global i16
; Function Attrs: strictfp
define <4 x double> @vfsqrt_v4f64(<4 x double> %v) #0 {
%LGV = load i16, ptr @G.1, align 2
%r = call <4 x double> @llvm.experimental.constrained.sqrt.v4f64(<4 x double> %v, metadata !"round.dynamic", metadata !"fpexcept.strict")
%C = icmp sle i16 1, %LGV
store i1 %C, ptr poison, align 1
ret <4 x double> %r
}
; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare <4 x double> @llvm.experimental.constrained.sqrt.v4f64(<4 x double>, 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: %8:_(<4 x f64>) = G_STRICT_FSQRT %0:_ (in function: vfsqrt_v4f64)
warning: Instruction selection used fallback path for vfsqrt_v4f64
Occurrences (4):
Generated 2026-11-29 14:49 UTC.