Tanya Lattner | 2393a24 | 2004-11-06 23:08:26 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as -f %s -o - | llc |
| 2 | |
Vikram S. Adve | 7172a59 | 2003-07-10 19:32:38 +0000 | [diff] [blame] | 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 | } |