fallback: legalize: G_OR <N x i1>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_OR <N x i1> M
Occurrences:3 in 3 configs, 3 test files, 7 more counted only
Snippet from:fixed-vectors-marith-vp.271f1e570a.ll (mutant of fixed-vectors-marith-vp.ll) @or_v2i1 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zba -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i1

define <2 x i1> @or_v2i1(<2 x i1> %b, <2 x i1> %c, <2 x i1> %a, i32 zeroext %evl) {
  %E = extractelement <2 x i1> %c, i32 %evl
  %v = or <2 x i1> %b, %c
  store i1 %E, ptr @G.1, align 1
  ret <2 x i1> %v
}

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
fixed-vectors-marith-vp.271f1e570a.ll (mutant of fixed-vectors-marith-vp.ll)or_v2i1-mtriple=riscv64 -verify-machineinstrs -mattr=+zba -O0
fixed-vectors-vfclass.d82a3075d1.ll (mutant of fixed-vectors-vfclass.ll)isnan_v2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin -O0
fixed-vectors-vmul-vp-mask.7dd3ffdc41.ll (mutant of fixed-vectors-vmul-vp-mask.ll)vmul_vv_v2i1-mtriple=riscv64 -verify-machineinstrs -mattr=+m -O2

Generated 2026-11-29 14:49 UTC.