Move a DenseMap's declaration outside of a loop, and just call
[oota-llvm.git] / test / Transforms / InstCombine / call-cast-target.ll
index a197742a66c5e04abe9c92e6637d231237c9a286..1a02514d1a7bc9dbdea18592631b1c385e695a21 100644 (file)
@@ -1,15 +1,14 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | not grep cast
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
+; RUN:   grep call | not grep bitcast
 
-target endian = little
-target pointersize = 32
+target datalayout = "e-p:32:32"
 target triple = "i686-pc-linux-gnu"
 
-implementation   ; Functions:
-
-int %main() {
+define i32 @main() {
 entry:
-       %tmp = call int cast (sbyte* (int*)* %ctime to int (int*)*)( int* null )
-       ret int %tmp
+        %tmp = call i32 bitcast (i8* (i32*)* @ctime to i32 (i32*)*)( i32* null )          ; <i32> [#uses=1]
+        ret i32 %tmp
 }
 
-declare sbyte* %ctime(int*)
+declare i8* @ctime(i32*)
+