Dan Gohman | fce288f | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=systemz | grep ngr | count 4 |
| 2 | ; RUN: llc < %s -march=systemz | grep llilh | count 1 |
| 3 | ; RUN: llc < %s -march=systemz | grep llihl | count 1 |
| 4 | ; RUN: llc < %s -march=systemz | grep llihh | count 1 |
Anton Korobeynikov | 89edcd0 | 2009-07-16 13:33:57 +0000 | [diff] [blame] | 5 | |
| 6 | define i64 @foo1(i64 %a, i64 %b) { |
Anton Korobeynikov | e6220fb | 2009-07-16 13:32:49 +0000 | [diff] [blame] | 7 | entry: |
| 8 | %c = and i64 %a, 1 |
| 9 | ret i64 %c |
| 10 | } |
| 11 | |
Anton Korobeynikov | 89edcd0 | 2009-07-16 13:33:57 +0000 | [diff] [blame] | 12 | define i64 @foo2(i64 %a, i64 %b) { |
| 13 | entry: |
| 14 | %c = and i64 %a, 131072 |
| 15 | ret i64 %c |
| 16 | } |
| 17 | |
| 18 | define i64 @foo3(i64 %a, i64 %b) { |
| 19 | entry: |
| 20 | %c = and i64 %a, 8589934592 |
| 21 | ret i64 %c |
| 22 | } |
| 23 | |
| 24 | define i64 @foo4(i64 %a, i64 %b) { |
| 25 | entry: |
| 26 | %c = and i64 %a, 562949953421312 |
| 27 | ret i64 %c |
| 28 | } |