fallback: legalize: G_INSERT_VECTOR_ELT <N x f32>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_INSERT_VECTOR_ELT <N x f32> M
Occurrences:6 in 6 configs, 6 test files, 1062 more counted only
Snippet from:fixed-vectors-fminimumnum.2adce9d13d.ll (mutant of fixed-vectors-fminimumnum.ll) @min_v5f32 via llvm-extract
Config:--mtriple=riscv64-linux-gnu -mattr=+zvfh -O0 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global float
@G.1 = external global i16

define <5 x float> @min_v5f32(<5 x float> %a, <5 x float> %b) {
entry:
  %LGV1 = load i16, ptr @G.1, align 2
  %LGV = load float, ptr @G, align 4
  %I = insertelement <5 x float> %b, float %LGV, i16 %LGV1
  ret <5 x float> %I
}

Reproduce:

llc --mtriple=riscv64-linux-gnu -mattr=+zvfh -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc --mtriple=riscv64-linux-gnu -mattr=+zvfh -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %19:_(<5 x f32>) = G_INSERT_VECTOR_ELT %1:_, %17:_(f32), %20:_(i64) (in function: min_v5f32)
warning: Instruction selection used fallback path for min_v5f32

Occurrences (6):

InputFunctionConfig
attributes-sifive.a86d896ae3.ll (mutant of attributes-sifive.ll)addi-mtriple=riscv32 -mattr=+xsfmm128t -O2 -verify-machineinstrs
attributes.ac33a41831.ll (mutant of attributes.ll)addi-mtriple=riscv32 -mattr=+f,+zicond,+zve64d -O2 -verify-machineinstrs
fixed-vectors-fminimumnum.2adce9d13d.ll (mutant of fixed-vectors-fminimumnum.ll)min_v5f32--mtriple=riscv64-linux-gnu -mattr=+zvfh -O0 -verify-machineinstrs
rv64zbb.a60686383c.ll (mutant of rv64zbb.ll)sub_if_uge_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O2
vector-deinterleave-fixed.11143932d1.ll (mutant of vector-deinterleave-fixed.ll)vector_deinterleave5_v2i16_v10i16-mtriple=riscv64 -mattr=+m,+zvfh,+experimental-zvzip -O1 -verify-machineinstrs
vscale-add-fold-multi-use.c45985c9fb.ll (mutant of vscale-add-fold-multi-use.ll)load_nxv48i32-mtriple=riscv64 -mattr=+m,+v,+f,+d -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.