aboutsummaryrefslogtreecommitdiff
path: root/LLVMSource
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-01 18:11:55 +0000
committerChris Lattner <sabre@nondot.org>2003-07-01 18:11:55 +0000
commit297077dcd5ebdc82e847771e69380d3ac16d5487 (patch)
tree078b42ca13891db5c1269c5b20ee08afa0d00b5a /LLVMSource
parentad1959c9cbbd0eefe1296f3fea86810512dce735 (diff)
Rules for running .ll programs
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@7040 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'LLVMSource')
-rw-r--r--LLVMSource/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/LLVMSource/Makefile b/LLVMSource/Makefile
new file mode 100644
index 00000000..e7a3fb6e
--- /dev/null
+++ b/LLVMSource/Makefile
@@ -0,0 +1,27 @@
+# test/Programs/LLVMSource/Makefile
+#
+# This directory contains regression tests for LLVM backends written in LLVM
+# assembly language.
+#
+LEVEL = ../../..
+DISABLE_FOR_LLVM_PROGRAMS := 1
+PROGRAM_REQUIRED_TO_EXIT_OK := 1
+PROGRAMS_TO_TEST := $(basename $(wildcard *.ll))
+include $(LEVEL)/test/Programs/Makefile.programs
+
+LLVM_SOURCE_BYTECODES := $(PROGRAMS_TO_TEST:%=Output/%.llvm.bc)
+
+$(LLVM_SOURCE_BYTECODES): \
+Output/%.llvm.bc: %.ll $(LAS) Output/.dir
+ $(LAS) $< -f -o $@
+
+all:: $(CBEOUTPUT)
+
+ifdef TARGET_HAS_JIT
+all:: $(JITOUTPUT)
+endif
+
+ifndef DISABLE_LLC_DIFFS
+all:: $(LLCOUTPUT)
+endif
+