fallback: legalize: G_SELECT <N x bf16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_SELECT <N x bf16> M |
| Occurrences: | 4 in 4 configs, 1 test files, 6 more counted only |
| Snippet from: | fixed-vectors-select-bf16.9927139dd3.ll (mutant of fixed-vectors-select-bf16.ll) @select_v2bf16 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfbfmin,+zvfbfmin -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <2 x bfloat> @select_v2bf16(i1 zeroext %c, <2 x bfloat> %a, <2 x bfloat> %b) {
%A = alloca i8, align 1
store i8 poison, ptr %A, align 1
%v = select i1 %c, <2 x bfloat> %a, <2 x bfloat> %b
%B = sdiv i8 16, 16
store i8 %B, ptr %A, align 1
ret <2 x bfloat> %v
}
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfbfmin,+zvfbfmin -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfbfmin,+zvfbfmin -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %11:_(<2 x bf16>) = G_SELECT %18:_(i32), %1:_, %2:_ (in function: select_v2bf16)
warning: Instruction selection used fallback path for select_v2bf16
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-select-bf16.24f5dd9183.ll (mutant of fixed-vectors-select-bf16.ll) | select_v2bf16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zfbfmin,+experimental-zvfbfa,+zvfh -O3 |
| fixed-vectors-select-bf16.352b31dda9.ll (mutant of fixed-vectors-select-bf16.ll) | select_v4bf16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+v,+zfbfmin -O1 |
| fixed-vectors-select-bf16.53a7965640.ll (mutant of fixed-vectors-select-bf16.ll) | select_v4bf16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zfbfmin,+experimental-zvfbfa,+zicond -O3 |
| fixed-vectors-select-bf16.9927139dd3.ll (mutant of fixed-vectors-select-bf16.ll) | select_v2bf16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfbfmin,+zvfbfmin -O1 |
Generated 2026-11-29 14:49 UTC.