Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade %s | llvm-as | llc |
| 2 | |
| 3 | |
| 4 | %.str_1 = internal constant [42 x sbyte] c" ui = %u (0x%x)\09\09UL-ui = %lld (0x%llx)\0A\00" |
| 5 | |
| 6 | implementation ; Functions: |
| 7 | |
| 8 | declare int %printf(sbyte*, ...) |
| 9 | |
| 10 | internal ulong %getL() { |
| 11 | entry: ; No predecessors! |
| 12 | ret ulong 12659530247033960611 |
| 13 | } |
| 14 | |
| 15 | int %main(int %argc.1, sbyte** %argv.1) { |
| 16 | entry: ; No predecessors! |
| 17 | %tmp.11 = call ulong %getL( ) |
| 18 | %tmp.5 = cast ulong %tmp.11 to uint |
| 19 | %tmp.23 = and ulong %tmp.11, 18446744069414584320 |
| 20 | %tmp.16 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([42 x sbyte]* %.str_1, long 0, long 0), uint %tmp.5, uint %tmp.5, ulong %tmp.23, ulong %tmp.23 ) |
| 21 | ret int 0 |
| 22 | } |