1 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu
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, ptr }
8 %"class.std::exception.1523.4250.4553.8492" = type { ptr }
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", ptr }
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 { ptr, [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, ptr }
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
27 declare void @_ZN4FoamlsERNS_7OstreamEPKc() #0
29 declare i32 @__gxx_personality_v0(...)
31 declare void @_ZNKSt3__18ios_base6getlocEv() #0
33 declare void @_ZNKSt3__16locale9use_facetERNS0_2idE() #0
35 ; Function Attrs: noreturn
36 declare void @_ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv() #1 align 2
38 declare void @_ZN4Foam6string6expandEb() #0
40 declare void @_ZN4Foam8IFstreamC1ERKNS_8fileNameENS_8IOstream12streamFormatENS4_13versionNumberE() #0
42 declare void @_ZN4Foam7IOerrorclEPKcS2_iRKNS_8IOstreamE() #0
44 declare void @_ZN4Foam7IOerror4exitEi() #0
46 ; Function Attrs: inlinehint
47 declare void @_ZN4Foam8fileName12stripInvalidEv() #2 align 2
49 define void @_ZN4Foam3CSVINS_6VectorIdEEE4readEv() #0 align 2 personality ptr @__gxx_personality_v0 {
51 invoke void @_ZN4Foam6string6expandEb()
52 to label %invoke.cont unwind label %lpad
54 invoke.cont: ; preds = %entry
55 br i1 undef, label %if.then.i.i.i.i176, label %_ZN4Foam6stringC2ERKS0_.exit.i
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
61 .noexc: ; preds = %if.then.i.i.i.i176
64 _ZN4Foam6stringC2ERKS0_.exit.i: ; preds = %invoke.cont
65 invoke void @_ZN4Foam8fileName12stripInvalidEv()
66 to label %invoke.cont2 unwind label %lpad.i
68 lpad.i: ; preds = %_ZN4Foam6stringC2ERKS0_.exit.i
69 %0 = landingpad { ptr, i32 }
71 br label %ehcleanup142
73 invoke.cont2: ; preds = %_ZN4Foam6stringC2ERKS0_.exit.i
74 invoke void @_ZN4Foam8IFstreamC1ERKNS_8fileNameENS_8IOstream12streamFormatENS4_13versionNumberE()
75 to label %invoke.cont4 unwind label %lpad3
77 invoke.cont4: ; preds = %invoke.cont2
78 br i1 undef, label %for.body, label %if.then
80 if.then: ; preds = %invoke.cont4
81 invoke void @_ZN4Foam7IOerrorclEPKcS2_iRKNS_8IOstreamE()
82 to label %invoke.cont8 unwind label %lpad5
84 invoke.cont8: ; preds = %if.then
85 invoke void @_ZN4FoamlsERNS_7OstreamEPKc()
86 to label %memptr.end.i unwind label %lpad5
88 memptr.end.i: ; preds = %invoke.cont8
89 invoke void @_ZN4Foam7IOerror4exitEi()
90 to label %if.end unwind label %lpad5
92 lpad: ; preds = %if.then.i.i.i.i176, %entry
93 %1 = landingpad { ptr, i32 }
95 br label %ehcleanup142
97 lpad3: ; preds = %invoke.cont2
98 %2 = landingpad { ptr, i32 }
100 br label %ehcleanup142
102 lpad5: ; preds = %memptr.end.i, %invoke.cont8, %if.then
103 %3 = landingpad { ptr, i32 }
105 br label %ehcleanup142
107 if.end: ; preds = %memptr.end.i
108 br i1 undef, label %for.body, label %vector.body
110 for.body: ; preds = %if.end, %invoke.cont4
111 invoke void @_ZNKSt3__18ios_base6getlocEv()
112 to label %.noexc205 unwind label %lpad19
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
118 invoke.cont.i.i.i: ; preds = %.noexc205
121 lpad.i.i.i: ; preds = %.noexc205
122 %4 = landingpad { ptr, i32 }
124 br label %ehcleanup142
126 lpad19: ; preds = %for.body
127 %5 = landingpad { ptr, i32 }
129 br label %ehcleanup142
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
146 ehcleanup142: ; preds = %lpad19, %lpad.i.i.i, %lpad5, %lpad3, %lpad, %lpad.i
147 resume { ptr, i32 } undef
150 attributes #0 = { "less-precise-fpmad"="false" "frame-pointer"="all" "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" "frame-pointer"="all" "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" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }