fallback: legalize: G_SUB <N x i1>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_SUB <N x i1> M
Occurrences:3 in 3 configs, 1 test files, 7 more counted only
Snippet from:fixed-vectors-vsub-vp-mask.1b75d3a7c1.ll (mutant of fixed-vectors-vsub-vp-mask.ll) @vsub_vv_v2i1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <2 x i1> @vsub_vv_v2i1(<2 x i1> %va, <2 x i1> %b, <2 x i1> %m, i32 zeroext %evl) {
  %B = and i32 -2147483648, %evl
  %v = sub <2 x i1> %va, %b
  store i32 %B, ptr poison, align 4
  ret <2 x i1> %v
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %15:_(<2 x i1>) = G_SUB %0:_, %1:_ (in function: vsub_vv_v2i1)
warning: Instruction selection used fallback path for vsub_vv_v2i1

Occurrences (3):

InputFunctionConfig
fixed-vectors-vsub-vp-mask.1b75d3a7c1.ll (mutant of fixed-vectors-vsub-vp-mask.ll)vsub_vv_v2i1-mtriple=riscv32 -verify-machineinstrs -O2
fixed-vectors-vsub-vp-mask.6af75488e8.ll (mutant of fixed-vectors-vsub-vp-mask.ll)vsub_vv_v2i1-mtriple=riscv32 -verify-machineinstrs -O1
fixed-vectors-vsub-vp-mask.a62f2ea764.ll (mutant of fixed-vectors-vsub-vp-mask.ll)vsub_vv_v2i1-mtriple=riscv64 -verify-machineinstrs -mattr=+zicond -O1

Generated 2026-11-29 14:49 UTC.