fallback: select: G_INSERT_VECTOR_ELT <vscale x N x bf16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:select: G_INSERT_VECTOR_ELT <vscale x N x bf16> M
Occurrences:3 in 3 configs, 3 test files, 41 more counted only
Snippet from:vfneg-vp.1e67fc715b.ll (mutant of vfneg-vp.ll) @vfneg_vv_nxv2bf16_unmasked via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfhmin,+zvfhmin,+zvfbfmin,+v -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i32

define <vscale x 2 x bfloat> @vfneg_vv_nxv2bf16_unmasked(<vscale x 2 x bfloat> %va, i32 zeroext %evl) {
  %LGV = load i32, ptr @G.2, align 4
  %I = insertelement <vscale x 2 x bfloat> %va, bfloat 9.183550e-41, i32 %LGV
  ret <vscale x 2 x bfloat> %I
}

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfhmin,+zvfhmin,+zvfbfmin,+v -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfhmin,+zvfhmin,+zvfbfmin,+v -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: cannot select: %4:vrb(<vscale x 2 x bf16>) = G_INSERT_VECTOR_ELT %0:vrb, %5:gprb(bf16), %2:gprb(i32) (in function: vfneg_vv_nxv2bf16_unmasked)
warning: Instruction selection used fallback path for vfneg_vv_nxv2bf16_unmasked

Occurrences (3):

InputFunctionConfig
vfmul-bf.e52666a333.ll (mutant of vfmul-bf.ll)intrinsic_vfmul_vv_nxv32bf16_nxv32bf16_nxv32bf16-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+v,+experimental-zvfbfa -O3
vfneg-vp.1e67fc715b.ll (mutant of vfneg-vp.ll)vfneg_vv_nxv2bf16_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfhmin,+zvfhmin,+zvfbfmin,+v -O3
vfwmaccbf16.69a442c38e.ll (mutant of vfwmaccbf16.ll)intrinsic_vfwmaccbf16_vv_nxv4f32_nxv4bf16_nxv4bf16-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32d -mattr=+v,+zfbfmin,+zvfbfwma -O2

Generated 2026-11-29 14:49 UTC.