summaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-31 05:36:19 +0000
committerChris Lattner <sabre@nondot.org>2005-01-31 05:36:19 +0000
commit71dd598023957322407d1d9af9996d4460da3bd8 (patch)
tree04ca5c66e33ba46009cab49991d39c7fbfc32933 /test/Transforms/InstCombine
parent2a73a0bbb130fc00a59958acab12bc950985f4b0 (diff)
downloadexternal_llvm-71dd598023957322407d1d9af9996d4460da3bd8.zip
external_llvm-71dd598023957322407d1d9af9996d4460da3bd8.tar.gz
external_llvm-71dd598023957322407d1d9af9996d4460da3bd8.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r--test/Transforms/InstCombine/store.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/store.ll b/test/Transforms/InstCombine/store.ll
new file mode 100644
index 0000000..6982e0d
--- /dev/null
+++ b/test/Transforms/InstCombine/store.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep -v 'store.*,.*null' | not grep store
+
+
+void %test1(int* %P) {
+ store int undef, int* %P
+ store int 123, int* undef
+ store int 124, int* null
+ ret void
+}