| OLD | NEW |
| 1 # The following variables will likely need to be modified, depending on where | 1 # The following variables will likely need to be modified, depending on where |
| 2 # and how you built LLVM & Clang. They can be overridden in a command-line | 2 # and how you built LLVM & Clang. They can be overridden in a command-line |
| 3 # invocation of make, like: | 3 # invocation of make, like: |
| 4 # | 4 # |
| 5 # make LLVM_SRC_PATH=<path> LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \ | 5 # make LLVM_SRC_PATH=<path> LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \ |
| 6 # PNACL_BIN_PATH=<path> ... | 6 # PNACL_BIN_PATH=<path> ... |
| 7 # | 7 # |
| 8 | 8 |
| 9 # LLVM_SRC_PATH is the path to the root of the checked out source code. This | 9 # LLVM_SRC_PATH is the path to the root of the checked out source code. This |
| 10 # directory should contain the configure script, the include/ and lib/ | 10 # directory should contain the configure script, the include/ and lib/ |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 check-lit: $(OBJDIR)/pnacl-sz make_symlink | 520 check-lit: $(OBJDIR)/pnacl-sz make_symlink |
| 521 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 521 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 522 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_LIT_TESTS) \ | 522 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_LIT_TESTS) \ |
| 523 $(FORCEASM_LIT_TEST_EXCLUDES) $(FORCEASM_LIT_PARAM) | 523 $(FORCEASM_LIT_TEST_EXCLUDES) $(FORCEASM_LIT_PARAM) |
| 524 | 524 |
| 525 ifdef MINIMAL | 525 ifdef MINIMAL |
| 526 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime | 526 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 527 @echo "Crosstests disabled, minimal build" | 527 @echo "Crosstests disabled, minimal build" |
| 528 else | 528 else |
| 529 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime \ | 529 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime \ |
| 530 exists-nonsfi-x8632 exists-nonsfi-arm32 | 530 exists-nonsfi-x8632 exists-nonsfi-arm32 crosstest/test_arith_ll.ll |
| 531 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. | 531 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. |
| 532 # For (slow) sandboxed tests, limit to Om1/sse4.1. | 532 # For (slow) sandboxed tests, limit to Om1/sse4.1. |
| 533 # run.py (used to run the sandboxed xtests) does not support | 533 # run.py (used to run the sandboxed xtests) does not support |
| 534 # specifying -cpu cortex-a15 to qemu, hence we disable the | 534 # specifying -cpu cortex-a15 to qemu, hence we disable the |
| 535 # hwdiv-arm tests. | 535 # hwdiv-arm tests. |
| 536 ./pydir/crosstest_generator.py -v --lit \ | 536 ./pydir/crosstest_generator.py -v --lit \ |
| 537 --toolchain-root $(TOOLCHAIN_ROOT) \ | 537 --toolchain-root $(TOOLCHAIN_ROOT) \ |
| 538 $(FORCEASM_FLAG) \ | 538 $(FORCEASM_FLAG) \ |
| 539 $(FORCEASM_XTEST_EXCLUDES) \ | 539 $(FORCEASM_XTEST_EXCLUDES) \ |
| 540 -i x8632,native,sse2 \ | 540 -i x8632,native,sse2 \ |
| 541 -i x8632,native,sse4.1,test_vector_ops \ | 541 -i x8632,native,sse4.1,test_vector_ops \ |
| 542 -i x8632,sandbox,sse4.1,Om1 \ | 542 -i x8632,sandbox,sse4.1,Om1 \ |
| 543 -i x8632,nonsfi,sse2,O2 \ | 543 -i x8632,nonsfi,sse2,O2 \ |
| 544 -i x8664,native,sse2 \ | 544 -i x8664,native,sse2 \ |
| 545 -i x8664,native,sse4.1,test_vector_ops \ | 545 -i x8664,native,sse4.1,test_vector_ops \ |
| 546 -i x8664,sandbox,sse4.1,Om1 \ | 546 -i x8664,sandbox,sse4.1,Om1 \ |
| 547 -i arm32 \ | 547 -i arm32 \ |
| 548 -e arm32,sandbox,hwdiv-arm | 548 -e arm32,sandbox,hwdiv-arm |
| 549 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 549 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 550 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) | 550 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) |
| 551 check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime \ | 551 check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime \ |
| 552 exists-nonsfi-x8632 exists-nonsfi-arm32 | 552 exists-nonsfi-x8632 exists-nonsfi-arm32 crosstest/test_arith_ll.ll |
| 553 # Do all native/sse2/neon tests, which are relatively fast. | 553 # Do all native/sse2/neon tests, which are relatively fast. |
| 554 # Limit to test_global+mem_intrin for sandbox+nonsfi because sandbox and | 554 # Limit to test_global+mem_intrin for sandbox+nonsfi because sandbox and |
| 555 # nonsfi builds are slow, and test_global and mem_intrin are the most | 555 # nonsfi builds are slow, and test_global and mem_intrin are the most |
| 556 # common sources of problems. | 556 # common sources of problems. |
| 557 ./pydir/crosstest_generator.py -v --lit \ | 557 ./pydir/crosstest_generator.py -v --lit \ |
| 558 --toolchain-root $(TOOLCHAIN_ROOT) \ | 558 --toolchain-root $(TOOLCHAIN_ROOT) \ |
| 559 $(FORCEASM_FLAG) \ | 559 $(FORCEASM_FLAG) \ |
| 560 $(FORCEASM_XTEST_EXCLUDES) \ | 560 $(FORCEASM_XTEST_EXCLUDES) \ |
| 561 -i x8632,native,sse2,O2 \ | 561 -i x8632,native,sse2,O2 \ |
| 562 -i x8664,native,sse2,O2 \ | 562 -i x8664,native,sse2,O2 \ |
| 563 -i arm32,native,neon,O2 \ | 563 -i arm32,native,neon,O2 \ |
| 564 -i x8632,sse2,O2,test_global \ | 564 -i x8632,sse2,O2,test_global \ |
| 565 -i x8632,sse2,O2,mem_intrin \ | 565 -i x8632,sse2,O2,mem_intrin \ |
| 566 -i x8664,sse2,O2,test_global \ | 566 -i x8664,sse2,O2,test_global \ |
| 567 -i x8664,sse2,O2,mem_intrin \ | 567 -i x8664,sse2,O2,mem_intrin \ |
| 568 -i arm32,neon,O2,test_global \ | 568 -i arm32,neon,O2,test_global \ |
| 569 -i arm32,neon,O2,mem_intrin \ | 569 -i arm32,neon,O2,mem_intrin \ |
| 570 -e x8664,nonsfi | 570 -e x8664,nonsfi |
| 571 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 571 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 572 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) | 572 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) |
| 573 crosstest/test_arith_ll.ll: pydir/gen_test_arith_ll.py |
| 574 python $< > $@ |
| 573 endif | 575 endif |
| 574 | 576 |
| 575 check-unit: $(OBJDIR)/run_unittests | 577 check-unit: $(OBJDIR)/run_unittests |
| 576 $(OBJDIR)/run_unittests | 578 $(OBJDIR)/run_unittests |
| 577 | 579 |
| 578 # List the spec2k components in roughly reverse order of runtime, to help with | 580 # List the spec2k components in roughly reverse order of runtime, to help with |
| 579 # parallel execution speed. | 581 # parallel execution speed. |
| 580 ALLSPEC := 253.perlbmk 177.mesa 188.ammp 256.bzip2 164.gzip 179.art 183.equake \ | 582 ALLSPEC := 253.perlbmk 177.mesa 188.ammp 256.bzip2 164.gzip 179.art 183.equake \ |
| 581 175.vpr 176.gcc 181.mcf 186.crafty 197.parser 254.gap 255.vortex \ | 583 175.vpr 176.gcc 181.mcf 186.crafty 197.parser 254.gap 255.vortex \ |
| 582 300.twolf 252.eon | 584 300.twolf 252.eon |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 | 778 |
| 777 help-check-xtest: | 779 help-check-xtest: |
| 778 @cat Makefile.standalone-help/check-xtest.txt | 780 @cat Makefile.standalone-help/check-xtest.txt |
| 779 | 781 |
| 780 clean: | 782 clean: |
| 781 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ | 783 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ |
| 782 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json | 784 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json |
| 783 | 785 |
| 784 clean-all: clean | 786 clean-all: clean |
| 785 rm -rf build/ crosstest/Output/ | 787 rm -rf build/ crosstest/Output/ |
| OLD | NEW |