]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/Generic/2009-11-16-BadKillsCrash.ll
Update LLVM to r89205.
[FreeBSD/FreeBSD.git] / test / CodeGen / Generic / 2009-11-16-BadKillsCrash.ll
1 ; RUN: llc < %s
2 ; PR5495
3 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
4 target triple = "i386-pc-linux-gnu"
5
6 %"struct.std::__ctype_abstract_base<wchar_t>" = type { %"struct.std::locale::facet" }
7 %"struct.std::basic_ios<char,std::char_traits<char> >" = type { %"struct.std::ios_base", %"struct.std::basic_ostream<char,std::char_traits<char> >"*, i8, i8, %"struct.std::basic_streambuf<char,std::char_traits<char> >"*, %"struct.std::ctype<char>"*, %"struct.std::__ctype_abstract_base<wchar_t>"*, %"struct.std::__ctype_abstract_base<wchar_t>"* }
8 %"struct.std::basic_istream<char,std::char_traits<char> >" = type { i32 (...)**, i32, %"struct.std::basic_ios<char,std::char_traits<char> >" }
9 %"struct.std::basic_ostream<char,std::char_traits<char> >" = type { i32 (...)**, %"struct.std::basic_ios<char,std::char_traits<char> >" }
10 %"struct.std::basic_streambuf<char,std::char_traits<char> >" = type { i32 (...)**, i8*, i8*, i8*, i8*, i8*, i8*, %"struct.std::locale" }
11 %"struct.std::ctype<char>" = type { %"struct.std::locale::facet", i32*, i8, i32*, i32*, i16*, i8, [256 x i8], [256 x i8], i8 }
12 %"struct.std::ios_base" = type { i32 (...)**, i32, i32, i32, i32, i32, %"struct.std::ios_base::_Callback_list"*, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, %"struct.std::ios_base::_Words"*, %"struct.std::locale" }
13 %"struct.std::ios_base::_Callback_list" = type { %"struct.std::ios_base::_Callback_list"*, void (i32, %"struct.std::ios_base"*, i32)*, i32, i32 }
14 %"struct.std::ios_base::_Words" = type { i8*, i32 }
15 %"struct.std::locale" = type { %"struct.std::locale::_Impl"* }
16 %"struct.std::locale::_Impl" = type { i32, %"struct.std::locale::facet"**, i32, %"struct.std::locale::facet"**, i8** }
17 %"struct.std::locale::facet" = type { i32 (...)**, i32 }
18 %union..0._15 = type { i32 }
19
20 declare i8* @llvm.eh.exception() nounwind readonly
21
22 declare i8* @__cxa_begin_catch(i8*) nounwind
23
24 declare %"struct.std::ctype<char>"* @_ZSt9use_facetISt5ctypeIcEERKT_RKSt6locale(%"struct.std::locale"*)
25
26 define %"struct.std::basic_istream<char,std::char_traits<char> >"* @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(%"struct.std::basic_istream<char,std::char_traits<char> >"* %__in, i8* nocapture %__s) {
27 entry:
28   %0 = invoke %"struct.std::ctype<char>"* @_ZSt9use_facetISt5ctypeIcEERKT_RKSt6locale(%"struct.std::locale"* undef)
29           to label %invcont8 unwind label %lpad74 ; <%"struct.std::ctype<char>"*> [#uses=0]
30
31 invcont8:                                         ; preds = %entry
32   %1 = invoke i32 undef(%"struct.std::basic_streambuf<char,std::char_traits<char> >"* undef)
33           to label %bb26.preheader unwind label %lpad ; <i32> [#uses=0]
34
35 bb26.preheader:                                   ; preds = %invcont8
36   br label %invcont38
37
38 bb1.i100:                                         ; preds = %invcont38
39   %2 = add nsw i32 1, %__extracted.0  ; <i32> [#uses=3]
40   br i1 undef, label %bb.i97, label %bb1.i
41
42 bb.i97:                                           ; preds = %bb1.i100
43   br label %invcont38
44
45 bb1.i:                                            ; preds = %bb1.i100
46   %3 = invoke i32 undef(%"struct.std::basic_streambuf<char,std::char_traits<char> >"* undef)
47           to label %invcont38 unwind label %lpad ; <i32> [#uses=0]
48
49 invcont24:                                        ; preds = %invcont38
50   %4 = invoke i32 undef(%"struct.std::basic_streambuf<char,std::char_traits<char> >"* undef)
51           to label %_ZNSt15basic_streambufIcSt11char_traitsIcEE6sbumpcEv.exit.i unwind label %lpad ; <i32> [#uses=0]
52
53 _ZNSt15basic_streambufIcSt11char_traitsIcEE6sbumpcEv.exit.i: ; preds = %invcont24
54   br i1 undef, label %invcont25, label %bb.i93
55
56 bb.i93:                                           ; preds = %_ZNSt15basic_streambufIcSt11char_traitsIcEE6sbumpcEv.exit.i
57   %5 = invoke i32 undef(%"struct.std::basic_streambuf<char,std::char_traits<char> >"* undef)
58           to label %invcont25 unwind label %lpad ; <i32> [#uses=0]
59
60 invcont25:                                        ; preds = %bb.i93, %_ZNSt15basic_streambufIcSt11char_traitsIcEE6sbumpcEv.exit.i
61   br label %invcont38
62
63 invcont38:                                        ; preds = %invcont25, %bb1.i, %bb.i97, %bb26.preheader
64   %__extracted.0 = phi i32 [ 0, %bb26.preheader ], [ undef, %invcont25 ], [ %2, %bb.i97 ], [ %2, %bb1.i ] ; <i32> [#uses=1]
65   br i1 false, label %bb1.i100, label %invcont24
66
67 lpad:                                             ; preds = %bb.i93, %invcont24, %bb1.i, %invcont8
68   %__extracted.1 = phi i32 [ 0, %invcont8 ], [ %2, %bb1.i ], [ undef, %bb.i93 ], [ undef, %invcont24 ] ; <i32> [#uses=0]
69   %eh_ptr = call i8* @llvm.eh.exception() ; <i8*> [#uses=1]
70   %6 = call i8* @__cxa_begin_catch(i8* %eh_ptr) nounwind ; <i8*> [#uses=0]
71   unreachable
72
73 lpad74:                                           ; preds = %entry
74   unreachable
75 }