fallback: legalize: G_VECREDUCE_XOR <N x i16>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_VECREDUCE_XOR <N x i16> M
Occurrences:6 in 6 configs, 2 test files, 6 more counted only
Snippet from:fixed-vectors-reduction-int-vp.38a38f4564.ll (mutant of fixed-vectors-reduction-int-vp.ll) @vpreduce_xor_v4i16 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i1

define signext i16 @vpreduce_xor_v4i16(i16 signext %s, <4 x i16> %v, <4 x i1> %m, i32 zeroext %evl) {
  %r = call i16 @llvm.vp.reduce.xor.v4i16(i16 %s, <4 x i16> %v, <4 x i1> %m, i32 %evl)
  %C = icmp slt i64 -1, 42
  store i1 %C, ptr @G.1, align 1
  ret i16 %r
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.vp.reduce.xor.v4i16(i16, <4 x i16>, <4 x i1>, i32) #0

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %26:_(i16) = G_VECREDUCE_XOR %23:_(<4 x i16>) (in function: vpreduce_xor_v4i16)
warning: Instruction selection used fallback path for vpreduce_xor_v4i16

Occurrences (6):

InputFunctionConfig
fixed-vectors-reduction-int-vp.1428e9a7a8.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_xor_v2i16-mtriple=riscv64 -verify-machineinstrs -O2
fixed-vectors-reduction-int-vp.38a38f4564.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_xor_v4i16-mtriple=riscv64 -verify-machineinstrs -O3
fixed-vectors-reduction-int-vp.b048125c09.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_xor_v2i16-mtriple=riscv32 -verify-machineinstrs -O0
fixed-vectors-reduction-int.14203cf907.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_xor_v8i16-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O1
fixed-vectors-reduction-int.8eaf00b1f4.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_xor_v4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zicond -O0
fixed-vectors-reduction-int.a239111025.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_xor_v16i16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v -O0

Generated 2026-11-29 14:49 UTC.