Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc < %s -march=ppc64 -mtriple=powerpc64-unknown-linux-gnu
      2 ; RUN: llc < %s -march=ppc64le -mtriple=powerpc64le-unknown-linux-gnu
      3 
      4 %"class.std::__1::locale::id.1580.4307.4610.8491" = type { %"struct.std::__1::once_flag.1579.4306.4609.8490", i32 }
      5 %"struct.std::__1::once_flag.1579.4306.4609.8490" = type { i64 }
      6 %"class.Foam::IOerror.1581.4308.4611.8505" = type { %"class.Foam::error.1535.4262.4565.8504", %"class.Foam::string.1530.4257.4560.8499", i32, i32 }
      7 %"class.Foam::error.1535.4262.4565.8504" = type { %"class.std::exception.1523.4250.4553.8492", [36 x i8], %"class.Foam::string.1530.4257.4560.8499", %"class.Foam::string.1530.4257.4560.8499", i32, i8, i8, %"class.Foam::OStringStream.1534.4261.4564.8503"* }
      8 %"class.std::exception.1523.4250.4553.8492" = type { i32 (...)** }
      9 %"class.Foam::OStringStream.1534.4261.4564.8503" = type { %"class.Foam::OSstream.1533.4260.4563.8502" }
     10 %"class.Foam::OSstream.1533.4260.4563.8502" = type { [50 x i8], %"class.Foam::fileName.1531.4258.4561.8500", %"class.std::__1::basic_ostream.1532.4259.4562.8501"* }
     11 %"class.Foam::fileName.1531.4258.4561.8500" = type { %"class.Foam::string.1530.4257.4560.8499" }
     12 %"class.std::__1::basic_ostream.1532.4259.4562.8501" = type { i32 (...)**, [148 x i8] }
     13 %"class.Foam::string.1530.4257.4560.8499" = type { %"class.std::__1::basic_string.1529.4256.4559.8498" }
     14 %"class.std::__1::basic_string.1529.4256.4559.8498" = type { %"class.std::__1::__compressed_pair.1528.4255.4558.8497" }
     15 %"class.std::__1::__compressed_pair.1528.4255.4558.8497" = type { %"class.std::__1::__libcpp_compressed_pair_imp.1527.4254.4557.8496" }
     16 %"class.std::__1::__libcpp_compressed_pair_imp.1527.4254.4557.8496" = type { %"struct.std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__rep.1526.4253.4556.8495" }
     17 %"struct.std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__rep.1526.4253.4556.8495" = type { %union.anon.1525.4252.4555.8494 }
     18 %union.anon.1525.4252.4555.8494 = type { %"struct.std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__long.1524.4251.4554.8493" }
     19 %"struct.std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__long.1524.4251.4554.8493" = type { i64, i64, i8* }
     20 
     21 @.str3 = external unnamed_addr constant [16 x i8], align 1
     22 @_ZNSt3__15ctypeIcE2idE = external global %"class.std::__1::locale::id.1580.4307.4610.8491"
     23 @_ZN4Foam12FatalIOErrorE = external global %"class.Foam::IOerror.1581.4308.4611.8505"
     24 @.str204 = external unnamed_addr constant [18 x i8], align 1
     25 @.str205 = external unnamed_addr constant [34 x i8], align 1
     26 
     27 declare void @_ZN4FoamlsERNS_7OstreamEPKc() #0
     28 
     29 declare i32 @__gxx_personality_v0(...)
     30 
     31 declare void @_ZNKSt3__18ios_base6getlocEv() #0
     32 
     33 declare void @_ZNKSt3__16locale9use_facetERNS0_2idE() #0
     34 
     35 ; Function Attrs: noreturn
     36 declare void @_ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv() #1 align 2
     37 
     38 declare void @_ZN4Foam6string6expandEb() #0
     39 
     40 declare void @_ZN4Foam8IFstreamC1ERKNS_8fileNameENS_8IOstream12streamFormatENS4_13versionNumberE() #0
     41 
     42 declare void @_ZN4Foam7IOerrorclEPKcS2_iRKNS_8IOstreamE() #0
     43 
     44 declare void @_ZN4Foam7IOerror4exitEi() #0
     45 
     46 ; Function Attrs: inlinehint
     47 declare void @_ZN4Foam8fileName12stripInvalidEv() #2 align 2
     48 
     49 define void @_ZN4Foam3CSVINS_6VectorIdEEE4readEv() #0 align 2 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
     50 entry:
     51   invoke void @_ZN4Foam6string6expandEb()
     52           to label %invoke.cont unwind label %lpad
     53 
     54 invoke.cont:                                      ; preds = %entry
     55   br i1 undef, label %if.then.i.i.i.i176, label %_ZN4Foam6stringC2ERKS0_.exit.i
     56 
     57 if.then.i.i.i.i176:                               ; preds = %invoke.cont
     58   invoke void @_ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv()
     59           to label %.noexc unwind label %lpad
     60 
     61 .noexc:                                           ; preds = %if.then.i.i.i.i176
     62   unreachable
     63 
     64 _ZN4Foam6stringC2ERKS0_.exit.i:                   ; preds = %invoke.cont
     65   invoke void @_ZN4Foam8fileName12stripInvalidEv()
     66           to label %invoke.cont2 unwind label %lpad.i
     67 
     68 lpad.i:                                           ; preds = %_ZN4Foam6stringC2ERKS0_.exit.i
     69   %0 = landingpad { i8*, i32 }
     70           cleanup
     71   br label %ehcleanup142
     72 
     73 invoke.cont2:                                     ; preds = %_ZN4Foam6stringC2ERKS0_.exit.i
     74   invoke void @_ZN4Foam8IFstreamC1ERKNS_8fileNameENS_8IOstream12streamFormatENS4_13versionNumberE()
     75           to label %invoke.cont4 unwind label %lpad3
     76 
     77 invoke.cont4:                                     ; preds = %invoke.cont2
     78   br i1 undef, label %for.body, label %if.then
     79 
     80 if.then:                                          ; preds = %invoke.cont4
     81   invoke void @_ZN4Foam7IOerrorclEPKcS2_iRKNS_8IOstreamE()
     82           to label %invoke.cont8 unwind label %lpad5
     83 
     84 invoke.cont8:                                     ; preds = %if.then
     85   invoke void @_ZN4FoamlsERNS_7OstreamEPKc()
     86           to label %memptr.end.i unwind label %lpad5
     87 
     88 memptr.end.i:                                     ; preds = %invoke.cont8
     89   invoke void @_ZN4Foam7IOerror4exitEi()
     90           to label %if.end unwind label %lpad5
     91 
     92 lpad:                                             ; preds = %if.then.i.i.i.i176, %entry
     93   %1 = landingpad { i8*, i32 }
     94           cleanup
     95   br label %ehcleanup142
     96 
     97 lpad3:                                            ; preds = %invoke.cont2
     98   %2 = landingpad { i8*, i32 }
     99           cleanup
    100   br label %ehcleanup142
    101 
    102 lpad5:                                            ; preds = %memptr.end.i, %invoke.cont8, %if.then
    103   %3 = landingpad { i8*, i32 }
    104           cleanup
    105   br label %ehcleanup142
    106 
    107 if.end:                                           ; preds = %memptr.end.i
    108   br i1 undef, label %for.body, label %vector.body
    109 
    110 for.body:                                         ; preds = %if.end, %invoke.cont4
    111   invoke void @_ZNKSt3__18ios_base6getlocEv()
    112           to label %.noexc205 unwind label %lpad19
    113 
    114 .noexc205:                                        ; preds = %for.body
    115   invoke void @_ZNKSt3__16locale9use_facetERNS0_2idE()
    116           to label %invoke.cont.i.i.i unwind label %lpad.i.i.i
    117 
    118 invoke.cont.i.i.i:                                ; preds = %.noexc205
    119   unreachable
    120 
    121 lpad.i.i.i:                                       ; preds = %.noexc205
    122   %4 = landingpad { i8*, i32 }
    123           cleanup
    124   br label %ehcleanup142
    125 
    126 lpad19:                                           ; preds = %for.body
    127   %5 = landingpad { i8*, i32 }
    128           cleanup
    129   br label %ehcleanup142
    130 
    131 vector.body:                                      ; preds = %vector.body, %if.end
    132   %vec.phi = phi <8 x i32> [ %10, %vector.body ], [ undef, %if.end ]
    133   %vec.phi1302 = phi <8 x i32> [ %11, %vector.body ], [ undef, %if.end ]
    134   %vec.phi1303 = phi <8 x i32> [ %12, %vector.body ], [ undef, %if.end ]
    135   %vec.phi1304 = phi <8 x i32> [ %13, %vector.body ], [ undef, %if.end ]
    136   %6 = icmp sgt <8 x i32> undef, %vec.phi
    137   %7 = icmp sgt <8 x i32> undef, %vec.phi1302
    138   %8 = icmp sgt <8 x i32> undef, %vec.phi1303
    139   %9 = icmp sgt <8 x i32> undef, %vec.phi1304
    140   %10 = select <8 x i1> %6, <8 x i32> undef, <8 x i32> %vec.phi
    141   %11 = select <8 x i1> %7, <8 x i32> undef, <8 x i32> %vec.phi1302
    142   %12 = select <8 x i1> %8, <8 x i32> undef, <8 x i32> %vec.phi1303
    143   %13 = select <8 x i1> %9, <8 x i32> undef, <8 x i32> %vec.phi1304
    144   br label %vector.body
    145 
    146 ehcleanup142:                                     ; preds = %lpad19, %lpad.i.i.i, %lpad5, %lpad3, %lpad, %lpad.i
    147   resume { i8*, i32 } undef
    148 }
    149 
    150 attributes #0 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
    151 attributes #1 = { noreturn "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
    152 attributes #2 = { inlinehint "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
    153 
    154