fallback: legalize: G_SELECT <N x bf16>,<N x i1>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_SELECT <N x bf16>,<N x i1> M |
| Occurrences: | 5 in 3 configs, 2 test files, 4 more counted only |
| Snippet from: | fixed-vectors-vselect-vp-bf16.baac98b76d.ll (mutant of fixed-vectors-vselect-vp-bf16.ll) @select_v2bf16 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global half
@G.1 = external global i1
define <2 x bfloat> @select_v2bf16(<2 x i1> %a, <2 x bfloat> %b, <2 x bfloat> %c, i32 zeroext %evl) {
%LGV = load half, ptr @G, align 2
%v = select <2 x i1> %a, <2 x bfloat> %b, <2 x bfloat> %c
%C = fcmp ult half %LGV, +inf
store i1 %C, ptr @G.1, align 1
ret <2 x bfloat> %v
}
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %13:_(<2 x bf16>) = G_SELECT %0:_(<2 x i1>), %1:_, %2:_ (in function: select_v2bf16)
warning: Instruction selection used fallback path for select_v2bf16
Occurrences (5):
| Input | Function | Config |
|---|
| fixed-vectors-select-bf16.482c2460d8.ll (mutant of fixed-vectors-select-bf16.ll) | vselect_vfpzero_v8bf16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+v,+zfbfmin,+zbs -O0 |
| fixed-vectors-vselect-vp-bf16.2e04b70729.ll (mutant of fixed-vectors-vselect-vp-bf16.ll) | select_v2bf16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+m,+zvfbfmin -O1 |
| fixed-vectors-vselect-vp-bf16.2e04b70729.ll (mutant of fixed-vectors-vselect-vp-bf16.ll) | select_v4bf16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+m,+zvfbfmin -O1 |
| fixed-vectors-vselect-vp-bf16.baac98b76d.ll (mutant of fixed-vectors-vselect-vp-bf16.ll) | select_v2bf16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v -O1 |
| fixed-vectors-vselect-vp-bf16.baac98b76d.ll (mutant of fixed-vectors-vselect-vp-bf16.ll) | select_v8bf16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+v -O1 |
Generated 2026-11-29 14:49 UTC.