Provide proper patterns for and with imm instructions. Tune the tests accordingly.
[oota-llvm.git] / test / CodeGen / SystemZ / 03-RetImmSubreg.ll
1 ; RUN: llvm-as < %s | llc -march=systemz | grep lghi  | count 2
2 ; RUN: llvm-as < %s | llc -march=systemz | grep llill | count 1
3 ; RUN: llvm-as < %s | llc -march=systemz | grep llilh | count 1
4 ; RUN: llvm-as < %s | llc -march=systemz | grep lgfi  | count 1
5 ; RUN: llvm-as < %s | llc -march=systemz | grep llilf | count 2
6
7
8 define i32 @foo1() {
9 entry:
10     ret i32 1
11 }
12
13 define i32 @foo2() {
14 entry:
15     ret i32 65535 
16 }
17
18 define i32 @foo3() {
19 entry:
20     ret i32 131072
21 }
22
23 define i32 @foo4() {
24 entry:
25     ret i32 65537
26 }
27
28 define i32 @foo5() {
29 entry:
30     ret i32 4294967295
31 }
32
33 define i32 @foo6() zeroext {
34 entry:
35     ret i32 4294967295
36 }
37
38 define i32 @foo7() signext {
39 entry:
40     ret i32 4294967295
41 }
42