diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-24 02:57:25 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-24 02:57:25 +0000 |
commit | 49f7a39017fba8574451deab3e3182e9fc4b0320 (patch) | |
tree | f63b6fd6fb89f9c35bb1437fc6be79e8d0917134 /llvm/projects/Stacker/test | |
parent | cd52465b70bfd5dd5e1968863ef43fca7912a1cf (diff) | |
download | bcm5719-llvm-49f7a39017fba8574451deab3e3182e9fc4b0320.tar.gz bcm5719-llvm-49f7a39017fba8574451deab3e3182e9fc4b0320.zip |
Apply patches from PR136
llvm-svn: 10192
Diffstat (limited to 'llvm/projects/Stacker/test')
-rw-r--r-- | llvm/projects/Stacker/test/Makefile | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/llvm/projects/Stacker/test/Makefile b/llvm/projects/Stacker/test/Makefile index c7680dcaf55..e4c7d9a5b54 100644 --- a/llvm/projects/Stacker/test/Makefile +++ b/llvm/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 |