1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -O0 --march=ve -mattr=+vpu | FileCheck %s
4 declare i64 @llvm.vector.reduce.or.v256i64(<256 x i64>)
6 define fastcc i64 @vec_reduce_or_v256i64(<256 x i64> %v) {
7 ; CHECK-LABEL: vec_reduce_or_v256i64:
9 ; CHECK-NEXT: lea %s0, 256
10 ; CHECK-NEXT: # kill: def $sw0 killed $sw0 killed $sx0
12 ; CHECK-NEXT: vror %v0, %v0
13 ; CHECK-NEXT: lvs %s0, %v0(0)
14 ; CHECK-NEXT: b.l.t (, %s10)
15 %r = call i64 @llvm.vector.reduce.or.v256i64( <256 x i64> %v)
19 declare i32 @llvm.vector.reduce.or.v256i32(<256 x i32>)
21 define fastcc i32 @vec_reduce_or_v256i32(<256 x i32> %v) {
22 ; CHECK-LABEL: vec_reduce_or_v256i32:
24 ; CHECK-NEXT: lea %s0, 256
25 ; CHECK-NEXT: # kill: def $sw0 killed $sw0 killed $sx0
27 ; CHECK-NEXT: vror %v0, %v0
28 ; CHECK-NEXT: lvs %s0, %v0(0)
29 ; CHECK-NEXT: or %s1, 0, %s0
30 ; CHECK-NEXT: # implicit-def: $sx0
31 ; CHECK-NEXT: or %s0, 0, %s1
32 ; CHECK-NEXT: b.l.t (, %s10)
33 %r = call i32 @llvm.vector.reduce.or.v256i32( <256 x i32> %v)