diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-02 20:18:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-02 20:18:37 +0000 |
commit | f36c34f625f89177d367cc17e7dd01b3083462c5 (patch) | |
tree | 673438ce7b987d7739bb1f32d7ba8723214daf06 /test/Transforms | |
parent | 17c48f733744dab520f209500747d712f6b73742 (diff) | |
download | external_llvm-f36c34f625f89177d367cc17e7dd01b3083462c5.zip external_llvm-f36c34f625f89177d367cc17e7dd01b3083462c5.tar.gz external_llvm-f36c34f625f89177d367cc17e7dd01b3083462c5.tar.bz2 |
First testcase for SCCP pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/SCCP/2002-05-02-MissSecondInst.ll | 12 | ||||
-rw-r--r-- | test/Transforms/SCCP/Makefile | 10 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/Transforms/SCCP/2002-05-02-MissSecondInst.ll b/test/Transforms/SCCP/2002-05-02-MissSecondInst.ll new file mode 100644 index 0000000..8029456 --- /dev/null +++ b/test/Transforms/SCCP/2002-05-02-MissSecondInst.ll @@ -0,0 +1,12 @@ +; RUN: if as < %s | opt -sccp | dis | grep sub +; RUN: then exit 1 +; RUN: else exit 0 +; RUN: fi + +void "test3"(int, int) +begin + add int 0, 0 + sub int 0, 4 + ret void +end + diff --git a/test/Transforms/SCCP/Makefile b/test/Transforms/SCCP/Makefile new file mode 100644 index 0000000..91acd4d --- /dev/null +++ b/test/Transforms/SCCP/Makefile @@ -0,0 +1,10 @@ + +LEVEL = ../../../.. +include $(LEVEL)/test/Makefile.tests + +TESTS := $(wildcard *.ll) + +all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out)) + +Output/%.ll.out: %.ll Output/.dir $(LOPT) + -$(TESTRUNR) $< |