fallback: legalize: G_MUL <N x i1>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_MUL <N x i1> M
Occurrences:3 in 3 configs, 1 test files, 6 more counted only
Snippet from:fixed-vectors-vmul-vp-mask.f80eaceff1.ll (mutant of fixed-vectors-vmul-vp-mask.ll) @vmul_vv_v2i1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i1

define <2 x i1> @vmul_vv_v2i1(<2 x i1> %va, <2 x i1> %b, <2 x i1> %m, i32 zeroext %evl) {
  %v = mul <2 x i1> %va, %b
  %C = icmp sgt i1 true, false
  store i1 %C, ptr @G.1, align 1
  ret <2 x i1> %v
}

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
fixed-vectors-vmul-vp-mask.90d3482507.ll (mutant of fixed-vectors-vmul-vp-mask.ll)vmul_vv_v2i1-mtriple=riscv32 -verify-machineinstrs -O1
fixed-vectors-vmul-vp-mask.e0f0778a3d.ll (mutant of fixed-vectors-vmul-vp-mask.ll)vmul_vv_v2i1-mtriple=riscv64 -verify-machineinstrs -mattr=+zbs -O3
fixed-vectors-vmul-vp-mask.f80eaceff1.ll (mutant of fixed-vectors-vmul-vp-mask.ll)vmul_vv_v2i1-mtriple=riscv32 -verify-machineinstrs -O0

Generated 2026-11-29 14:49 UTC.