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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_FPTOUI <N x i8>,<N x bf16> M
Occurrences:7 in 7 configs, 1 test files, 19 more counted only
Snippet from:fixed-vectors-fp2i.b8f4e7dd04.ll (mutant of fixed-vectors-fp2i.ll) @fp2ui_v2bf16_v2i8 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+f,+d,+zicsr -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i32

define void @fp2ui_v2bf16_v2i8(ptr %x, ptr %y) {
  %a = load <2 x bfloat>, ptr %x, align 4
  %d = fptoui <2 x bfloat> %a to <2 x i8>
  %B = mul i32 42, 65536
  store <2 x i8> %d, ptr %y, align 2
  store i32 %B, ptr @G.1, align 4
  ret void
}

Reproduce:

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

Local llc output:

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

Occurrences (7):

InputFunctionConfig
fixed-vectors-fp2i.5aad727f44.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2bf16_v2i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -O1 -code-model=small
fixed-vectors-fp2i.5eda28d725.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2bf16_v2i8-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -O0 -code-model=medium
fixed-vectors-fp2i.663e892717.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2bf16_v2i8-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zve64d -O3
fixed-vectors-fp2i.7692ec7b4a.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2bf16_v2i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zve64d,+zfhmin -O1
fixed-vectors-fp2i.a47535da1e.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2bf16_v2i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O0 -code-model=small
fixed-vectors-fp2i.b8f4e7dd04.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2bf16_v2i8-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+f,+d,+zicsr -O1
fixed-vectors-fp2i.fd89f1b6c3.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2bf16_v2i8-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+m -O3

Generated 2026-11-29 14:49 UTC.