fallback: legalize: G_FPTOSI <N x i64>,<N x f16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_FPTOSI <N x i64>,<N x f16> M
Occurrences:5 in 5 configs, 2 test files, 16 more counted only
Snippet from:fixed-vectors-fptosi-vp.de8be8e040.ll (mutant of fixed-vectors-fptosi-vp.ll) @vfptosi_v4i64_v4f16_unmasked via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+zvfh -O0 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.5 = external global <2 x i64>

define <4 x i64> @vfptosi_v4i64_v4f16_unmasked(<4 x half> %va, i32 zeroext %evl) {
  %B = or <2 x i64> splat (i64 1), splat (i64 4294967296)
  %v = fptosi <4 x half> %va to <4 x i64>
  store <2 x i64> %B, ptr @G.5, align 16
  ret <4 x i64> %v
}

Reproduce:

llc -mtriple=riscv32 -mattr=+m,+zvfh -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+zvfh -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %13:_(<4 x i64>) = G_FPTOSI %0:_(<4 x f16>) (in function: vfptosi_v4i64_v4f16_unmasked)
warning: Instruction selection used fallback path for vfptosi_v4i64_v4f16_unmasked

Occurrences (5):

InputFunctionConfig
fixed-vectors-fp2i.21005e2534.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zcb,+zfhmin -O0 -code-model=medium
fixed-vectors-fp2i.39968aa705.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zfh -O0 -code-model=medium
fixed-vectors-fp2i.3c8b18184f.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f16_v2i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -O1
fixed-vectors-fp2i.f890f52116.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f16_v2i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+f,+d -O3
fixed-vectors-fptosi-vp.de8be8e040.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i64_v4f16_unmasked-mtriple=riscv32 -mattr=+m,+zvfh -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.