blob: 8e05a3cddca2110269aa481f0091f7950ad83483 [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -simplifycfg -disable-output
Chris Lattnerdc2dc022008-04-24 00:01:19 +00002; rdar://5882392
3target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
4target triple = "x86_64-apple-darwin9"
5 %struct.Py_complex = type { double, double }
6
7define %struct.Py_complex @_Py_c_pow(double %a.0, double %a.1, double %b.0, double %b.1) nounwind {
8entry:
9 %tmp7 = fcmp une double %b.0, 0.000000e+00 ; <i1> [#uses=1]
10 %tmp11 = fcmp une double %b.1, 0.000000e+00 ; <i1> [#uses=1]
11 %bothcond = or i1 %tmp7, %tmp11 ; <i1> [#uses=1]
12 br i1 %bothcond, label %bb15, label %bb53
13
14bb15: ; preds = %entry
15 %tmp18 = fcmp une double %a.0, 0.000000e+00 ; <i1> [#uses=1]
16 %tmp24 = fcmp une double %a.1, 0.000000e+00 ; <i1> [#uses=1]
17 %bothcond1 = or i1 %tmp18, %tmp24 ; <i1> [#uses=1]
18 br i1 %bothcond1, label %bb29, label %bb27
19
20bb27: ; preds = %bb15
21 %tmp28 = call i32* @__error( ) nounwind ; <i32*> [#uses=1]
22 store i32 33, i32* %tmp28, align 4
23 ret double undef, double undef
24
25bb29: ; preds = %bb15
26 %tmp36 = fcmp une double %b.1, 0.000000e+00 ; <i1> [#uses=1]
27 br i1 %tmp36, label %bb39, label %bb47
28
29bb39: ; preds = %bb29
30 br label %bb47
31
32bb47: ; preds = %bb39, %bb29
33 ret double undef, double undef
34
35bb53: ; preds = %entry
36 ret double undef, double undef
37}
38
39declare i32* @__error()
40
41declare double @pow(double, double) nounwind readonly
42
43declare double @cos(double) nounwind readonly