fallback: legalize: G_VECREDUCE_XOR <N x i16>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_XOR <N x i16> M |
| Occurrences: | 3 in 2 configs, 1 test files, 4 more counted only |
| Snippet from: | fixed-vectors-reduction-int-vp.0d95c54044.ll (mutant of fixed-vectors-reduction-int-vp.ll) @vpreduce_xor_v2i16 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i128
@G.1 = external global i1
define signext i16 @vpreduce_xor_v2i16(i16 signext %s, <2 x i16> %v, <2 x i1> %m, i32 zeroext %evl) {
%LGV = load i128, ptr @G, align 4
%C = icmp ult i128 %LGV, 0
%r = call i16 @llvm.vp.reduce.xor.v2i16(i16 %s, <2 x i16> %v, <2 x i1> %m, i32 %evl)
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.v2i16(i16, <2 x i16>, <2 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %29:_(i16) = G_VECREDUCE_XOR %26:_(<2 x i16>) (in function: vpreduce_xor_v2i16)
warning: Instruction selection used fallback path for vpreduce_xor_v2i16
Occurrences (3):
Generated 2026-11-29 14:49 UTC.