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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_FPTOSI <N x i32>,<N x f64> M
Occurrences:6 in 5 configs, 2 test files
Snippet from:fixed-vectors-fptosi-vp.067e1ba017.ll (mutant of fixed-vectors-fptosi-vp.ll) @vfptosi_v4i32_v4f64_unmasked via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+zvfh -O2 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i128

define <4 x i32> @vfptosi_v4i32_v4f64_unmasked(<4 x double> %va, i32 zeroext %evl) {
  %B = sub i128 0, 0
  %v = fptosi <4 x double> %va to <4 x i32>
  store i128 %B, ptr @G, align 4
  ret <4 x i32> %v
}

Reproduce:

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

Local llc output:

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

Occurrences (6):

InputFunctionConfig
fixed-vectors-fptosi-vp.067e1ba017.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f64_unmasked-mtriple=riscv32 -mattr=+m,+zvfh -O2 -verify-machineinstrs
fixed-vectors-fptosi-vp.c8caa2d8b1.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f64-mtriple=riscv64 -mattr=+m,+zvfh -O1 -code-model=medium -verify-machineinstrs
fixed-vectors-fptosi-vp.c8caa2d8b1.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f64_unmasked-mtriple=riscv64 -mattr=+m,+zvfh -O1 -code-model=medium -verify-machineinstrs
fixed-vectors-fptosi-vp.fbd4e8a7dd.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f64_unmasked-mtriple=riscv32 -mattr=+m,+zvfh,+zbb -O3 -verify-machineinstrs
fixed-vectors-fptosi-vp.fec15ec99d.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f64-mtriple=riscv64 -mattr=+m,+zvfh,+zve32x -O3 -verify-machineinstrs
fpclamptosat_vec.c8efa4f531.ll (mutant of fpclamptosat_vec.ll)ustest_f64i16-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -riscv-v-vector-bits-min=0 -mattr=+f,+d,+v -O2

Generated 2026-11-29 14:49 UTC.