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

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

Snippet:

@G.3 = external global i8

define void @fp2si_v8f32_v8i64(ptr %x, ptr %y) {
  %LGV2 = load i8, ptr @G.3, align 1
  %G = getelementptr i128, ptr %x, i8 %LGV2
  %a = load <8 x float>, ptr %x, align 32
  %d = fptosi <8 x float> %a to <8 x i64>
  store <8 x i64> %d, ptr %G, align 64
  ret void
}

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
fixed-vectors-fp2i.2243162e01.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2f32_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+f,+d,+zba -O2
fixed-vectors-fp2i.8b3949011b.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d,+zfhmin -O2
fixed-vectors-fp2i.9e60e6742f.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1
fixed-vectors-fp2i.c11e07ccdf.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v8f32_v8i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+f,+d -O0 -code-model=small
fixed-vectors-fptosi-vp.8bbcefc973.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i64_v4f32_unmasked-mtriple=riscv64 -mattr=+zvfh -O0 -code-model=medium -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.