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

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_EXTRACT_VECTOR_ELT <vscale x N x i8>
Occurrences:265 in 13 configs, 12 test files
Snippet from:vadd-sdnode.ll @vadd_vx_nxv1i8 via llvm-extract
Config:-mtriple=riscv32 -mattr=+v -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 1 x i8> @vadd_vx_nxv1i8(<vscale x 1 x i8> %va, i8 signext %b) {
  %head = insertelement <vscale x 1 x i8> poison, i8 %b, i32 0
  %splat = shufflevector <vscale x 1 x i8> %head, <vscale x 1 x i8> poison, <vscale x 1 x i32> zeroinitializer
  %vc = add <vscale x 1 x i8> %va, %splat
  ret <vscale x 1 x i8> %vc
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %8:_(i8) = G_EXTRACT_VECTOR_ELT %4:_(<vscale x 1 x i8>), %7:_(i32) (in function: vadd_vx_nxv1i8)
warning: Instruction selection used fallback path for vadd_vx_nxv1i8

Occurrences (265) (first 15):

InputFunctionConfig
binop-splats.llnxv1i8-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv2i8-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv4i8-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv8i8-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv16i8-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv32i8-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv64i8-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv1i8-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv2i8-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv4i8-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv8i8-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv16i8-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv32i8-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv64i8-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
vadd-sdnode.llvadd_vx_nxv1i8-mtriple=riscv32 -mattr=+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.