blob: 0a812715ae579c5e933a3562e047e26cc993ed31 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=systemz | grep ahi | count 3
2; RUN: llc < %s -march=systemz | grep afi | count 3
3; RUN: llc < %s -march=systemz | grep lgfr | count 4
4; RUN: llc < %s -march=systemz | grep llgfr | count 2
Anton Korobeynikova51752c2009-07-16 13:42:31 +00005
6
7define i32 @foo1(i32 %a, i32 %b) {
8entry:
9 %c = add i32 %a, 1
10 ret i32 %c
11}
12
13define i32 @foo2(i32 %a, i32 %b) {
14entry:
15 %c = add i32 %a, 131072
16 ret i32 %c
17}
18
19define i32 @foo3(i32 %a, i32 %b) zeroext {
20entry:
21 %c = add i32 %a, 1
22 ret i32 %c
23}
24
25define i32 @foo4(i32 %a, i32 %b) zeroext {
26entry:
27 %c = add i32 %a, 131072
28 ret i32 %c
29}
30
31define i32 @foo5(i32 %a, i32 %b) signext {
32entry:
33 %c = add i32 %a, 1
34 ret i32 %c
35}
36
37define i32 @foo6(i32 %a, i32 %b) signext {
38entry:
39 %c = add i32 %a, 131072
40 ret i32 %c
41}
42