fallback: legalize: G_FSQRT
| Run: | main-b577f07195-20261129-101839 |
| Kind: | fallback |
| Category: | legalize: G_FSQRT |
| Occurrences: | 12 in 8 configs, 3 test files |
| Snippet from: | half-arith.ll @fsqrt_h via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define half @fsqrt_h(half %a) #0 {
%1 = call half @llvm.sqrt.f16(half %a)
ret half %1
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.sqrt.f16(half) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %1:_(f16) = G_FSQRT %0:_ (in function: fsqrt_h)
warning: Instruction selection used fallback path for fsqrt_h
Occurrences (12):
| Input | Function | Config |
|---|
| fp128.ll | sqrt | -mtriple=riscv32 |
| fp128.ll | sqrt | -mtriple=riscv32 -mattr=+d |
| half-arith.ll | fsqrt_h | -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f |
| half-arith.ll | fsqrt_h | -mtriple=riscv32 -verify-machineinstrs |
| half-arith.ll | fsqrt_h | -mtriple=riscv64 -mattr=+zfhmin -verify-machineinstrs -target-abi lp64f |
| half-arith.ll | fsqrt_h | -mtriple=riscv64 -verify-machineinstrs |
| half-intrinsics.ll | sqrt_f16 | -mtriple=riscv32 -mattr=+d -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32d |
| half-intrinsics.ll | sqrt_f16 | -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f |
| half-intrinsics.ll | sqrt_f16 | -mtriple=riscv32 -verify-machineinstrs |
| half-intrinsics.ll | sqrt_f16 | -mtriple=riscv64 -mattr=+d -mattr=+zfhmin -verify-machineinstrs -target-abi lp64d |
| half-intrinsics.ll | sqrt_f16 | -mtriple=riscv64 -mattr=+zfhmin -verify-machineinstrs -target-abi lp64f |
| half-intrinsics.ll | sqrt_f16 | -mtriple=riscv64 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.