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