1 ; RUN: llc < %s -march=systemz | grep sra | count 6
2 ; RUN: llc < %s -march=systemz | grep srag | count 3
3 ; RUN: llc < %s -march=systemz | grep srl | count 6
4 ; RUN: llc < %s -march=systemz | grep srlg | count 3
5 ; RUN: llc < %s -march=systemz | grep sll | count 6
6 ; RUN: llc < %s -march=systemz | grep sllg | count 3
8 define signext i32 @foo1(i32 %a, i32 %idx) nounwind readnone {
10 %add = add i32 %idx, 1 ; <i32> [#uses=1]
11 %shr = ashr i32 %a, %add ; <i32> [#uses=1]
15 define signext i32 @foo2(i32 %a, i32 %idx) nounwind readnone {
17 %add = add i32 %idx, 1 ; <i32> [#uses=1]
18 %shr = shl i32 %a, %add ; <i32> [#uses=1]
22 define signext i32 @foo3(i32 %a, i32 %idx) nounwind readnone {
24 %add = add i32 %idx, 1 ; <i32> [#uses=1]
25 %shr = lshr i32 %a, %add ; <i32> [#uses=1]
29 define signext i64 @foo4(i64 %a, i64 %idx) nounwind readnone {
31 %add = add i64 %idx, 1 ; <i64> [#uses=1]
32 %shr = ashr i64 %a, %add ; <i64> [#uses=1]
36 define signext i64 @foo5(i64 %a, i64 %idx) nounwind readnone {
38 %add = add i64 %idx, 1 ; <i64> [#uses=1]
39 %shr = shl i64 %a, %add ; <i64> [#uses=1]
43 define signext i64 @foo6(i64 %a, i64 %idx) nounwind readnone {
45 %add = add i64 %idx, 1 ; <i64> [#uses=1]
46 %shr = lshr i64 %a, %add ; <i64> [#uses=1]
50 define signext i32 @foo7(i32 %a, i32 %idx) nounwind readnone {
56 define signext i32 @foo8(i32 %a, i32 %idx) nounwind readnone {
62 define signext i32 @foo9(i32 %a, i32 %idx) nounwind readnone {
68 define signext i32 @foo10(i32 %a, i32 %idx) nounwind readnone {
70 %shr = ashr i32 %a, %idx
74 define signext i32 @foo11(i32 %a, i32 %idx) nounwind readnone {
76 %shr = shl i32 %a, %idx
80 define signext i32 @foo12(i32 %a, i32 %idx) nounwind readnone {
82 %shr = lshr i32 %a, %idx
86 define signext i64 @foo13(i64 %a, i64 %idx) nounwind readnone {
92 define signext i64 @foo14(i64 %a, i64 %idx) nounwind readnone {
98 define signext i64 @foo15(i64 %a, i64 %idx) nounwind readnone {
100 %shr = lshr i64 %a, 1
104 define signext i64 @foo16(i64 %a, i64 %idx) nounwind readnone {
106 %shr = ashr i64 %a, %idx
110 define signext i64 @foo17(i64 %a, i64 %idx) nounwind readnone {
112 %shr = shl i64 %a, %idx
116 define signext i64 @foo18(i64 %a, i64 %idx) nounwind readnone {
118 %shr = lshr i64 %a, %idx