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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_FPTOSI <N x i64>,<N x f16> M
Occurrences:3 in 3 configs, 1 test files, 12 more counted only
Snippet from:fixed-vectors-fp2i.e92d8a1ff7.ll (mutant of fixed-vectors-fp2i.ll) @fp2si_v2f16_v2i64 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

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

define void @fp2si_v2f16_v2i64(ptr %x, ptr %y) {
  %a = load <2 x half>, ptr %x, align 4
  %d = fptosi <2 x half> %a to <2 x i64>
  store <2 x i64> %d, ptr %y, align 16
  %B = xor <2 x i64> %d, %d
  store <2 x i64> %B, ptr @G.4, align 16
  ret void
}

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O2 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
fixed-vectors-fp2i.0dd2233c44.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f16_v2i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O2
fixed-vectors-fp2i.e92d8a1ff7.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O2
fixed-vectors-fp2i.efe1a477f1.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+f,+d,+xtheadba -O2

Generated 2026-11-29 14:49 UTC.