fallback: legalize: G_XOR <N x i1>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_XOR <N x i1> M
Occurrences:5 in 3 configs, 2 test files, 1 more counted only
Snippet from:mask-exts-not.21c7be2f31.ll (mutant of mask-exts-not.ll) @mask_zext_not_v8i8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i1

define <8 x i8> @mask_zext_not_v8i8(<8 x i1> %m) {
  %not = xor <8 x i1> %m, splat (i1 true)
  %C = fcmp true half 5.960460e-08, 1.000000e+00
  %ext = zext <8 x i1> %not to <8 x i8>
  store i1 %C, ptr @G.1, align 1
  ret <8 x i8> %ext
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %5:_(<8 x i1>) = G_XOR %0:_, %3:_ (in function: mask_zext_not_v8i8)
warning: Instruction selection used fallback path for mask_zext_not_v8i8

Occurrences (5):

InputFunctionConfig
fixed-vectors-marith-vp.717b1e067c.ll (mutant of fixed-vectors-marith-vp.ll)xor_v2i1-mtriple=riscv32 -verify-machineinstrs -mattr=+zba -O0
mask-exts-not.21c7be2f31.ll (mutant of mask-exts-not.ll)mask_zext_not_v8i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m -O1
mask-exts-not.21c7be2f31.ll (mutant of mask-exts-not.ll)mask_sext_xor_v8i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m -O1
mask-exts-not.21c7be2f31.ll (mutant of mask-exts-not.ll)mask_zext_xor_v8i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m -O1
mask-exts-not.6c0518e099.ll (mutant of mask-exts-not.ll)mask_zext_not_v8i8-mtriple=riscv32 -verify-machineinstrs -mattr=+zvfh -O0 -code-model=medium

Generated 2026-11-29 14:49 UTC.