fallback: translate: call llvm.vp.reduce.xor.nxv2i64
| Run: | main-b577f07195-20261129-101839 |
| Kind: | fallback |
| Category: | translate: call llvm.vp.reduce.xor.nxv2i64 M |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | vreductions-int-vp.6d21f20c11.ll (mutant of vreductions-int-vp.ll) @vpreduce_xor_nxv2i64 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+v -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i8
define signext i64 @vpreduce_xor_nxv2i64(i64 signext %s, <vscale x 2 x i64> %v, <vscale x 2 x i1> %m, i32 zeroext %evl) {
%A = alloca i8, align 1
store i8 poison, ptr %A, align 1
%LGV = load i8, ptr @G, align 1
%B = and i8 %LGV, -1
%r = call i64 @llvm.vp.reduce.xor.nxv2i64(i64 %s, <vscale x 2 x i64> %v, <vscale x 2 x i1> %m, i32 %evl)
store i8 %B, ptr %A, align 1
ret i64 %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vp.reduce.xor.nxv2i64(i64, <vscale x 2 x i64>, <vscale x 2 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.reduce.xor.nxv2i64: ' %r = call i64 @llvm.vp.reduce.xor.nxv2i64(i64 %s, <vscale x 2 x i64> %v, <vscale x 2 x i1> %m, i32 %evl)' (in function: vpreduce_xor_nxv2i64)
warning: Instruction selection used fallback path for vpreduce_xor_nxv2i64
Occurrences (2):
| Input | Function | Config |
|---|
| vreductions-int-vp.6d21f20c11.ll (mutant of vreductions-int-vp.ll) | vpreduce_xor_nxv2i64 | -mtriple=riscv32 -mattr=+v -verify-machineinstrs |
| vreductions-int-vp.b346965846.ll (mutant of vreductions-int-vp.ll) | vpreduce_xor_nxv2i64 | -mtriple=riscv64 -mattr=+v -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.