[SystemZ] Add test missing from r186148
[oota-llvm.git] / test / Transforms / InstCombine / apint-call-cast-target.ll
index 6201c72d85ba4ebcebfd0c7bae38c1e1dc39869b..7d7c8fa503f17cc4c41f09294e4bb4685e0e99f7 100644 (file)
@@ -1,14 +1,19 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | not grep bitcast
+; RUN: opt < %s -instcombine -S | FileCheck %s
 
 target datalayout = "e-p:32:32"
 target triple = "i686-pc-linux-gnu"
 
-implementation   ; Functions:
-
+; CHECK-NOT: bitcast
+; CHECK: call
+; CHECK-NOT: bitcast
 define i32 @main() {
 entry:
        %tmp = call i32 bitcast (i7* (i999*)* @ctime to i32 (i99*)*)( i99* null )
        ret i32 %tmp
 }
 
-declare i7* @ctime(i999*)
+define i7* @ctime(i999*) {
+entry:
+       %tmp = call i7* bitcast (i32 ()* @main to i7* ()*)( )
+       ret i7* %tmp
+}