fallback: legalize: G_INSERT_VECTOR_ELT <N x f32>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_INSERT_VECTOR_ELT <N x f32> M
Occurrences:4 in 4 configs, 4 test files, 682 more counted only
Snippet from:attributes-qc.0bf6450469.ll (mutant of attributes-qc.ll) @addi via llvm-extract
Config:-mtriple=riscv32 -mattr=+xqcicsr -O3 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <4 x float>
@G.1 = external global bfloat

define i32 @addi(i32 %a) {
  %LGV1 = load bfloat, ptr @G.1, align 2
  %C = fcmp ord bfloat %LGV1, +inf
  %A = alloca <4 x float>, align 16
  store <4 x float> poison, ptr %A, align 16
  %LGV = load <4 x float>, ptr @G, align 16
  %I = insertelement <4 x float> %LGV, float 0.000000e+00, i32 %a
  %1 = add i32 %a, 1
  store <4 x float> %I, ptr %A, align 16
  store i1 %C, ptr %A, align 1
  ret i32 %1
}

Reproduce:

llc -mtriple=riscv32 -mattr=+xqcicsr -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+xqcicsr -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %9:_(<4 x f32>) = G_INSERT_VECTOR_ELT %7:_, %10:_(f32), %0:_(i32) (in function: addi)
warning: Instruction selection used fallback path for addi

Occurrences (4):

InputFunctionConfig
attributes-qc.0bf6450469.ll (mutant of attributes-qc.ll)addi-mtriple=riscv32 -mattr=+xqcicsr -O3 -verify-machineinstrs
memcpy-inline.a4c6d5cfcd.ll (mutant of memcpy-inline.ll)unaligned_memcpy8-mtriple=riscv64 -mattr=+v -O2 -verify-machineinstrs
ucmp.94d8b78fbc.ll (mutant of ucmp.ll)ucmp.32.32-mtriple=riscv32 -mattr=+c -O2 -verify-machineinstrs
vfredusum.2a7ae46d07.ll (mutant of vfredusum.ll)intrinsic_vfredusum_vs_nxv4f16_nxv8f16_nxv4f16-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32d -mattr=+v,+zvfh -O2

Generated 2026-11-29 14:49 UTC.