From: Chris Lattner Date: Tue, 10 Sep 2002 19:41:57 +0000 (+0000) Subject: New testcase for poitner problem X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4229be3ce76a09256ef1cc22cc7c57b28bd50eec;p=oota-llvm.git New testcase for poitner problem git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3657 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/LevelRaise/2002-09-10-PointerAdds.ll b/test/Transforms/LevelRaise/2002-09-10-PointerAdds.ll new file mode 100644 index 00000000000..493b88fcfd4 --- /dev/null +++ b/test/Transforms/LevelRaise/2002-09-10-PointerAdds.ll @@ -0,0 +1,9 @@ +; RUN: as < %s | opt -raise + +int* %test(int* %P, int* %Q) { + %P = cast int* %P to ulong + %Q = cast int* %Q to ulong + %V = add ulong %P, %Q + %V = cast ulong %V to int* + ret int* %V +}