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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_FPTOSI <N x i32>,<N x f32> M
Occurrences:10 in 9 configs, 2 test files, 50 more counted only
Snippet from:fixed-vectors-fp2i.bb2a880d71.ll (mutant of fixed-vectors-fp2i.ll) @fp2si_v3f32_v3i32 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zvkb -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i32

define void @fp2si_v3f32_v3i32(ptr %x, ptr %y) {
  %LGV1 = load i32, ptr @G.1, align 4
  %a = load <3 x float>, ptr %x, align 16
  %G = getelementptr half, ptr %y, i32 %LGV1
  %d = fptosi <3 x float> %a to <3 x i32>
  store <3 x i32> %d, ptr %G, align 16
  ret void
}

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zvkb -O0 -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,+zvkb -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (10):

InputFunctionConfig
fixed-vectors-fp2i.08c76be337.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1
fixed-vectors-fp2i.10dec529da.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zihintpause -O1
fixed-vectors-fp2i.31ce3d3203.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d -O0
fixed-vectors-fp2i.31ce3d3203.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v3f32_v3i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d -O0
fixed-vectors-fp2i.4327c7099a.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zve64d -O1
fixed-vectors-fp2i.658b2f1b60.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v3f32_v3i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zfa -O2 -code-model=medium
fixed-vectors-fp2i.b2580e9688.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+m,+a -O0
fixed-vectors-fp2i.bb2a880d71.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v3f32_v3i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zvkb -O0
fixed-vectors-fptosi-vp.4151045f68.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f32-mtriple=riscv64 -mattr=+m,+zvfhmin,+zcb -O3 -verify-machineinstrs
fixed-vectors-fptosi-vp.57f6218bf4.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f32_unmasked-mtriple=riscv64 -mattr=+m,+zvfh -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.