fallback: legalize: G_EXTRACT_VECTOR_ELT <vscale x N x i32>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_EXTRACT_VECTOR_ELT <vscale x N x i32>
Occurrences:197 in 17 configs, 13 test files
Snippet from:splats-with-mixed-vl.ll @splat_scalable via llvm-extract
Config:-O3 -mtriple=riscv64 -mattr=+v
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @splat_scalable(ptr %p, i32 %v) {
  %elt.head = insertelement <vscale x 1 x i32> poison, i32 %v, i32 0
  %splat = shufflevector <vscale x 1 x i32> %elt.head, <vscale x 1 x i32> poison, <vscale x 1 x i32> zeroinitializer
  store <vscale x 1 x i32> %splat, ptr %p, align 4
  ret void
}

Reproduce:

llc -O3 -mtriple=riscv64 -mattr=+v -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -O3 -mtriple=riscv64 -mattr=+v -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %7:_(i32) = G_EXTRACT_VECTOR_ELT %3:_(<vscale x 1 x i32>), %6:_(i64) (in function: splat_scalable)
warning: Instruction selection used fallback path for splat_scalable

Occurrences (197) (first 15):

InputFunctionConfig
binop-splats.llnxv1i32-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv2i32-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv4i32-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv8i32-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv16i32-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv1i32-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv2i32-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv4i32-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv8i32-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv16i32-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
dont-sink-splat-operands.llsink_splat_add_scalable-mtriple=riscv64 -mattr=+m,+v,+f -target-abi=lp64f -mattr=+no-sink-splat-operands -riscv-v-vector-bits-min=128
dont-sink-splat-operands.llsink_splat_add_scalable-mtriple=riscv64 -mattr=+m,+v,+f -target-abi=lp64f -mattr=-no-sink-splat-operands -riscv-v-vector-bits-min=128
dont-sink-splat-operands.llsink_splat_add_scalable-mtriple=riscv64 -mattr=+m,+v,+f -target-abi=lp64f -riscv-v-vector-bits-min=128
sink-splat-operands.llsink_splat_add_scalable-mtriple=riscv64 -mattr=+m,+v,+f -target-abi=lp64f
sink-splat-operands.llsink_splat_sub_scalable-mtriple=riscv64 -mattr=+m,+v,+f -target-abi=lp64f

Generated 2026-11-29 14:49 UTC.