fallback: legalize: G_INSERT_VECTOR_ELT <N x i128>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_INSERT_VECTOR_ELT <N x i128> M
Occurrences:3 in 3 configs, 3 test files, 3 more counted only
Snippet from:umulh.67482bb82c.ll (mutant of umulh.ll) @umulh_v2i128 via llvm-extract
Config:-mtriple=riscv32 -O2 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i128
@G.3 = external global <2 x i128>

; Function Attrs: nounwind
define <2 x i128> @umulh_v2i128(<2 x i128> %x, <2 x i128> %y) #0 {
  %LGV = load i128, ptr @G.2, align 4
  %r = call <2 x i128> @llvm.umulh.v2i128(<2 x i128> %x, <2 x i128> %y)
  %I = insertelement <2 x i128> %x, i128 %LGV, i16 0
  store <2 x i128> %I, ptr @G.3, align 32
  ret <2 x i128> %r
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i128> @llvm.umulh.v2i128(<2 x i128>, <2 x i128>) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %8:_(<2 x i128>) = G_INSERT_VECTOR_ELT %0:_, %5:_(i128), %9:_(i32) (in function: umulh_v2i128)
warning: Instruction selection used fallback path for umulh_v2i128

Occurrences (3):

InputFunctionConfig
clmulh.60a953d1f5.ll (mutant of clmulh.ll)commutative_clmulh_v2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zvbc -O0 -code-model=medium
fpclamptosat_vec.0d9bc4e8f9.ll (mutant of fpclamptosat_vec.ll)utest_f32i64_mm-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -riscv-v-vector-bits-min=0 -mattr=+f,+d,+v -O3
umulh.67482bb82c.ll (mutant of umulh.ll)umulh_v2i128-mtriple=riscv32 -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.