aboutsummaryrefslogtreecommitdiffstats
path: root/projects/Stacker/test
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-11-24 02:57:25 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-11-24 02:57:25 +0000
commit3e4a271c891e98ace9f0833bf12fca75b03a2e8c (patch)
tree2cce74f08803942d2db31cc7bd9393851531d1ef /projects/Stacker/test
parent866f10c493ea7c38a53af021267e3e9f76af6164 (diff)
downloadexternal_llvm-3e4a271c891e98ace9f0833bf12fca75b03a2e8c.zip
external_llvm-3e4a271c891e98ace9f0833bf12fca75b03a2e8c.tar.gz
external_llvm-3e4a271c891e98ace9f0833bf12fca75b03a2e8c.tar.bz2
Apply patches from PR136
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects/Stacker/test')
-rw-r--r--projects/Stacker/test/Makefile28
1 files changed, 19 insertions, 9 deletions
diff --git a/projects/Stacker/test/Makefile b/projects/Stacker/test/Makefile
index c7680dc..e4c7d9a 100644
--- a/projects/Stacker/test/Makefile
+++ b/projects/Stacker/test/Makefile
@@ -34,28 +34,38 @@ TESTS = $(LOGIC_TESTS) $(ARITHMETIC_TESTS) $(BITWISE_TESTS) $(STACK_TESTS) \
all :: test_each
test_each: $(TESTS)
- $(BUILD_SRC_DIR)/runtests $(BUILD_OBJ_DIR) $(TESTS)
+ @$(ECHO) "Running Tests..."
+ $(VERB)$(BUILD_SRC_DIR)/runtests $(BUILD_OBJ_DIR) $(TESTS)
% : %.s testing.s
- gcc -ggdb -L$(BUILD_OBJ_ROOT)/lib/Debug testing.s -lstkr_runtime -o $* $*.s
+ @$(ECHO) "Compiling and Linking $< to $*"
+ $(VERB)gcc -ggdb -L$(BUILD_OBJ_ROOT)/lib/Debug testing.s -lstkr_runtime -o $* $*.s
%.s : %.bc
- llc -f -o $*.s $<
+ @$(ECHO) "Compiling $< to $*.s"
+ $(VERB)llc -f -o $*.s $<
ifdef OPTIMIZE
%.bc : %.st $(BUILD_OBJ_ROOT)/tools/Debug/stkrc
- stkrc -e -o - $< | opt -stats -q -f -o $*.bc -adce -branch-combine -cee -constmerge -constprop -dce -die -gcse -globaldce -instcombine -pre
+ @$(ECHO) "Compiling and Optimizing $< to $*.bc"
+ $(VERB)stkrc -e -o - $< | opt -stats -q -f -o $*.bc -adce -branch-combine -cee -constmerge -constprop -dce -die -gcse -globaldce -instcombine -pre
else
%.bc : %.st $(BUILD_OBJ_ROOT)/tools/Debug/stkrc
- stkrc -e -f -o $*.bc $<
+ @$(ECHO) "Compiling $< to $*.bc"
+ $(VERB)stkrc -e -f -o $*.bc $<
endif
%.ll : %.bc
- llvm-dis -o $*.ll $<
+ @$(ECHO) "Disassembling $< to $*.ll"
+ $(VERB)llvm-dis -o $*.ll $<
+
+TESTS_LL = $(TESTS:%=%.ll)
+TESTS_BC = $(TESTS:%=%.bc)
+TESTS_S = $(TESTS:%=%.s)
clean ::
- rm -f $(TESTS)
+ $(VERB)rm -f gmon.out $(TESTS_LL) $(TESTS_BC) $(TESTS_S) $(TESTS) testing.bc testing.s testing.ll
-.SUFFIXES: .st .s .ll
+.SUFFIXES: .st .s .ll .bc
.PRECIOUS: %.s %.ll %.bc %.st
-.PHONY: test_each test_asm
+.PHONY: test_each