New testcase for PR491
authorChris Lattner <sabre@nondot.org>
Wed, 29 Dec 2004 04:27:26 +0000 (04:27 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Dec 2004 04:27:26 +0000 (04:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19178 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll [new file with mode: 0644]

diff --git a/test/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll b/test/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll
new file mode 100644 (file)
index 0000000..c28e79e
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | opt -dse | llvm-dis | grep 'store int 1234567'
+
+int %test() {
+       %V = alloca int
+       store int 1234567, int* %V
+       %V2 = cast int* %V to sbyte*
+       store sbyte 0, sbyte* %V2
+       %X = load int* %V
+       ret int %X
+}