fallback: legalize: G_INSERT_VECTOR_ELT <N x bf16>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_INSERT_VECTOR_ELT <N x bf16> M |
| Occurrences: | 3 in 3 configs, 3 test files, 10 more counted only |
| Snippet from: | fixed-vectors-fp2i.55af89db19.ll (mutant of fixed-vectors-fp2i.ll) @fp2ui_v64bf16_v64i16 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zve32x -O1 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global bfloat
@G.1 = external global i128
define void @fp2ui_v64bf16_v64i16(ptr %x, ptr %y) {
%LGV1 = load i128, ptr @G.1, align 4
%LGV = load bfloat, ptr @G, align 2
%a = load <64 x bfloat>, ptr %x, align 128
%d = fptoui <64 x bfloat> %a to <64 x i16>
%I = insertelement <64 x bfloat> %a, bfloat %LGV, i128 %LGV1
store <64 x i16> %d, ptr %y, align 128
store <64 x bfloat> %I, ptr poison, align 128
ret void
}
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zve32x -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zve32x -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %8:_(<64 x bf16>) = G_INSERT_VECTOR_ELT %6:_, %4:_(bf16), %9:_(i32) (in function: fp2ui_v64bf16_v64i16)
warning: Instruction selection used fallback path for fp2ui_v64bf16_v64i16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-fmaximum.39443c21ef.ll (mutant of fixed-vectors-fmaximum.ll) | vfmax_v4bf16_vv | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfbfmin,+v -O3 |
| fixed-vectors-fp2i.55af89db19.ll (mutant of fixed-vectors-fp2i.ll) | fp2ui_v64bf16_v64i16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zve32x -O1 |
| fixed-vectors-insert-subvector.878afa33b4.ll (mutant of fixed-vectors-insert-subvector.ll) | insert_nxv8bf16_v2bf16_0 | -mtriple=riscv32 -riscv-v-vector-bits-max=128 -verify-machineinstrs -mattr=+m,+v,+zvfhmin,+zvfbfmin -O3 |
Generated 2026-11-29 14:49 UTC.