fallback: legalize: G_ADD <N x i128>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_ADD <N x i128> M
Occurrences:3 in 3 configs, 3 test files, 2 more counted only
Snippet from:fixed-vectors-shuffle-exact-vlen.933cbdaf41.ll (mutant of fixed-vectors-shuffle-exact-vlen.ll) @shuffle_i128_ldst via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: vscale_range(2,2)
define void @shuffle_i128_ldst(ptr %p) #0 {
  %A = alloca <4 x i128>, align 64
  store <4 x i128> poison, ptr %A, align 64
  %a = load <4 x i128>, ptr %p, align 64
  %res = shufflevector <4 x i128> %a, <4 x i128> poison, <4 x i32> <i32 0, i32 0, i32 3, i32 2>
  store <4 x i128> %res, ptr %p, align 64
  %B = add <4 x i128> %a, splat (i128 42)
  store <4 x i128> %B, ptr %A, align 64
  ret void
}

attributes #0 = { vscale_range(2,2) }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %7:_(<4 x i128>) = G_ADD %3:_, %5:_ (in function: shuffle_i128_ldst)
warning: Instruction selection used fallback path for shuffle_i128_ldst

Occurrences (3):

InputFunctionConfig
clmulr.62fe8f070b.ll (mutant of clmulr.ll)commutative_clmulr_v2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zve64d -O1
fixed-vectors-shuffle-exact-vlen.933cbdaf41.ll (mutant of fixed-vectors-shuffle-exact-vlen.ll)shuffle_i128_ldst-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
smulh.27aa564e37.ll (mutant of smulh.ll)smulh_v2i128-mtriple=riscv32 -mattr=+m,+zve64d -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.