Dan Gohman | fce288f | 2009-09-09 00:09:15 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -march=systemz | grep ngr | count 6 |
Anton Korobeynikov | a51752c | 2009-07-16 13:42:31 +0000 | [diff] [blame] | 2 | |
| 3 | define i32 @foo1(i32 %a, i32 %b) { |
| 4 | entry: |
| 5 | %c = and i32 %a, 1 |
| 6 | ret i32 %c |
| 7 | } |
| 8 | |
| 9 | define i32 @foo2(i32 %a, i32 %b) { |
| 10 | entry: |
| 11 | %c = and i32 %a, 131072 |
| 12 | ret i32 %c |
| 13 | } |
| 14 | |
| 15 | define i32 @foo3(i32 %a, i32 %b) zeroext { |
| 16 | entry: |
| 17 | %c = and i32 %a, 1 |
| 18 | ret i32 %c |
| 19 | } |
| 20 | |
| 21 | define i32 @foo4(i32 %a, i32 %b) signext { |
| 22 | entry: |
| 23 | %c = and i32 %a, 131072 |
| 24 | ret i32 %c |
| 25 | } |
| 26 | |
| 27 | define i32 @foo5(i32 %a, i32 %b) zeroext { |
| 28 | entry: |
| 29 | %c = and i32 %a, 1 |
| 30 | ret i32 %c |
| 31 | } |
| 32 | |
| 33 | define i32 @foo6(i32 %a, i32 %b) signext { |
| 34 | entry: |
| 35 | %c = and i32 %a, 131072 |
| 36 | ret i32 %c |
| 37 | } |
| 38 | |