fallback: legalize: G_INSERT_VECTOR_ELT <N x f32>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_INSERT_VECTOR_ELT <N x f32> M
Occurrences:5 in 5 configs, 5 test files, 685 more counted only
Snippet from:calling-conv-ilp32.03d6992f49.ll (mutant of calling-conv-ilp32.ll) @callee_tiny_scalar_ret via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -frame-pointer=all -mattr=+f -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

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

; Function Attrs: nounwind
define float @callee_tiny_scalar_ret() #0 {
  %A = alloca <4 x float>, align 16
  store <4 x float> poison, ptr %A, align 16
  %LGV1 = load <4 x float>, ptr @G.1, align 16
  %LGV = load <4 x float>, ptr @G, align 16
  %B = fsub <4 x float> %LGV, %LGV1
  store <4 x float> %B, ptr @G.2, align 16
  %I = insertelement <4 x float> %B, float 4.200000e+01, i64 -1
  store <4 x float> %I, ptr %A, align 16
  ret float 1.000000e+00
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -frame-pointer=all -mattr=+f -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -frame-pointer=all -mattr=+f -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
attributes.8a1730fa45.ll (mutant of attributes.ll)addi-mtriple=riscv32 -mattr=+zkt,+zfh,+xtheadba -O1 -verify-machineinstrs
calling-conv-ilp32.03d6992f49.ll (mutant of calling-conv-ilp32.ll)callee_tiny_scalar_ret-mtriple=riscv32 -verify-machineinstrs -frame-pointer=all -mattr=+f -O0
fixed-vectors-fp-buildvec.ad73d4eefa.ll (mutant of fixed-vectors-fp-buildvec.ll)buildvec_v32f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfhmin,+f,+d,+zvkb -O0
fixed-vectors-llround.95f9a0573b.ll (mutant of fixed-vectors-llround.ll)llround_v3i64_v3f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O3
wide-scalar-shift-by-byte-multiple-legalization.7405fbde31.ll (mutant of wide-scalar-shift-by-byte-multiple-legalization.ll)ashr_16bytes-mtriple=riscv32 -verify-machineinstrs -O0

Generated 2026-11-29 14:49 UTC.