fallback: legalize: G_INSERT_SUBVECTOR <vscale x 2 x s64>,<2 x s64>

Run:main-bc8218b282-20261015-074651
Kind:fallback
Category:legalize: G_INSERT_SUBVECTOR <vscale x 2 x s64>,<2 x s64>
Occurrences:4 in 2 configs, 1 test files
Snippet from:clmul.ll @mul_use_commutative_clmul_v2i64 via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+zvbc -verify-machineinstrs
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

declare void @vector_use(<2 x i64>)

; Function Attrs: nounwind
define void @mul_use_commutative_clmul_v2i64(<2 x i64> %x, <2 x i64> %y, ptr %p0, ptr %p1) #0 {
  %xy = call <2 x i64> @llvm.clmul.v2i64(<2 x i64> %x, <2 x i64> %y)
  %yx = call <2 x i64> @llvm.clmul.v2i64(<2 x i64> %y, <2 x i64> %x)
  store <2 x i64> %xy, ptr %p0, align 16
  call void @vector_use(<2 x i64> %xy)
  store <2 x i64> %yx, ptr %p1, align 16
  ret void
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %9:_(<vscale x 2 x s64>) = G_INSERT_SUBVECTOR %8:_, %6:_(<2 x s64>), 0 (in function: mul_use_commutative_clmul_v2i64)
warning: Instruction selection used fallback path for mul_use_commutative_clmul_v2i64

Occurrences (4):

InputFunctionConfig
clmul.llmul_use_commutative_clmul_v2i64-mtriple=riscv32 -mattr=+m,+zvbc -verify-machineinstrs
clmul.llmul_use_commutative_clmul_v2i64-mtriple=riscv64 -mattr=+m,+zvbc -verify-machineinstrs
clmul.3a877bbd2c.ll (mutant of clmul.ll)mul_use_commutative_clmul_v2i64-mtriple=riscv32 -mattr=+m,+zvbc -verify-machineinstrs
clmul.de203152de.ll (mutant of clmul.ll)mul_use_commutative_clmul_v2i64-mtriple=riscv64 -mattr=+m,+zvbc -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.