Dan Gohman | fce288f | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=systemz | grep lghi | count 1 |
| 2 | ; RUN: llc < %s -march=systemz | grep llill | count 1 |
| 3 | ; RUN: llc < %s -march=systemz | grep llilh | count 1 |
| 4 | ; RUN: llc < %s -march=systemz | grep llihl | count 1 |
| 5 | ; RUN: llc < %s -march=systemz | grep llihh | count 1 |
| 6 | ; RUN: llc < %s -march=systemz | grep lgfi | count 1 |
| 7 | ; RUN: llc < %s -march=systemz | grep llilf | count 1 |
| 8 | ; RUN: llc < %s -march=systemz | grep llihf | count 1 |
Anton Korobeynikov | 1cc9dc7 | 2009-07-16 13:29:38 +0000 | [diff] [blame] | 9 | |
Anton Korobeynikov | da308c9 | 2009-07-16 13:34:50 +0000 | [diff] [blame] | 10 | |
| 11 | define i64 @foo1() { |
Anton Korobeynikov | 1cc9dc7 | 2009-07-16 13:29:38 +0000 | [diff] [blame] | 12 | entry: |
Anton Korobeynikov | da308c9 | 2009-07-16 13:34:50 +0000 | [diff] [blame] | 13 | ret i64 1 |
| 14 | } |
| 15 | |
| 16 | define i64 @foo2() { |
| 17 | entry: |
| 18 | ret i64 65535 |
| 19 | } |
| 20 | |
| 21 | define i64 @foo3() { |
| 22 | entry: |
| 23 | ret i64 131072 |
| 24 | } |
| 25 | |
| 26 | define i64 @foo4() { |
| 27 | entry: |
| 28 | ret i64 8589934592 |
| 29 | } |
| 30 | |
| 31 | define i64 @foo5() { |
| 32 | entry: |
| 33 | ret i64 562949953421312 |
| 34 | } |
| 35 | |
| 36 | define i64 @foo6() { |
| 37 | entry: |
| 38 | ret i64 65537 |
| 39 | } |
| 40 | |
| 41 | define i64 @foo7() { |
| 42 | entry: |
| 43 | ret i64 4294967295 |
| 44 | } |
| 45 | |
| 46 | define i64 @foo8() { |
| 47 | entry: |
| 48 | ret i64 281483566645248 |
| 49 | } |