| Chris Lattner | 86bbf33 | 2008-04-24 00:01:19 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | opt -simplifycfg -disable-output | 
|  | 2 | ; rdar://5882392 | 
|  | 3 | target 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" | 
|  | 4 | target triple = "x86_64-apple-darwin9" | 
|  | 5 | %struct.Py_complex = type { double, double } | 
|  | 6 |  | 
|  | 7 | define %struct.Py_complex @_Py_c_pow(double %a.0, double %a.1, double %b.0, double %b.1) nounwind  { | 
|  | 8 | entry: | 
|  | 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 |  | 
|  | 14 | bb15:		; 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 |  | 
|  | 20 | bb27:		; 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 |  | 
|  | 25 | bb29:		; preds = %bb15 | 
|  | 26 | %tmp36 = fcmp une double %b.1, 0.000000e+00		; <i1> [#uses=1] | 
|  | 27 | br i1 %tmp36, label %bb39, label %bb47 | 
|  | 28 |  | 
|  | 29 | bb39:		; preds = %bb29 | 
|  | 30 | br label %bb47 | 
|  | 31 |  | 
|  | 32 | bb47:		; preds = %bb39, %bb29 | 
|  | 33 | ret double undef, double undef | 
|  | 34 |  | 
|  | 35 | bb53:		; preds = %entry | 
|  | 36 | ret double undef, double undef | 
|  | 37 | } | 
|  | 38 |  | 
|  | 39 | declare i32* @__error() | 
|  | 40 |  | 
|  | 41 | declare double @pow(double, double) nounwind readonly | 
|  | 42 |  | 
|  | 43 | declare double @cos(double) nounwind readonly |