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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_FPTOSI <N x i64>,<N x f32> M
Occurrences:12 in 10 configs, 2 test files, 38 more counted only
Snippet from:fixed-vectors-fp2i.1c3b7512fe.ll (mutant of fixed-vectors-fp2i.ll) @fp2si_v2f32_v2i64 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O1 -code-model=medium
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <2 x i64>

define void @fp2si_v2f32_v2i64(ptr %x, ptr %y) {
  %a = load <2 x float>, ptr %x, align 8
  %d = fptosi <2 x float> %a to <2 x i64>
  store <2 x i64> %d, ptr %y, align 16
  %B = sub <2 x i64> %d, %d
  store <2 x i64> %B, ptr @G, align 16
  ret void
}

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O1 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O1 -code-model=medium -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 f32>) (in function: fp2si_v2f32_v2i64)
warning: Instruction selection used fallback path for fp2si_v2f32_v2i64

Occurrences (12):

InputFunctionConfig
fixed-vectors-fp2i.19bfea056b.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+f,+d,+xtheadba -O3
fixed-vectors-fp2i.19bfea056b.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+f,+d,+xtheadba -O3
fixed-vectors-fp2i.1c3b7512fe.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O1 -code-model=medium
fixed-vectors-fp2i.47ab11c75b.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O1 -code-model=small
fixed-vectors-fp2i.6005099642.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d,+zicsr -O0 -code-model=medium
fixed-vectors-fp2i.663e892717.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zve64d -O3
fixed-vectors-fp2i.790791f4d8.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+d,+zvbb -O0
fixed-vectors-fp2i.824e68b444.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+f,+d -O3
fixed-vectors-fp2i.f1ed1b47ad.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O0
fixed-vectors-fptosi-vp.694200d40a.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i64_v4f32-mtriple=riscv32 -mattr=+m,+zvfh -O0 -code-model=small -verify-machineinstrs
fixed-vectors-fptosi-vp.694200d40a.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i64_v4f32_unmasked-mtriple=riscv32 -mattr=+m,+zvfh -O0 -code-model=small -verify-machineinstrs
fixed-vectors-fptosi-vp.728d00ff9c.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i64_v4f32_unmasked-mtriple=riscv64 -mattr=+m,+zvfhmin,+zbb -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.