diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-08-28 23:26:44 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-08-28 23:26:44 +0000 |
commit | 5b7d0bf98861448d2f704d1868efe945907087ec (patch) | |
tree | 268db9089adf4f568ccd9b0eec465b30ccec0827 /test/Makefile | |
parent | 840f53ae8ea31f31c11ef555a3faf1d9b1fa8a4b (diff) | |
download | external_llvm-5b7d0bf98861448d2f704d1868efe945907087ec.zip external_llvm-5b7d0bf98861448d2f704d1868efe945907087ec.tar.gz external_llvm-5b7d0bf98861448d2f704d1868efe945907087ec.tar.bz2 |
Add testcodegen target, and restrict which tests are run for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/test/Makefile b/test/Makefile index 4934e41..b75762f 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,16 +1,26 @@ +LLVM := /home/vadve/vadve/Research/DynOpt/LLVM/llvm +LLC := $(LLVM)/tools/llc/llc +AS := $(LLVM)/tools/as/as +LLCOPTS := -dsched t + TESTS := $(wildcard *.ll) -SELECTTESTS := $(shell /bin/ls *.ll | grep -v testmemory | grep -v testswitch") +LLCTESTS := $(shell /bin/ls *.ll | grep -v testmemory | grep -v testswitch | grep -v sumarray) + -test all : testasmdis testopt +test all : testasmdis testopt testcodegen @echo "All tests successfully completed!" -testasmdis : $(TESTS:%.ll=%.ll.asmdis) +testasmdis : $(TESTS:%.ll=%.ll.asmdis) @echo "All assembler/disassembler test succeeded!" -testopt : $(TESTS:%.ll=%.ll.opt) +testopt : $(TESTS:%.ll=%.ll.opt) + +testselect : $(LLCTESTS:%.ll=%.mc) + +testsched : $(LLCTESTS:%.ll=%.mc) -testselect : $(SELECTTESTS:%.ll=%.mc) +testcodegen : $(LLCTESTS:%.ll=%.mc) clean : rm -f *.[123] *.bc *.mc core @@ -23,10 +33,10 @@ clean : @echo "Running optimizier test on $<" @./TestOptimizer.sh $< -%.bc: %.ll +%.bc: %.ll $(AS) rm -f $@ - as $< + $(AS) $< -%.mc: %.bc +%.mc: %.bc $(LLC) @echo "Generating machine instructions for $<" - @llc -dselect y $< > $@ + $(LLC) $(LLCOPTS) $< > $@ |