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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_SITOFP <N x bf16>,<N x i8> M
Occurrences:4 in 4 configs, 1 test files, 54 more counted only
Snippet from:fixed-vectors-i2fp.7578b78eab.ll (mutant of fixed-vectors-i2fp.ll) @si2fp_v8i8_v8bf16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d,+xtheadba -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.4 = external global <8 x i8>

define void @si2fp_v8i8_v8bf16(ptr %x, ptr %y) {
  %LGV = load <8 x i8>, ptr @G.4, align 8
  %a = load <8 x i8>, ptr %x, align 8
  %B = urem <8 x i8> %a, %LGV
  %d = sitofp <8 x i8> %B to <8 x bfloat>
  store <8 x bfloat> %d, ptr %y, align 16
  ret void
}

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d,+xtheadba -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d,+xtheadba -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %6:_(<8 x bf16>) = G_SITOFP %5:_(<8 x i8>) (in function: si2fp_v8i8_v8bf16)
warning: Instruction selection used fallback path for si2fp_v8i8_v8bf16

Occurrences (4):

InputFunctionConfig
fixed-vectors-i2fp.10bcadf99c.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v8i8_v8bf16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -O3
fixed-vectors-i2fp.69aa78c940.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v2i8_v2bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+f,+d -O3
fixed-vectors-i2fp.7578b78eab.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v8i8_v8bf16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d,+xtheadba -O2
fixed-vectors-i2fp.f086482f9c.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v8i8_v8bf16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 -code-model=medium

Generated 2026-11-29 14:49 UTC.