1 ; RUN: llc < %s -mtriple=ve -mattr=+vpu | FileCheck %s
3 ;;; Test vector reduction exclusive or intrinsic instructions
6 ;;; We test VRXOR*vl and VRXOR*vml instructions.
8 ; Function Attrs: nounwind readnone
9 define fastcc <256 x double> @vrxor_vvl(<256 x double> %0) {
10 ; CHECK-LABEL: vrxor_vvl:
12 ; CHECK-NEXT: lea %s0, 256
14 ; CHECK-NEXT: vrxor %v0, %v0
15 ; CHECK-NEXT: b.l.t (, %s10)
16 %2 = tail call fast <256 x double> @llvm.ve.vl.vrxor.vvl(<256 x double> %0, i32 256)
20 ; Function Attrs: nounwind readnone
21 declare <256 x double> @llvm.ve.vl.vrxor.vvl(<256 x double>, i32)
23 ; Function Attrs: nounwind readnone
24 define fastcc <256 x double> @vrxor_vvml(<256 x double> %0, <256 x i1> %1) {
25 ; CHECK-LABEL: vrxor_vvml:
27 ; CHECK-NEXT: lea %s0, 256
29 ; CHECK-NEXT: vrxor %v0, %v0, %vm1
30 ; CHECK-NEXT: b.l.t (, %s10)
31 %3 = tail call fast <256 x double> @llvm.ve.vl.vrxor.vvml(<256 x double> %0, <256 x i1> %1, i32 256)
35 ; Function Attrs: nounwind readnone
36 declare <256 x double> @llvm.ve.vl.vrxor.vvml(<256 x double>, <256 x i1>, i32)