Add 32 bit and reg-imm and disable invalid patterns for now
[oota-llvm.git] / test / CodeGen / SystemZ / 02-RetAndImm.ll
1 ; XFAIL: *
2 ; RUN: llvm-as < %s | llc -march=systemz | grep nill | count 1
3 ; RUN: llvm-as < %s | llc -march=systemz | grep nilh | count 1
4 ; RUN: llvm-as < %s | llc -march=systemz | grep nihl | count 1
5 ; RUN: llvm-as < %s | llc -march=systemz | grep nihh | count 1
6
7 define i64 @foo1(i64 %a, i64 %b) {
8 entry:
9     %c = and i64 %a, 1
10     ret i64 %c
11 }
12
13 define i64 @foo2(i64 %a, i64 %b) {
14 entry:
15     %c = and i64 %a, 131072
16     ret i64 %c
17 }
18
19 define i64 @foo3(i64 %a, i64 %b) {
20 entry:
21     %c = and i64 %a, 8589934592
22     ret i64 %c
23 }
24
25 define i64 @foo4(i64 %a, i64 %b) {
26 entry:
27     %c = and i64 %a, 562949953421312
28     ret i64 %c
29 }