Merging r261039:
[oota-llvm.git] / test / CodeGen / X86 / 2008-07-16-CoalescerCrash.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin
2
3         %struct.SV = type { i8*, i64, i64 }
4 @"\01LC25" = external constant [8 x i8]         ; <[8 x i8]*> [#uses=1]
5
6 declare void @Perl_sv_catpvf(%struct.SV*, i8*, ...) nounwind 
7
8 declare fastcc i64 @Perl_utf8n_to_uvuni(i8*, i64, i64*, i64) nounwind 
9
10 define fastcc i8* @Perl_pv_uni_display(%struct.SV* %dsv, i8* %spv, i64 %len, i64 %pvlim, i64 %flags) nounwind  {
11 entry:
12         br i1 false, label %bb, label %bb40
13
14 bb:             ; preds = %entry
15         tail call fastcc i64 @Perl_utf8n_to_uvuni( i8* null, i64 13, i64* null, i64 255 ) nounwind              ; <i64>:0 [#uses=1]
16         br i1 false, label %bb6, label %bb33
17
18 bb6:            ; preds = %bb
19         br i1 false, label %bb30, label %bb31
20
21 bb30:           ; preds = %bb6
22         unreachable
23
24 bb31:           ; preds = %bb6
25         icmp eq i8 0, 0         ; <i1>:1 [#uses=0]
26         br label %bb33
27
28 bb33:           ; preds = %bb31, %bb
29         tail call void (%struct.SV*, i8*, ...) @Perl_sv_catpvf( %struct.SV* %dsv, i8* getelementptr ([8 x i8], [8 x i8]* @"\01LC25", i32 0, i64 0), i64 %0 ) nounwind 
30         unreachable
31
32 bb40:           ; preds = %entry
33         ret i8* null
34 }