fallback: legalize: G_INSERT_VECTOR_ELT <N x bf16>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_INSERT_VECTOR_ELT <N x bf16> M |
| Occurrences: | 3 in 3 configs, 3 test files, 11 more counted only |
| Snippet from: | fixed-vectors-i2fp.4c0f90ac60.ll (mutant of fixed-vectors-i2fp.ll) @ui2fp_v64i16_v64bf16 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O2 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global bfloat
@G.1 = external global <64 x bfloat>
define void @ui2fp_v64i16_v64bf16(ptr %x, ptr %y) {
%LGV = load bfloat, ptr @G, align 2
%a = load <64 x i16>, ptr %x, align 128
%d = uitofp <64 x i16> %a to <64 x bfloat>
store <64 x bfloat> %d, ptr %y, align 128
%I = insertelement <64 x bfloat> %d, bfloat %LGV, i64 0
store <64 x bfloat> %I, ptr @G.1, align 128
ret void
}
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %6:_(<64 x bf16>) = G_INSERT_VECTOR_ELT %5:_, %2:_(bf16), %7:_(i32) (in function: ui2fp_v64i16_v64bf16)
warning: Instruction selection used fallback path for ui2fp_v64i16_v64bf16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-extract-subvector.3de3cad76a.ll (mutant of fixed-vectors-extract-subvector.ll) | extract_v2bf16_v4bf16_2 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zvfhmin,+zvfbfmin,+c,+zicsr -O1 |
| fixed-vectors-fmaximumnum.7bf2a3baad.ll (mutant of fixed-vectors-fmaximumnum.ll) | max_v2bf16 | --mtriple=riscv64-linux-gnu -mattr=+zvfh -O3 -verify-machineinstrs |
| fixed-vectors-i2fp.4c0f90ac60.ll (mutant of fixed-vectors-i2fp.ll) | ui2fp_v64i16_v64bf16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d -O2 |
Generated 2026-11-29 14:49 UTC.