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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_UITOFP <N x bf16>,<N x i8> M
Occurrences:10 in 10 configs, 1 test files, 36 more counted only
Snippet from:fixed-vectors-i2fp.42f335aabe.ll (mutant of fixed-vectors-i2fp.ll) @ui2fp_v8i8_v8bf16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zfhmin,+m -O1 -code-model=small
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define void @ui2fp_v8i8_v8bf16(ptr %x, ptr %y) {
  %LGV = load i1, ptr @G, align 1
  %G = getelementptr ptr, ptr %x, i1 %LGV
  %a = load <8 x i8>, ptr %x, align 8
  %d = uitofp <8 x i8> %a to <8 x bfloat>
  store <8 x bfloat> %d, ptr %G, align 16
  ret void
}

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zfhmin,+m -O1 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zfhmin,+m -O1 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (10):

InputFunctionConfig
fixed-vectors-i2fp.178de4c147.ll (mutant of fixed-vectors-i2fp.ll)ui2fp_v4i8_v4bf16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O1 -code-model=small
fixed-vectors-i2fp.42f335aabe.ll (mutant of fixed-vectors-i2fp.ll)ui2fp_v8i8_v8bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zfhmin,+m -O1 -code-model=small
fixed-vectors-i2fp.45c5931cd8.ll (mutant of fixed-vectors-i2fp.ll)ui2fp_v2i8_v2bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+f,+d -O2
fixed-vectors-i2fp.4c0f90ac60.ll (mutant of fixed-vectors-i2fp.ll)ui2fp_v4i8_v4bf16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O2
fixed-vectors-i2fp.5d920976e6.ll (mutant of fixed-vectors-i2fp.ll)ui2fp_v2i8_v2bf16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+xtheadba -O0
fixed-vectors-i2fp.60c3de3c11.ll (mutant of fixed-vectors-i2fp.ll)ui2fp_v4i8_v4bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+zbb -O1
fixed-vectors-i2fp.6e7d9bb8d6.ll (mutant of fixed-vectors-i2fp.ll)ui2fp_v8i8_v8bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zbs -O3
fixed-vectors-i2fp.a13d47cf94.ll (mutant of fixed-vectors-i2fp.ll)ui2fp_v4i8_v4bf16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+a,+zfhmin -O0
fixed-vectors-i2fp.c0dec0766d.ll (mutant of fixed-vectors-i2fp.ll)ui2fp_v2i8_v2bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+experimental-zvfbfa,+f,+d -O3
fixed-vectors-i2fp.ed31ea2d0f.ll (mutant of fixed-vectors-i2fp.ll)ui2fp_v4i8_v4bf16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfbfmin,+f,+d,+zfhmin -O0

Generated 2026-11-29 14:49 UTC.