2013-06-28 01:29:35 +00:00
|
|
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
2006-04-20 14:54:17 +00:00
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
target datalayout = "e-p:32:32"
|
2006-04-20 14:54:17 +00:00
|
|
|
target triple = "i686-pc-linux-gnu"
|
|
|
|
|
2013-06-28 01:29:35 +00:00
|
|
|
; CHECK-NOT: bitcast
|
|
|
|
; CHECK: call
|
|
|
|
; CHECK-NOT: bitcast
|
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
define i32 @main() {
|
2006-04-20 14:54:17 +00:00
|
|
|
entry:
|
2008-03-09 08:16:40 +00:00
|
|
|
%tmp = call i32 bitcast (i8* (i32*)* @ctime to i32 (i32*)*)( i32* null ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %tmp
|
2006-04-20 14:54:17 +00:00
|
|
|
}
|
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
declare i8* @ctime(i32*)
|
|
|
|
|