Add 32 bit and reg-imm and disable invalid patterns for now
[oota-llvm.git] / test / CodeGen / SystemZ / 03-RetAndImmSubreg.ll
1 ; XFAIL: *
2 ; RUN: llvm-as < %s | llc -march=systemz | grep nill | count 3
3 ; RUN: llvm-as < %s | llc -march=systemz | grep nilh | count 3
4
5 define i32 @foo1(i32 %a, i32 %b) {
6 entry:
7     %c = and i32 %a, 1
8     ret i32 %c
9 }
10
11 define i32 @foo2(i32 %a, i32 %b) {
12 entry:
13     %c = and i32 %a, 131072
14     ret i32 %c
15 }
16
17 define i32 @foo3(i32 %a, i32 %b) zeroext {
18 entry:
19     %c = and i32 %a, 1
20     ret i32 %c
21 }
22
23 define i32 @foo4(i32 %a, i32 %b) signext {
24 entry:
25     %c = and i32 %a, 131072
26     ret i32 %c
27 }
28
29 define i32 @foo5(i32 %a, i32 %b) zeroext {
30 entry:
31     %c = and i32 %a, 1
32     ret i32 %c
33 }
34
35 define i32 @foo6(i32 %a, i32 %b) signext {
36 entry:
37     %c = and i32 %a, 131072
38     ret i32 %c
39 }
40