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

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

Snippet:

define void @fp2si_v2bf16_v2i8(ptr %x, ptr %y) {
  %a = load <2 x bfloat>, ptr %x, align 4
  %d = fptosi <2 x bfloat> %a to <2 x i8>
  store <2 x i8> %d, ptr %y, align 2
  %C = fcmp olt half 5.960460e-08, 4.200000e+01
  store i1 %C, ptr poison, align 1
  ret void
}

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
fixed-vectors-fp2i.10dec529da.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i8-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zihintpause -O1
fixed-vectors-fp2i.1c542b4b3d.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O3 -code-model=medium
fixed-vectors-fp2i.754378cf21.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -O1
fixed-vectors-fp2i.def0425dd7.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i8-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+a -O0

Generated 2026-11-29 14:49 UTC.