2009-09-11 18:01:28 +00:00
|
|
|
; RUN: opt < %s -instcombine -S | \
|
2007-04-14 20:13:02 +00:00
|
|
|
; RUN: grep call | not grep bitcast
|
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"
|
|
|
|
|
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*)
|
|
|
|
|