fallback: legalize: G_FPTOSI <N x i8>,<N x f64>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_FPTOSI <N x i8>,<N x f64> M
Occurrences:8 in 6 configs, 2 test files, 38 more counted only
Snippet from:fixed-vectors-fptosi-vp.07d4916fbf.ll (mutant of fixed-vectors-fptosi-vp.ll) @vfptosi_v4i8_v4f64_unmasked via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+zvfhmin -O0 -code-model=medium -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <4 x i8> @vfptosi_v4i8_v4f64_unmasked(<4 x double> %va, i32 zeroext %evl) {
  %C = icmp ult i32 %evl, %evl
  %v = fptosi <4 x double> %va to <4 x i8>
  store i1 %C, ptr poison, align 1
  ret <4 x i8> %v
}

Reproduce:

llc -mtriple=riscv64 -mattr=+m,+zvfhmin -O0 -code-model=medium -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+zvfhmin -O0 -code-model=medium -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %7:_(<4 x i8>) = G_FPTOSI %0:_(<4 x f64>) (in function: vfptosi_v4i8_v4f64_unmasked)
warning: Instruction selection used fallback path for vfptosi_v4i8_v4f64_unmasked

Occurrences (8):

InputFunctionConfig
fixed-vectors-fp2i.2243162e01.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f64_v2i8-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+f,+d,+zba -O2
fixed-vectors-fp2i.3c8b18184f.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f64_v8i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -O1
fixed-vectors-fp2i.754378cf21.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f64_v2i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -O1
fixed-vectors-fp2i.f46e27bd13.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f64_v2i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -O0
fixed-vectors-fp2i.f8eb8b0ca8.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f64_v2i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f -O3
fixed-vectors-fptosi-vp.07d4916fbf.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i8_v4f64_unmasked-mtriple=riscv64 -mattr=+m,+zvfhmin -O0 -code-model=medium -verify-machineinstrs
fixed-vectors-fptosi-vp.de8be8e040.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i8_v4f64-mtriple=riscv32 -mattr=+m,+zvfh -O0 -verify-machineinstrs
fixed-vectors-fptosi-vp.de8be8e040.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i8_v4f64_unmasked-mtriple=riscv32 -mattr=+m,+zvfh -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.