fallback: legalize: G_ADD <vscale x N x i1>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_ADD <vscale x N x i1>
Occurrences:42 in 4 configs, 5 test files
Snippet from:vadd-vp-mask.ll @vadd_vv_nxv2i1 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 2 x i1> @vadd_vv_nxv2i1(<vscale x 2 x i1> %va, <vscale x 2 x i1> %b, <vscale x 2 x i1> %m, i32 zeroext %evl) {
  %v = add <vscale x 2 x i1> %va, %b
  ret <vscale x 2 x i1> %v
}

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: %4:_(<vscale x 2 x i1>) = G_ADD %0:_, %1:_ (in function: vadd_vv_nxv2i1)
warning: Instruction selection used fallback path for vadd_vv_nxv2i1

Occurrences (42) (first 15):

InputFunctionConfig
binop-splats.llnxv1i1-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv2i1-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv4i1-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv8i1-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv16i1-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv32i1-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv64i1-mtriple=riscv32 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv1i1-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv2i1-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv4i1-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv8i1-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv16i1-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv32i1-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
binop-splats.llnxv64i1-mtriple=riscv64 -mattr=+v,+zfh,+zvfh -verify-machineinstrs
commutable.llcommutable_vmseq_vv-mtriple=riscv32 -mattr=+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.