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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_FPTOSI <N x i16>,<N x bf16> M
Occurrences:4 in 4 configs, 1 test files, 13 more counted only
Snippet from:fixed-vectors-fp2i.0a371059e9.ll (mutant of fixed-vectors-fp2i.ll) @fp2si_v64bf16_v64i16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+zicond -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global float

define void @fp2si_v64bf16_v64i16(ptr %x, ptr %y) {
  %B = fsub float 0.000000e+00, f0x7F7FFFFF
  %a = load <64 x bfloat>, ptr %x, align 128
  %d = fptosi <64 x bfloat> %a to <64 x i16>
  store <64 x i16> %d, ptr %y, align 128
  store float %B, ptr @G, align 4
  ret void
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %6:_(<64 x i16>) = G_FPTOSI %5:_(<64 x bf16>) (in function: fp2si_v64bf16_v64i16)
warning: Instruction selection used fallback path for fp2si_v64bf16_v64i16

Occurrences (4):

InputFunctionConfig
fixed-vectors-fp2i.0a371059e9.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v64bf16_v64i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+zicond -O2
fixed-vectors-fp2i.12e29e8744.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v64bf16_v64i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O0 -code-model=medium
fixed-vectors-fp2i.3786ce0964.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v64bf16_v64i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d -O1
fixed-vectors-fp2i.aca78519da.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v64bf16_v64i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+m -O3

Generated 2026-11-29 14:49 UTC.