2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -instcombine -S | \
|
2007-04-15 04:13:02 +08:00
|
|
|
; RUN: grep call | not grep bitcast
|
2006-04-20 22:54:17 +08:00
|
|
|
|
2008-03-09 16:16:40 +08:00
|
|
|
target datalayout = "e-p:32:32"
|
2006-04-20 22:54:17 +08:00
|
|
|
target triple = "i686-pc-linux-gnu"
|
|
|
|
|
2008-03-09 16:16:40 +08:00
|
|
|
define i32 @main() {
|
2006-04-20 22:54:17 +08:00
|
|
|
entry:
|
2008-03-09 16:16:40 +08:00
|
|
|
%tmp = call i32 bitcast (i8* (i32*)* @ctime to i32 (i32*)*)( i32* null ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %tmp
|
2006-04-20 22:54:17 +08:00
|
|
|
}
|
|
|
|
|
2008-03-09 16:16:40 +08:00
|
|
|
declare i8* @ctime(i32*)
|
|
|
|
|