fallback: legalize: G_EXTRACT_SUBVECTOR <N x bf16>,<N x bf16>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_EXTRACT_SUBVECTOR <N x bf16>,<N x bf16> M |
| Occurrences: | 3 in 3 configs, 1 test files, 23 more counted only |
| Snippet from: | fixed-vectors-extract-subvector.0f8d0d1e15.ll (mutant of fixed-vectors-extract-subvector.ll) @extract_v2bf16_v4bf16_0 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin -O0 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i64
define void @extract_v2bf16_v4bf16_0(ptr %x, ptr %y) {
%LGV = load i64, ptr @G, align 4
%G = getelementptr ptr, ptr %y, i64 %LGV
%a = load <4 x bfloat>, ptr %G, align 8
%c = call <2 x bfloat> @llvm.vector.extract.v2bf16.v4bf16(<4 x bfloat> %a, i64 0)
store <2 x bfloat> %c, ptr %y, align 4
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x bfloat> @llvm.vector.extract.v2bf16.v4bf16(<4 x bfloat>, i64 immarg) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %9:_(<2 x bf16>) = G_EXTRACT_SUBVECTOR %8:_(<4 x bf16>), 0 (in function: extract_v2bf16_v4bf16_0)
warning: Instruction selection used fallback path for extract_v2bf16_v4bf16_0
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-extract-subvector.0f8d0d1e15.ll (mutant of fixed-vectors-extract-subvector.ll) | extract_v2bf16_v4bf16_0 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin -O0 |
| fixed-vectors-extract-subvector.5234de830d.ll (mutant of fixed-vectors-extract-subvector.ll) | extract_v2bf16_v4bf16_2 | -mtriple=riscv64 -riscv-v-vector-bits-max=128 -verify-machineinstrs -mattr=+m,+v,+zvfh,+zvfbfmin -O1 |
| fixed-vectors-extract-subvector.918c601b77.ll (mutant of fixed-vectors-extract-subvector.ll) | extract_v2bf16_v4bf16_0 | -mtriple=riscv64 -riscv-v-vector-bits-max=128 -verify-machineinstrs -mattr=+m,+v,+zvfh,+zvfbfmin,+zfhmin,+c -O1 |
Generated 2026-11-29 14:49 UTC.