aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/call-cast-target.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/call-cast-target.ll')
-rw-r--r--test/Transforms/InstCombine/call-cast-target.ll16
1 files changed, 7 insertions, 9 deletions
diff --git a/test/Transforms/InstCombine/call-cast-target.ll b/test/Transforms/InstCombine/call-cast-target.ll
index 6d96490..1a02514 100644
--- a/test/Transforms/InstCombine/call-cast-target.ll
+++ b/test/Transforms/InstCombine/call-cast-target.ll
@@ -1,16 +1,14 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
+; 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*)
+