fallback: legalize: G_INSERT_VECTOR_ELT <N x i128>

Run:explore-db12fc36f6-20261127-115111
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:smulh.fd35facdf0.ll (mutant of smulh.ll) @smulh_v2i128 via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+c,+zcb -O0 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define <2 x i128> @smulh_v2i128(<2 x i128> %x, <2 x i128> %y) #0 {
  %r = call <2 x i128> @llvm.smulh.v2i128(<2 x i128> %x, <2 x i128> %y)
  %B = udiv <2 x i128> %y, %r
  store <2 x i128> %B, ptr poison, align 32
  ret <2 x i128> %r
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i128> @llvm.smulh.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 -mattr=+m,+c,+zcb -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+c,+zcb -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %101:_(<2 x i128>) = G_INSERT_VECTOR_ELT %55:_, %100:_(i128), %58:_(i32) (in function: smulh_v2i128)
warning: Instruction selection used fallback path for smulh_v2i128

Occurrences (3):

InputFunctionConfig
clmulh.5078bbe27f.ll (mutant of clmulh.ll)commutative_clmulh_v2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m -O0 -code-model=medium
smulh.fd35facdf0.ll (mutant of smulh.ll)smulh_v2i128-mtriple=riscv32 -mattr=+m,+c,+zcb -O0 -verify-machineinstrs
umulh.3063de89d4.ll (mutant of umulh.ll)umulh_v2i128-mtriple=riscv32 -mattr=+m,+zvfh -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.