From 4229be3ce76a09256ef1cc22cc7c57b28bd50eec Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 10 Sep 2002 19:41:57 +0000 Subject: [PATCH] New testcase for poitner problem git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3657 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/LevelRaise/2002-09-10-PointerAdds.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Transforms/LevelRaise/2002-09-10-PointerAdds.ll 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 +} -- 2.34.1