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