blob: f19ceab7d479f4bd761f300137b7f41df5f7378b [file] [log] [blame]
Anton Korobeynikov89edcd02009-07-16 13:33:57 +00001; RUN: llvm-as < %s | llc -march=systemz | grep nill | count 1
2; RUN: llvm-as < %s | llc -march=systemz | grep nilh | count 1
3; RUN: llvm-as < %s | llc -march=systemz | grep nihl | count 1
4; RUN: llvm-as < %s | llc -march=systemz | grep nihh | count 1
5
6define i64 @foo1(i64 %a, i64 %b) {
Anton Korobeynikove6220fb2009-07-16 13:32:49 +00007entry:
8 %c = and i64 %a, 1
9 ret i64 %c
10}
11
Anton Korobeynikov89edcd02009-07-16 13:33:57 +000012define i64 @foo2(i64 %a, i64 %b) {
13entry:
14 %c = and i64 %a, 131072
15 ret i64 %c
16}
17
18define i64 @foo3(i64 %a, i64 %b) {
19entry:
20 %c = and i64 %a, 8589934592
21 ret i64 %c
22}
23
24define i64 @foo4(i64 %a, i64 %b) {
25entry:
26 %c = and i64 %a, 562949953421312
27 ret i64 %c
28}