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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_FPTOSI <N x i64>,<N x f64> M
Occurrences:7 in 5 configs, 1 test files, 6 more counted only
Snippet from:fixed-vectors-fptosi-vp.54767446bf.ll (mutant of fixed-vectors-fptosi-vp.ll) @vfptosi_v4i64_v4f64 via llvm-extract
Config:-mtriple=riscv64 -mattr=+m -O0 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <4 x i64> @vfptosi_v4i64_v4f64(<4 x double> %va, <4 x i1> %m, i32 zeroext %evl) {
  %A = alloca i1, align 1
  store i1 poison, ptr %A, align 1
  %C = icmp slt i32 %evl, 65536
  %v = fptosi <4 x double> %va to <4 x i64>
  store i1 %C, ptr %A, align 1
  ret <4 x i64> %v
}

Reproduce:

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

Local llc output:

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

Occurrences (7):

InputFunctionConfig
fixed-vectors-fptosi-vp.54767446bf.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i64_v4f64-mtriple=riscv64 -mattr=+m -O0 -verify-machineinstrs
fixed-vectors-fptosi-vp.5a2872c07a.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i64_v4f64_unmasked-mtriple=riscv32 -mattr=+m,+zvfh,+f -O3 -verify-machineinstrs
fixed-vectors-fptosi-vp.5a2872c07a.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v32i64_v32f64-mtriple=riscv32 -mattr=+m,+zvfh,+f -O3 -verify-machineinstrs
fixed-vectors-fptosi-vp.728d00ff9c.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i64_v4f64_unmasked-mtriple=riscv64 -mattr=+m,+zvfhmin,+zbb -O3 -verify-machineinstrs
fixed-vectors-fptosi-vp.d0c3c5bc3b.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i64_v4f64_unmasked-mtriple=riscv64 -mattr=+m,+zvfhmin -O2 -verify-machineinstrs
fixed-vectors-fptosi-vp.d0c3c5bc3b.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v32i64_v32f64_unmasked-mtriple=riscv64 -mattr=+m,+zvfhmin -O2 -verify-machineinstrs
fixed-vectors-fptosi-vp.fc05908b55.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i64_v4f64-mtriple=riscv64 -mattr=+m,+zvfhmin -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.