summaryrefslogtreecommitdiff
path: root/test/BugPoint
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-20 22:30:02 +0000
committerChris Lattner <sabre@nondot.org>2002-11-20 22:30:02 +0000
commitd9624b04a1836b5dc52c8f0146acdf8839aa9622 (patch)
tree654991d1196989981e33001d2a7658986ded55c1 /test/BugPoint
parent21049cf266f6c82bef8acfbe7b679e4e8ae6a91c (diff)
downloadllvm-d9624b04a1836b5dc52c8f0146acdf8839aa9622.tar.gz
llvm-d9624b04a1836b5dc52c8f0146acdf8839aa9622.tar.bz2
llvm-d9624b04a1836b5dc52c8f0146acdf8839aa9622.tar.xz
Checkin testcases for bugpoint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/BugPoint')
-rw-r--r--test/BugPoint/Makefile17
-rw-r--r--test/BugPoint/crash-basictest.ll7
-rw-r--r--test/BugPoint/crash-narrowfunctiontest.ll13
3 files changed, 37 insertions, 0 deletions
diff --git a/test/BugPoint/Makefile b/test/BugPoint/Makefile
new file mode 100644
index 0000000000..9ccafc73ac
--- /dev/null
+++ b/test/BugPoint/Makefile
@@ -0,0 +1,17 @@
+# test/Regression/Assembler/Makefile
+#
+# This directory contains regression tests for the LLVM assembler program.
+# These LLVM source file tests are just required to assembler properly to pass.
+#
+LEVEL = ../../..
+include $(LEVEL)/test/Makefile.tests
+
+TESTS := $(wildcard *.ll)
+
+all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
+
+Output/%.ll.out: %.ll Output/.dir $(LAS) $(LBUGPOINT)
+ -$(TESTRUNR) $<
+
+clean::
+ rm -f *.bc
diff --git a/test/BugPoint/crash-basictest.ll b/test/BugPoint/crash-basictest.ll
new file mode 100644
index 0000000000..3c5804ced7
--- /dev/null
+++ b/test/BugPoint/crash-basictest.ll
@@ -0,0 +1,7 @@
+; Basic test for bugpoint.
+; RUN: bugpoint %s -domset -idom -domset -bugpoint-crashcalls -domset -idom -domset
+
+int %test() {
+ call int %test()
+ ret int %0
+}
diff --git a/test/BugPoint/crash-narrowfunctiontest.ll b/test/BugPoint/crash-narrowfunctiontest.ll
new file mode 100644
index 0000000000..8927ba1905
--- /dev/null
+++ b/test/BugPoint/crash-narrowfunctiontest.ll
@@ -0,0 +1,13 @@
+; Test that bugpoint can narrow down the testcase to the important function
+;
+; RUN: bugpoint %s -bugpoint-crashcalls
+
+int %foo() { ret int 1 }
+
+int %test() {
+ call int %test()
+ ret int %0
+}
+
+int %bar() { ret int 2 }
+