fallback: legalize: G_INSERT_VECTOR_ELT <N x bf16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_INSERT_VECTOR_ELT <N x bf16> M |
| Occurrences: | 3 in 3 configs, 2 test files, 6 more counted only |
| Snippet from: | fixed-vectors-scalarized.12d9ad7d83.ll (mutant of fixed-vectors-scalarized.ll) @fpext_v8f16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+f -O0 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global bfloat
@G.1 = external global <8 x bfloat>
@G.2 = external global i64
define <8 x float> @fpext_v8f16(<8 x bfloat> %x) {
%B = lshr i64 -1, -1
%LGV = load bfloat, ptr @G, align 2
%y = fpext <8 x bfloat> %x to <8 x float>
%I = insertelement <8 x bfloat> %x, bfloat %LGV, i128 0
store <8 x bfloat> %I, ptr @G.1, align 16
store i64 %B, ptr @G.2, align 4
ret <8 x float> %y
}
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+f -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+f -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %16:_(<8 x bf16>) = G_INSERT_VECTOR_ELT %0:_, %13:_(bf16), %17:_(i64) (in function: fpext_v8f16)
warning: Instruction selection used fallback path for fpext_v8f16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-interleave-store.4b57f35cad.ll (mutant of fixed-vectors-interleave-store.ll) | vector_interleave_store_v16bf16_v8bf16 | -mtriple=riscv64 -mattr=+v,+zvfh,+zvfbfmin,+zbs -O0 -verify-machineinstrs |
| fixed-vectors-interleave-store.a7da320ede.ll (mutant of fixed-vectors-interleave-store.ll) | vector_interleave_store_v8bf16_v4bf16 | -mtriple=riscv32 -mattr=+v,+zvfh,+zvfbfmin -O2 -code-model=small -verify-machineinstrs |
| fixed-vectors-scalarized.12d9ad7d83.ll (mutant of fixed-vectors-scalarized.ll) | fpext_v8f16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+f -O0 |
Generated 2026-11-29 14:49 UTC.