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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_FPTOSI <N x i32>,<N x f32> M
Occurrences:11 in 9 configs, 2 test files, 57 more counted only
Snippet from:fixed-vectors-fp2i.f31fc1c04d.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,+zve32x,+m -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @fp2si_v3f32_v3i32(ptr %x, ptr %y) {
  %a = load <3 x float>, ptr %x, align 16
  %G = getelementptr ptr, ptr %y, i16 0
  %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,+zve32x,+m -O1 -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,+zve32x,+m -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (11):

InputFunctionConfig
fixed-vectors-fp2i.0dd2233c44.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O2
fixed-vectors-fp2i.13aed327ae.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O2
fixed-vectors-fp2i.785aee9235.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zvkb,+zfh -O2
fixed-vectors-fp2i.bbcba19cf2.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+f,+d,+zba -O1 -code-model=medium
fixed-vectors-fp2i.e4b9304a4a.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+d,+zve32x -O2
fixed-vectors-fp2i.e816cd7321.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zbb -O0
fixed-vectors-fp2i.f31fc1c04d.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v3f32_v3i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zve32x,+m -O1
fixed-vectors-fp2i.f7b3dfde6a.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O3
fixed-vectors-fp2i.f7b3dfde6a.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v3f32_v3i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O3
fixed-vectors-fptosi-vp.3e1b6e6688.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f32-mtriple=riscv32 -mattr=+m,+zvfh -O0 -verify-machineinstrs
fixed-vectors-fptosi-vp.fec15ec99d.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f32-mtriple=riscv64 -mattr=+m,+zvfh,+zve32x -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.