fallback: legalize: G_VECREDUCE_XOR <N x i16>

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

Snippet:

define signext i16 @vpreduce_xor_v4i16(i16 signext %s, <4 x i16> %v, <4 x i1> %m, i32 zeroext %evl) {
  %B = srem <4 x i16> %v, %v
  %r = call i16 @llvm.vp.reduce.xor.v4i16(i16 %s, <4 x i16> %v, <4 x i1> %m, i32 %evl)
  store <4 x i16> %B, ptr poison, align 8
  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 -mattr=+d -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
fixed-vectors-reduction-int-vp.f9c495dea8.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_xor_v4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+d -O3
fixed-vectors-reduction-int.174ed5df5d.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_xor_v64i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
fixed-vectors-reduction-int.4d354e8e8d.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_xor_v64i16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v -O0
fixed-vectors-reduction-int.56fcf361ee.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_xor_v4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zvfh -O2
fixed-vectors-reduction-int.6d884d8631.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_xor_v128i16-mtriple=riscv32 -verify-machineinstrs -O3

Generated 2026-11-29 14:49 UTC.