fallback: legalize: G_EXTRACT_SUBVECTOR <N x f16>,<N x f16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_EXTRACT_SUBVECTOR <N x f16>,<N x f16> M |
| Occurrences: | 3 in 3 configs, 1 test files, 23 more counted only |
| Snippet from: | fixed-vectors-extract-subvector.2412beb3b8.ll (mutant of fixed-vectors-extract-subvector.ll) @extract_v2f16_v4f16_0 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zvfhmin,+zvfbfmin -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define void @extract_v2f16_v4f16_0(ptr %x, ptr %y) {
%a = load <4 x half>, ptr %x, align 8
%c = call <2 x half> @llvm.vector.extract.v2f16.v4f16(<4 x half> %a, i64 0)
store <2 x half> %c, ptr %y, align 4
%G = getelementptr ptr, ptr %x, i1 true
store ptr %G, ptr poison, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x half> @llvm.vector.extract.v2f16.v4f16(<4 x half>, i64 immarg) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zvfhmin,+zvfbfmin -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zvfhmin,+zvfbfmin -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %3:_(<2 x f16>) = G_EXTRACT_SUBVECTOR %2:_(<4 x f16>), 0 (in function: extract_v2f16_v4f16_0)
warning: Instruction selection used fallback path for extract_v2f16_v4f16_0
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-extract-subvector.2412beb3b8.ll (mutant of fixed-vectors-extract-subvector.ll) | extract_v2f16_v4f16_0 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zvfhmin,+zvfbfmin -O1 |
| fixed-vectors-extract-subvector.48442bd0eb.ll (mutant of fixed-vectors-extract-subvector.ll) | extract_v2f16_v4f16_0 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zvfhmin,+zvfbfmin -O3 |
| fixed-vectors-extract-subvector.a6d8e8dbb6.ll (mutant of fixed-vectors-extract-subvector.ll) | extract_v2f16_v4f16_0 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zvfh,+zvfbfmin,+f -O0 -code-model=small |
Generated 2026-11-29 14:49 UTC.