[llvm-commits] CVS: llvm/test/Programs/Makefile.programs
Chris Lattner
lattner at cs.uiuc.edu
Fri Jan 17 12:58:01 PST 2003
Changes in directory llvm/test/Programs:
Makefile.programs updated: 1.28 -> 1.29
---
Log message:
Add support for USE_PRECOMPILED_BYTECODE to copy over reference outputs
---
Diffs of the changes:
Index: llvm/test/Programs/Makefile.programs
diff -u llvm/test/Programs/Makefile.programs:1.28 llvm/test/Programs/Makefile.programs:1.29
--- llvm/test/Programs/Makefile.programs:1.28 Fri Jan 17 11:47:43 2003
+++ llvm/test/Programs/Makefile.programs Fri Jan 17 12:57:35 2003
@@ -127,35 +127,46 @@
all:: $(LLIDIFFS)
endif
+#
+# Rules to compile the program for the C Back End
+#
Output/%.cbe.c: Output/%.llvm.bc $(LDIS)
$(LDIS) -c < $< > $@
Output/%.cbe: Output/%.cbe.c
$(CC) -o $@ $< $(LDFLAGS) $(CFLAGS)
+#
+# Rules to execute the program
+#
+RUN_OPTIONS += 2>&1
ifdef INPUT_FILENAME
RUN_OPTIONS += < $(INPUT_FILENAME)
endif
# Rules to build the test output...
+ifndef USE_PRECOMPILED_BYTECODE
$(PROGRAMS_TO_TEST:%=Output/%.out-nat): \
Output/%.out-nat: Output/%.native
-$< > $@ 2>&1 $(RUN_OPTIONS)
+endif
$(PROGRAMS_TO_TEST:%=Output/%.out-lli): \
Output/%.out-lli: Output/%.llvm.bc $(LLI)
- -$(LLI) -q -abort-on-exception -force-interpreter=true $< > $@ 2>&1 $(RUN_OPTIONS)
+ -$(LLI) -q -abort-on-exception -force-interpreter=true $< > $@ $(RUN_OPTIONS)
$(PROGRAMS_TO_TEST:%=Output/%.out-jit): \
Output/%.out-jit: Output/%.llvm.bc $(LLI)
- -$(LLI) -force-interpreter=false $< > $@ 2>&1 $(RUN_OPTIONS)
+ -$(LLI) -force-interpreter=false $< > $@ $(RUN_OPTIONS)
$(PROGRAMS_TO_TEST:%=Output/%.out-llc): \
Output/%.out-llc: Output/%.llc
- -$< > $@ 2>&1 $(RUN_OPTIONS)
+ -$< > $@ $(RUN_OPTIONS)
$(PROGRAMS_TO_TEST:%=Output/%.out-cbe): \
Output/%.out-cbe: Output/%.cbe
- -$< > $@ 2>&1 $(RUN_OPTIONS)
+ -$< > $@ $(RUN_OPTIONS)
+#
# Rules to diff test output...
+#
$(PROGRAMS_TO_TEST:%=Output/%.diff-lli): \
Output/%.diff-lli: Output/%.out-nat Output/%.out-lli
$(DIFFPROG) lli $*
@@ -186,7 +197,13 @@
PROGDIR := $(shell cd $(LEVEL)/test/Programs; pwd)
SRCDIR := $(BYTECODE_REPOSITORY)/$(subst $(PROGDIR),,$(CURDIR))
-# To Make a file up-to-date, just copy it over.
+# Because we don't have source code, we cannot build a native version of the
+# executable. Copy over pregenerated reference output.
+$(PROGRAMS_TO_TEST:%=Output/%.out-nat): \
+Output/%.out-nat: $(SRCDIR)/%.reference_output Output/.dir
+ cp $< $@
+
+# To make a bytecode file up-to-date, just copy it over.
$(PROGRAMS_TO_TEST:%=Output/%.llvm.bc): \
Output/%.llvm.bc: $(SRCDIR)/%.bc Output/.dir
cp $< $@
More information about the llvm-commits
mailing list