... | ... |
@@ -790,13 +790,25 @@ build-llvm: |
790 | 790 |
build-llvm-for-check: |
791 | 791 |
+$(GMAKE) -C llvm OPTIMIZE_OPTION=-O2 tools-only |
792 | 792 |
|
793 |
+# Don't use make -C here, otherwise there's a racecondition between distclean |
|
794 |
+# and clean (distclean removes all Makefiles in llvm/) |
|
793 | 795 |
clean-local: |
794 |
- +$(GMAKE) -C llvm/test clean |
|
796 |
+ rm -rf `find llvm/test -name Output -type d -print` |
|
795 | 797 |
rm -rf llvm/Release llvm/Debug |
796 | 798 |
rm -f *.inc |
797 | 799 |
rm -f llvm/include/llvm/Intrinsics.gen |
798 | 800 |
rm -f llvm/test/site.exp llvm/test/site.bak llvm/test/*.out llvm/test/*.sum llvm/test/*.log |
799 | 801 |
|
802 |
+distclean-local: |
|
803 |
+ rm -f llvm/lib/Makefile llvm/docs/doxygen.cfg llvm/test/Unit/.dir llvm/test/Unit/lit.site.cfg |
|
804 |
+ rm -f llvm/test/Makefile llvm/test/lit.site.cfg llvm/test/Makefile.tests llvm/Makefile llvm/config.status |
|
805 |
+ rm -f llvm/mklib llvm/tools/Makefile llvm/tools/llvmc/llvm-config.in llvm/utils/Makefile |
|
806 |
+ rm -f llvm/Makefile.common llvm/Makefile.config llvm/config.log llvm/unittests/Makefile |
|
807 |
+ rm -f llvm/llvm.spec llvm/include/llvm/Config/AsmPrinters.def llvm/include/llvm/Config/config.h |
|
808 |
+ rm -f llvm/include/llvm/Support/DataTypes.h llvm/include/llvm/Config/Targets.def |
|
809 |
+ rm -f llvm/tools/llvmc/plugins/Base/Base.td llvm/tools/llvm-config/llvm-config.in |
|
810 |
+ rm -f llvm/include/llvm/Config/AsmParsers.def |
|
811 |
+ |
|
800 | 812 |
check-llvm: build-llvm-for-check |
801 | 813 |
+$(GMAKE) -C llvm check |
802 | 814 |
+$(GMAKE) -C llvm unittests |
... | ... |
@@ -6231,7 +6231,7 @@ distclean: distclean-am |
6231 | 6231 |
-rm -rf ./$(DEPDIR) |
6232 | 6232 |
-rm -f Makefile |
6233 | 6233 |
distclean-am: clean-am distclean-compile distclean-generic \ |
6234 |
- distclean-hdr distclean-libtool distclean-tags |
|
6234 |
+ distclean-hdr distclean-libtool distclean-local distclean-tags |
|
6235 | 6235 |
|
6236 | 6236 |
dvi: dvi-am |
6237 | 6237 |
|
... | ... |
@@ -6303,17 +6303,17 @@ uninstall-am: |
6303 | 6303 |
clean-noinstPROGRAMS ctags dist dist-all dist-bzip2 dist-gzip \ |
6304 | 6304 |
dist-hook dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ |
6305 | 6305 |
distcheck distclean distclean-compile distclean-generic \ |
6306 |
- distclean-hdr distclean-libtool distclean-tags distcleancheck \ |
|
6307 |
- distdir distuninstallcheck dvi dvi-am html html-am info \ |
|
6308 |
- info-am install install-am install-data install-data-am \ |
|
6309 |
- install-dvi install-dvi-am install-exec install-exec-am \ |
|
6310 |
- install-html install-html-am install-info install-info-am \ |
|
6311 |
- install-man install-pdf install-pdf-am install-ps \ |
|
6312 |
- install-ps-am install-strip installcheck installcheck-am \ |
|
6313 |
- installdirs maintainer-clean maintainer-clean-generic \ |
|
6314 |
- mostlyclean mostlyclean-compile mostlyclean-generic \ |
|
6315 |
- mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ |
|
6316 |
- uninstall-am |
|
6306 |
+ distclean-hdr distclean-libtool distclean-local distclean-tags \ |
|
6307 |
+ distcleancheck distdir distuninstallcheck dvi dvi-am html \ |
|
6308 |
+ html-am info info-am install install-am install-data \ |
|
6309 |
+ install-data-am install-dvi install-dvi-am install-exec \ |
|
6310 |
+ install-exec-am install-html install-html-am install-info \ |
|
6311 |
+ install-info-am install-man install-pdf install-pdf-am \ |
|
6312 |
+ install-ps install-ps-am install-strip installcheck \ |
|
6313 |
+ installcheck-am installdirs maintainer-clean \ |
|
6314 |
+ maintainer-clean-generic mostlyclean mostlyclean-compile \ |
|
6315 |
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ |
|
6316 |
+ tags uninstall uninstall-am |
|
6317 | 6317 |
|
6318 | 6318 |
llvm/include/llvm/Intrinsics.gen: llvm/include/llvm/Intrinsics.td $(TBLGEN) |
6319 | 6319 |
$(TBLGEN_V) $(TBLGEN_FLAGS) -gen-intrinsic -o $@ $< |
... | ... |
@@ -6422,13 +6422,25 @@ build-llvm: |
6422 | 6422 |
build-llvm-for-check: |
6423 | 6423 |
+$(GMAKE) -C llvm OPTIMIZE_OPTION=-O2 tools-only |
6424 | 6424 |
|
6425 |
+# Don't use make -C here, otherwise there's a racecondition between distclean |
|
6426 |
+# and clean (distclean removes all Makefiles in llvm/) |
|
6425 | 6427 |
clean-local: |
6426 |
- +$(GMAKE) -C llvm/test clean |
|
6428 |
+ rm -rf `find llvm/test -name Output -type d -print` |
|
6427 | 6429 |
rm -rf llvm/Release llvm/Debug |
6428 | 6430 |
rm -f *.inc |
6429 | 6431 |
rm -f llvm/include/llvm/Intrinsics.gen |
6430 | 6432 |
rm -f llvm/test/site.exp llvm/test/site.bak llvm/test/*.out llvm/test/*.sum llvm/test/*.log |
6431 | 6433 |
|
6434 |
+distclean-local: |
|
6435 |
+ rm -f llvm/lib/Makefile llvm/docs/doxygen.cfg llvm/test/Unit/.dir llvm/test/Unit/lit.site.cfg |
|
6436 |
+ rm -f llvm/test/Makefile llvm/test/lit.site.cfg llvm/test/Makefile.tests llvm/Makefile llvm/config.status |
|
6437 |
+ rm -f llvm/mklib llvm/tools/Makefile llvm/tools/llvmc/llvm-config.in llvm/utils/Makefile |
|
6438 |
+ rm -f llvm/Makefile.common llvm/Makefile.config llvm/config.log llvm/unittests/Makefile |
|
6439 |
+ rm -f llvm/llvm.spec llvm/include/llvm/Config/AsmPrinters.def llvm/include/llvm/Config/config.h |
|
6440 |
+ rm -f llvm/include/llvm/Support/DataTypes.h llvm/include/llvm/Config/Targets.def |
|
6441 |
+ rm -f llvm/tools/llvmc/plugins/Base/Base.td llvm/tools/llvm-config/llvm-config.in |
|
6442 |
+ rm -f llvm/include/llvm/Config/AsmParsers.def |
|
6443 |
+ |
|
6432 | 6444 |
check-llvm: build-llvm-for-check |
6433 | 6445 |
+$(GMAKE) -C llvm check |
6434 | 6446 |
+$(GMAKE) -C llvm unittests |
... | ... |
@@ -144,11 +144,11 @@ Suite *test_bytecode_suite(void) |
144 | 144 |
TCase *tc_cli_arith = tcase_create("arithmetic"); |
145 | 145 |
suite_add_tcase(s, tc_cli_arith); |
146 | 146 |
|
147 |
-/* tcase_add_test(tc_cli_arith, test_retmagic); |
|
147 |
+ tcase_add_test(tc_cli_arith, test_retmagic); |
|
148 | 148 |
tcase_add_test(tc_cli_arith, test_arith); |
149 | 149 |
tcase_add_test(tc_cli_arith, test_apicalls); |
150 | 150 |
tcase_add_test(tc_cli_arith, test_apicalls2); |
151 |
- tcase_add_test(tc_cli_arith, test_div0);*/ |
|
151 |
+ tcase_add_test(tc_cli_arith, test_div0); |
|
152 | 152 |
tcase_add_test(tc_cli_arith, test_lsig); |
153 | 153 |
return s; |
154 | 154 |
} |
... | ... |
@@ -522,7 +522,6 @@ int main(void) |
522 | 522 |
int nf; |
523 | 523 |
Suite *s = test_cl_suite(); |
524 | 524 |
SRunner *sr = srunner_create(s); |
525 |
- /* |
|
526 | 525 |
#ifdef CHECK_HAVE_LOOPS |
527 | 526 |
srunner_add_suite(sr, test_cli_suite()); |
528 | 527 |
#else |
... | ... |
@@ -534,7 +533,7 @@ int main(void) |
534 | 534 |
srunner_add_suite(sr, test_disasm_suite()); |
535 | 535 |
srunner_add_suite(sr, test_uniq_suite()); |
536 | 536 |
srunner_add_suite(sr, test_matchers_suite()); |
537 |
- srunner_add_suite(sr, test_htmlnorm_suite());*/ |
|
537 |
+ srunner_add_suite(sr, test_htmlnorm_suite()); |
|
538 | 538 |
srunner_add_suite(sr, test_bytecode_suite()); |
539 | 539 |
|
540 | 540 |
srunner_set_log(sr, "test.log"); |