llvm.org GIT mirror llvm / 6cc2494
Crashes LegalizeTypes with "Do not know how to expand the result of this operator!" (node: ctlz). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46713 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 12 years ago
1 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc
1
2 @.str3 = external constant [56 x i8] ; <[56 x i8]*> [#uses=1]
3
4 define i32 @main() nounwind {
5 entry:
6 br label %bb30
7
8 bb30: ; preds = %bb30, %entry
9 %l.024 = phi i64 [ -10000, %entry ], [ 0, %bb30 ] ; [#uses=2]
10 %tmp37 = tail call i64 @llvm.ctlz.i64( i64 %l.024 ) ; [#uses=1]
11 trunc i64 %tmp37 to i32 ; :0 [#uses=1]
12 %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 ; [#uses=0]
13 br i1 false, label %bb30, label %bb9.i
14
15 bb9.i: ; preds = %bb30
16 ret i32 0
17 }
18
19 declare i32 @printf(i8* noalias , ...) nounwind
20
21 declare i64 @llvm.ctlz.i64(i64) nounwind readnone