summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/IntPtrCast.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/IntPtrCast.ll')
-rw-r--r--test/Transforms/InstCombine/IntPtrCast.ll14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/Transforms/InstCombine/IntPtrCast.ll b/test/Transforms/InstCombine/IntPtrCast.ll
index 7ff71c86b7..e24d199f8c 100644
--- a/test/Transforms/InstCombine/IntPtrCast.ll
+++ b/test/Transforms/InstCombine/IntPtrCast.ll
@@ -1,9 +1,9 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | notcast
-target endian = little
-target pointersize = 32
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast
+target datalayout = "e-p:32:32"
-int *%test(int *%P) {
- %V = cast int* %P to int
- %P2 = cast int %V to int*
- ret int* %P2
+define i32* @test(i32* %P) {
+ %V = ptrtoint i32* %P to i32 ; <i32> [#uses=1]
+ %P2 = inttoptr i32 %V to i32* ; <i32*> [#uses=1]
+ ret i32* %P2
}
+