blob: fb56f2fe9ce2bfb9d83d87419d2ca5d8a7b7ae02 [file] [log] [blame]
Anton Korobeynikov52ec0432009-07-16 14:06:00 +00001; RUN: llvm-as < %s | llc -march=systemz | grep ngr | count 4
2; RUN: llvm-as < %s | llc -march=systemz | grep llilh | count 1
3; RUN: llvm-as < %s | llc -march=systemz | grep llihl | count 1
4; RUN: llvm-as < %s | llc -march=systemz | grep llihh | count 1
Anton Korobeynikov98383422009-07-16 13:33:57 +00005
6define i64 @foo1(i64 %a, i64 %b) {
Anton Korobeynikov82583bf2009-07-16 13:32:49 +00007entry:
8 %c = and i64 %a, 1
9 ret i64 %c
10}
11
Anton Korobeynikov98383422009-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}