fallback: legalize: G_EXTRACT_VECTOR_ELT <N x bf16>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_EXTRACT_VECTOR_ELT <N x bf16> M |
| Occurrences: | 3 in 3 configs, 2 test files, 61 more counted only |
| Snippet from: | fixed-vectors-extract.be0101bde5.ll (mutant of fixed-vectors-extract.ll) @extractelt_v16bf16 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zfbfmin,+zvfbfmin,+f,+d,+m -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global half
@G.1 = external global i1
; Function Attrs: nounwind
define bfloat @extractelt_v16bf16(<16 x bfloat> %a) #0 {
%LGV = load half, ptr @G, align 2
%b = extractelement <16 x bfloat> %a, i32 7
%C = fcmp uno half %LGV, 0.000000e+00
store i1 %C, ptr @G.1, align 1
ret bfloat %b
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zfbfmin,+zvfbfmin,+f,+d,+m -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zfbfmin,+zvfbfmin,+f,+d,+m -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %4:_(bf16) = G_EXTRACT_VECTOR_ELT %0:_(<16 x bf16>), %5:_(i64) (in function: extractelt_v16bf16)
warning: Instruction selection used fallback path for extractelt_v16bf16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-extract.2a754f62f0.ll (mutant of fixed-vectors-extract.ll) | extractelt_v16bf16_idx | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zfbfmin,+zvfbfmin,+f,+d -O1 |
| fixed-vectors-extract.be0101bde5.ll (mutant of fixed-vectors-extract.ll) | extractelt_v16bf16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zfbfmin,+zvfbfmin,+f,+d,+m -O3 |
| fixed-vectors-masked-store-fp.42e607bef6.ll (mutant of fixed-vectors-masked-store-fp.ll) | masked_store_v64bf16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfhmin -O2 |
Generated 2026-11-29 14:49 UTC.