2009-09-11 18:01:28 +00:00
|
|
|
; RUN: opt < %s -instcombine -disable-output
|
2003-10-30 00:39:25 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
declare i32* @bar()
|
2003-10-30 00:39:25 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
define float* @foo() {
|
|
|
|
%tmp.11 = invoke float* bitcast (i32* ()* @bar to float* ()*)( )
|
|
|
|
to label %invoke_cont unwind label %X ; <float*> [#uses=1]
|
2003-10-30 00:39:25 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
invoke_cont: ; preds = %0
|
|
|
|
ret float* %tmp.11
|
|
|
|
|
|
|
|
X: ; preds = %0
|
2011-09-01 01:28:25 +00:00
|
|
|
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
|
|
|
|
cleanup
|
2008-03-01 09:15:35 +00:00
|
|
|
ret float* null
|
2003-10-30 00:39:25 +00:00
|
|
|
}
|
2008-03-01 09:15:35 +00:00
|
|
|
|
2011-09-01 01:28:25 +00:00
|
|
|
declare i32 @__gxx_personality_v0(...)
|