fallback: legalize: G_SELECT <N x bf16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_SELECT <N x bf16> M
Occurrences:3 in 2 configs, 1 test files, 19 more counted only
Snippet from:fixed-vectors-select-bf16.157be7211d.ll (mutant of fixed-vectors-select-bf16.ll) @select_v4bf16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfbfmin -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global float

define <4 x bfloat> @select_v4bf16(i1 zeroext %c, <4 x bfloat> %a, <4 x bfloat> %b) {
  %B = frem float 1.000000e+00, 4.200000e+01
  %v = select i1 %c, <4 x bfloat> %a, <4 x bfloat> %b
  store float %B, ptr @G, align 4
  ret <4 x bfloat> %v
}

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfbfmin -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfbfmin -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %17:_(<4 x bf16>) = G_SELECT %29:_(i32), %1:_, %2:_ (in function: select_v4bf16)
warning: Instruction selection used fallback path for select_v4bf16

Occurrences (3):

InputFunctionConfig
fixed-vectors-select-bf16.157be7211d.ll (mutant of fixed-vectors-select-bf16.ll)select_v4bf16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfbfmin -O2
fixed-vectors-select-bf16.5967aaa0b4.ll (mutant of fixed-vectors-select-bf16.ll)select_v4bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfbfmin,+zvfbfmin,+zvbb -O1
fixed-vectors-select-bf16.5967aaa0b4.ll (mutant of fixed-vectors-select-bf16.ll)select_v16bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfbfmin,+zvfbfmin,+zvbb -O1

Generated 2026-11-29 14:49 UTC.