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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_FPTOSI <N x i64>,<N x bf16> M
Occurrences:6 in 6 configs, 1 test files, 13 more counted only
Snippet from:fixed-vectors-fp2i.f085c1fc75.ll (mutant of fixed-vectors-fp2i.ll) @fp2si_v2bf16_v2i64 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 -code-model=medium
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @fp2si_v2bf16_v2i64(ptr %x, ptr %y) {
  %A = alloca i1, align 1
  store i1 poison, ptr %A, align 1
  %B = mul i1 true, false
  %a = load <2 x bfloat>, ptr %x, align 4
  %d = fptosi <2 x bfloat> %a to <2 x i64>
  store <2 x i64> %d, ptr %y, align 16
  store i1 %B, ptr %A, align 1
  ret void
}

Reproduce:

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

Local llc output:

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

Occurrences (6):

InputFunctionConfig
fixed-vectors-fp2i.31ce3d3203.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d -O0
fixed-vectors-fp2i.658b2f1b60.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zfa -O2 -code-model=medium
fixed-vectors-fp2i.ed87cca7be.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -O1
fixed-vectors-fp2i.f085c1fc75.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 -code-model=medium
fixed-vectors-fp2i.f46e27bd13.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -O0
fixed-vectors-fp2i.fe5430db74.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+f,+d -O2

Generated 2026-11-29 14:49 UTC.