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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_FPTOSI <N x i64>,<N x bf16> M
Occurrences:5 in 5 configs, 1 test files, 18 more counted only
Snippet from:fixed-vectors-fp2i.1adc2e152b.ll (mutant of fixed-vectors-fp2i.ll) @fp2si_v2bf16_v2i64 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zbb,+zihintpause -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @fp2si_v2bf16_v2i64(ptr %x, ptr %y) {
  %a = load <2 x bfloat>, ptr %x, align 4
  %B = fmul <2 x bfloat> %a, %a
  %d = fptosi <2 x bfloat> %B to <2 x i64>
  store <2 x i64> %d, ptr %y, align 16
  ret void
}

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zbb,+zihintpause -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zbb,+zihintpause -O2 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
fixed-vectors-fp2i.0e5149e928.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zbb -O1
fixed-vectors-fp2i.1adc2e152b.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zbb,+zihintpause -O2
fixed-vectors-fp2i.403e767736.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+f,+d,+zbkb -O1
fixed-vectors-fp2i.7692ec7b4a.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zve64d,+zfhmin -O1
fixed-vectors-fp2i.8f6edd8204.ll (mutant of fixed-vectors-fp2i.ll)fp2si_v2bf16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O0 -code-model=small

Generated 2026-11-29 14:49 UTC.