brintos

brintos / llvm-project-archived public Read only

0
0
Text · 677 B · fe0b43d Raw
21 lines · plain
1; RUN: llc < %s2 3@.str_1 = internal constant [42 x i8] c"   ui = %u (0x%x)\09\09UL-ui = %lld (0x%llx)\0A\00"             ; <ptr> [#uses=1]4 5declare i32 @printf(ptr, ...)6 7define internal i64 @getL() {8entry:9        ret i64 -578721382667559100510}11 12define i32 @main(i32 %argc.1, ptr %argv.1) {13entry:14        %tmp.11 = call i64 @getL( )             ; <i64> [#uses=2]15        %tmp.5 = trunc i64 %tmp.11 to i32               ; <i32> [#uses=2]16        %tmp.23 = and i64 %tmp.11, -4294967296          ; <i64> [#uses=2]17        %tmp.16 = call i32 (ptr, ...) @printf( ptr @.str_1, i32 %tmp.5, i32 %tmp.5, i64 %tmp.23, i64 %tmp.23 )              ; <i32> [#uses=0]18        ret i32 019}20 21