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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 runtime/szrt_asm_arm32.s runtime/szrt_asan.c | 516 runtime/szrt_asm_arm32.s runtime/szrt_asan.c |
517 RT_OBJ := build/runtime/szrt_native_x8632.o build/runtime/szrt_sb_x8632.o \ | 517 RT_OBJ := build/runtime/szrt_native_x8632.o build/runtime/szrt_sb_x8632.o \ |
518 build/runtime/szrt_nonsfi_x8632.o \ | 518 build/runtime/szrt_nonsfi_x8632.o \ |
519 build/runtime/szrt_native_x8664.o build/runtime/szrt_sb_x8664.o \ | 519 build/runtime/szrt_native_x8664.o build/runtime/szrt_sb_x8664.o \ |
520 build/runtime/szrt_nonsfi_x8664.o \ | 520 build/runtime/szrt_nonsfi_x8664.o \ |
521 build/runtime/szrt_native_arm32.o build/runtime/szrt_sb_arm32.o \ | 521 build/runtime/szrt_native_arm32.o build/runtime/szrt_sb_arm32.o \ |
522 build/runtime/szrt_nonsfi_arm32.o \ | 522 build/runtime/szrt_nonsfi_arm32.o \ |
523 build/runtime/szrt_asan_x8632.o build/runtime/szrt_asan_x8664.o \ | 523 build/runtime/szrt_asan_x8632.o build/runtime/szrt_asan_x8664.o \ |
524 build/runtime/szrt_asan_arm32.o | 524 build/runtime/szrt_asan_arm32.o |
525 | 525 |
| 526 EXCLUDED_RT := |
| 527 ifdef MIPS |
| 528 RT_SRC += runtime/szrt_asm_mips32.s |
| 529 RT_OBJ += build/runtime/szrt_native_mips32.o build/runtime/szrt_sb_mips32.o |
| 530 else |
| 531 EXCLUDED_RT += --exclude-target=mips32 |
| 532 endif |
| 533 |
526 runtime: $(RT_OBJ) | 534 runtime: $(RT_OBJ) |
527 | 535 |
528 # Use runtime.is.built so that build-runtime.py is invoked only once | 536 # Use runtime.is.built so that build-runtime.py is invoked only once |
529 # even in a parallel build. | 537 # even in a parallel build. |
530 .INTERMEDIATE: runtime.is.built | 538 .INTERMEDIATE: runtime.is.built |
531 $(RT_OBJ): runtime.is.built | 539 $(RT_OBJ): runtime.is.built |
532 runtime.is.built: $(RT_SRC) pydir/build-runtime.py | 540 runtime.is.built: $(RT_SRC) pydir/build-runtime.py |
533 @echo ================ Building Subzero runtime ================ | 541 @echo ================ Building Subzero runtime ================ |
534 » ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) | 542 » ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) \ |
| 543 $(EXCLUDED_RT) |
535 | 544 |
536 check-lit: $(OBJDIR)/pnacl-sz make_symlink runtime | 545 check-lit: $(OBJDIR)/pnacl-sz make_symlink runtime |
537 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 546 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
538 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_LIT_TESTS) \ | 547 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_LIT_TESTS) \ |
539 $(FORCEASM_LIT_TEST_EXCLUDES) $(FORCEASM_LIT_PARAM) | 548 $(FORCEASM_LIT_TEST_EXCLUDES) $(FORCEASM_LIT_PARAM) |
540 | 549 |
541 ifdef MINIMAL | 550 ifdef MINIMAL |
542 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime | 551 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime |
543 @echo "Crosstests disabled, minimal build" | 552 @echo "Crosstests disabled, minimal build" |
544 else | 553 else |
545 ifdef MIPS | 554 ifdef MIPS |
546 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime \ | 555 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime \ |
547 crosstest/test_arith_ll.ll | 556 crosstest/test_arith_ll.ll |
548 # Do all x8664/native/sse2 tests as a smoke test. | 557 # Do all x8664/native/sse2 tests as a smoke test. |
549 # Add in mips32 tests as they come online. | 558 # Add in mips32 tests as they come online. |
550 ./pydir/crosstest_generator.py -v --lit \ | 559 ./pydir/crosstest_generator.py -v --lit \ |
551 --toolchain-root $(TOOLCHAIN_ROOT) \ | 560 --toolchain-root $(TOOLCHAIN_ROOT) \ |
552 $(FORCEASM_FLAG) \ | 561 $(FORCEASM_FLAG) \ |
553 $(FORCEASM_XTEST_EXCLUDES) \ | 562 $(FORCEASM_XTEST_EXCLUDES) \ |
554 -i x8664,native,sse2 \ | 563 -i x8664,native,sse2 \ |
555 -i mips32,xxx | 564 -i mips32,native,Om1,simple_loop \ |
| 565 -i mips32,native,Om1,test_strengthreduce |
556 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 566 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
557 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) | 567 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) |
558 else | 568 else |
559 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime \ | 569 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime \ |
560 exists-nonsfi-x8632 exists-nonsfi-arm32 crosstest/test_arith_ll.ll | 570 exists-nonsfi-x8632 exists-nonsfi-arm32 crosstest/test_arith_ll.ll |
561 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. | 571 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. |
562 # For (slow) sandboxed tests, limit to Om1/sse4.1. | 572 # For (slow) sandboxed tests, limit to Om1/sse4.1. |
563 # run.py (used to run the sandboxed xtests) does not support | 573 # run.py (used to run the sandboxed xtests) does not support |
564 # specifying -cpu cortex-a15 to qemu, hence we disable the | 574 # specifying -cpu cortex-a15 to qemu, hence we disable the |
565 # hwdiv-arm tests. | 575 # hwdiv-arm tests. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 ifeq ($(TARGET),x8664) | 634 ifeq ($(TARGET),x8664) |
625 TARGETFLAG=x8664 | 635 TARGETFLAG=x8664 |
626 SETUP=SetupGccX8664Opt | 636 SETUP=SetupGccX8664Opt |
627 SPEC := --filetype=obj | 637 SPEC := --filetype=obj |
628 endif | 638 endif |
629 ifeq ($(TARGET),arm32) | 639 ifeq ($(TARGET),arm32) |
630 TARGETFLAG=arm32 | 640 TARGETFLAG=arm32 |
631 SETUP=SetupGccArmOpt | 641 SETUP=SetupGccArmOpt |
632 SPEC := --filetype=obj | 642 SPEC := --filetype=obj |
633 endif | 643 endif |
| 644 ifeq ($(TARGET),mips32) |
| 645 # native_client/tests/spec2k/{Makefile.common,run_all.sh} do not currently |
| 646 # have MIPS configs, so those would need to be added for proper Subzero |
| 647 # testing. |
| 648 TARGETFLAG=mips32 |
| 649 SETUP=SetupGccMipsOpt |
| 650 SPEC := --filetype=asm |
| 651 endif |
634 SPECFLAGS := -O2 | 652 SPECFLAGS := -O2 |
635 SPECRUN := --run | 653 SPECRUN := --run |
636 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime | 654 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime |
637 ./pydir/szbuild_spec2k.py -v \ | 655 ./pydir/szbuild_spec2k.py -v \ |
638 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< $(SPECRUN) | 656 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< $(SPECRUN) |
639 | 657 |
640 ifdef MIPS | 658 ifdef MIPS |
641 # Don't test spec2k on mips32, at least not yet. | 659 # Don't test spec2k on mips32, at least not yet. |
642 check-spec: | 660 check-spec: |
643 else | 661 else |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 | 852 |
835 help-check-xtest: | 853 help-check-xtest: |
836 @cat Makefile.standalone-help/check-xtest.txt | 854 @cat Makefile.standalone-help/check-xtest.txt |
837 | 855 |
838 clean: | 856 clean: |
839 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ | 857 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ |
840 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json | 858 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json |
841 | 859 |
842 clean-all: clean | 860 clean-all: clean |
843 rm -rf build/ crosstest/Output/ | 861 rm -rf build/ crosstest/Output/ |
OLD | NEW |