2009-09-09 00:50:01 +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
|
|
|
|
2008-03-01 17:15:35 +08: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 08:39:25 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
invoke_cont: ; preds = %0
|
|
|
|
ret float* %tmp.11
|
|
|
|
|
|
|
|
X: ; preds = %0
|
|
|
|
ret float* null
|
2003-10-30 08:39:25 +08:00
|
|
|
}
|
2008-03-01 17:15:35 +08:00
|
|
|
|