Duncan Sands | 6cc2494 | 2008-02-04 18:07:02 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc |
| 2 | |
| 3 | @.str3 = external constant [56 x i8] ; <[56 x i8]*> [#uses=1] |
| 4 | |
| 5 | define i32 @main() nounwind { |
| 6 | entry: |
| 7 | br label %bb30 |
| 8 | |
| 9 | bb30: ; preds = %bb30, %entry |
| 10 | %l.024 = phi i64 [ -10000, %entry ], [ 0, %bb30 ] ; <i64> [#uses=2] |
| 11 | %tmp37 = tail call i64 @llvm.ctlz.i64( i64 %l.024 ) ; <i64> [#uses=1] |
| 12 | trunc i64 %tmp37 to i32 ; <i32>:0 [#uses=1] |
| 13 | %tmp40 = tail call i32 (i8*, ...)* @printf( i8* noalias getelementptr ([56 x i8]* @.str3, i32 0, i32 0), i64 %l.024, i32 %0, i32 0, i32 0 ) nounwind ; <i32> [#uses=0] |
| 14 | br i1 false, label %bb30, label %bb9.i |
| 15 | |
| 16 | bb9.i: ; preds = %bb30 |
| 17 | ret i32 0 |
| 18 | } |
| 19 | |
| 20 | declare i32 @printf(i8* noalias , ...) nounwind |
| 21 | |
| 22 | declare i64 @llvm.ctlz.i64(i64) nounwind readnone |