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