Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: Makefile.standalone

Issue 2085303002: Subzero, MIPS32: Cross-testing enabled for MIPS32 (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Changes according to review comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pydir/build-runtime.py » ('j') | pydir/build-runtime.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 $(OBJDIR)/unittest: $(OBJDIR) 506 $(OBJDIR)/unittest: $(OBJDIR)
507 @mkdir -p $@ 507 @mkdir -p $@
508 508
509 $(OBJDIR)/unittest/AssemblerX8632: $(OBJDIR)/unittest 509 $(OBJDIR)/unittest/AssemblerX8632: $(OBJDIR)/unittest
510 @mkdir -p $@ 510 @mkdir -p $@
511 $(OBJDIR)/unittest/AssemblerX8664: $(OBJDIR)/unittest 511 $(OBJDIR)/unittest/AssemblerX8664: $(OBJDIR)/unittest
512 @mkdir -p $@ 512 @mkdir -p $@
513 513
514 RT_SRC := runtime/szrt.c runtime/szrt_ll.ll runtime/szrt_profiler.c \ 514 RT_SRC := runtime/szrt.c runtime/szrt_ll.ll runtime/szrt_profiler.c \
515 runtime/szrt_asm_x8632.s runtime/szrt_asm_x8664.s \ 515 runtime/szrt_asm_x8632.s runtime/szrt_asm_x8664.s \
516 runtime/szrt_asm_arm32.s runtime/szrt_asan.c 516 runtime/szrt_asm_arm32.s \
517 runtime/szrt_asm_mips32.s \
518 runtime/szrt_asan.c
517 RT_OBJ := build/runtime/szrt_native_x8632.o build/runtime/szrt_sb_x8632.o \ 519 RT_OBJ := build/runtime/szrt_native_x8632.o build/runtime/szrt_sb_x8632.o \
518 build/runtime/szrt_nonsfi_x8632.o \ 520 build/runtime/szrt_nonsfi_x8632.o \
519 build/runtime/szrt_native_x8664.o build/runtime/szrt_sb_x8664.o \ 521 build/runtime/szrt_native_x8664.o build/runtime/szrt_sb_x8664.o \
520 build/runtime/szrt_nonsfi_x8664.o \ 522 build/runtime/szrt_nonsfi_x8664.o \
521 build/runtime/szrt_native_arm32.o build/runtime/szrt_sb_arm32.o \ 523 build/runtime/szrt_native_arm32.o build/runtime/szrt_sb_arm32.o \
522 build/runtime/szrt_nonsfi_arm32.o \ 524 build/runtime/szrt_nonsfi_arm32.o \
525 build/runtime/szrt_native_mips32.o build/runtime/szrt_sb_mips32.o \
523 build/runtime/szrt_asan_x8632.o build/runtime/szrt_asan_x8664.o \ 526 build/runtime/szrt_asan_x8632.o build/runtime/szrt_asan_x8664.o \
524 build/runtime/szrt_asan_arm32.o 527 build/runtime/szrt_asan_arm32.o
525 528
526 runtime: $(RT_OBJ) 529 runtime: $(RT_OBJ)
527 530
528 # Use runtime.is.built so that build-runtime.py is invoked only once 531 # Use runtime.is.built so that build-runtime.py is invoked only once
529 # even in a parallel build. 532 # even in a parallel build.
530 .INTERMEDIATE: runtime.is.built 533 .INTERMEDIATE: runtime.is.built
531 $(RT_OBJ): runtime.is.built 534 $(RT_OBJ): runtime.is.built
532 runtime.is.built: $(RT_SRC) pydir/build-runtime.py 535 runtime.is.built: $(RT_SRC) pydir/build-runtime.py
(...skipping 12 matching lines...) Expand all
545 ifdef MIPS 548 ifdef MIPS
546 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime \ 549 check-xtest check-xtest-lite: $(OBJDIR)/pnacl-sz make_symlink runtime \
547 crosstest/test_arith_ll.ll 550 crosstest/test_arith_ll.ll
548 # Do all x8664/native/sse2 tests as a smoke test. 551 # Do all x8664/native/sse2 tests as a smoke test.
549 # Add in mips32 tests as they come online. 552 # Add in mips32 tests as they come online.
550 ./pydir/crosstest_generator.py -v --lit \ 553 ./pydir/crosstest_generator.py -v --lit \
551 --toolchain-root $(TOOLCHAIN_ROOT) \ 554 --toolchain-root $(TOOLCHAIN_ROOT) \
552 $(FORCEASM_FLAG) \ 555 $(FORCEASM_FLAG) \
553 $(FORCEASM_XTEST_EXCLUDES) \ 556 $(FORCEASM_XTEST_EXCLUDES) \
554 -i x8664,native,sse2 \ 557 -i x8664,native,sse2 \
555 -i mips32,xxx 558 -i mips32,native,Om1,simple_loop
556 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ 559 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \
557 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS) 560 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS)
558 else 561 else
559 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime \ 562 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime \
560 exists-nonsfi-x8632 exists-nonsfi-arm32 crosstest/test_arith_ll.ll 563 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. 564 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1.
562 # For (slow) sandboxed tests, limit to Om1/sse4.1. 565 # For (slow) sandboxed tests, limit to Om1/sse4.1.
563 # run.py (used to run the sandboxed xtests) does not support 566 # run.py (used to run the sandboxed xtests) does not support
564 # specifying -cpu cortex-a15 to qemu, hence we disable the 567 # specifying -cpu cortex-a15 to qemu, hence we disable the
565 # hwdiv-arm tests. 568 # hwdiv-arm tests.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 ifeq ($(TARGET),x8664) 627 ifeq ($(TARGET),x8664)
625 TARGETFLAG=x8664 628 TARGETFLAG=x8664
626 SETUP=SetupGccX8664Opt 629 SETUP=SetupGccX8664Opt
627 SPEC := --filetype=obj 630 SPEC := --filetype=obj
628 endif 631 endif
629 ifeq ($(TARGET),arm32) 632 ifeq ($(TARGET),arm32)
630 TARGETFLAG=arm32 633 TARGETFLAG=arm32
631 SETUP=SetupGccArmOpt 634 SETUP=SetupGccArmOpt
632 SPEC := --filetype=obj 635 SPEC := --filetype=obj
633 endif 636 endif
637 ifeq ($(TARGET),mips32)
638 # native_client/tests/spec2k/{Makefile.common,run_all.sh} do not currently
639 # have MIPS configs, so those would need to be added for proper Subzero
640 # testing.
641 TARGETFLAG=mips32
642 SETUP=SetupGccMipsOpt
643 SPEC := --filetype=asm
644 endif
634 SPECFLAGS := -O2 645 SPECFLAGS := -O2
635 SPECRUN := --run 646 SPECRUN := --run
636 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime 647 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime
637 ./pydir/szbuild_spec2k.py -v \ 648 ./pydir/szbuild_spec2k.py -v \
638 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< $(SPECRUN) 649 $(SPECFLAGS) --target=$(TARGETFLAG) $(SPEC) $< $(SPECRUN)
639 650
640 ifdef MIPS 651 ifdef MIPS
641 # Don't test spec2k on mips32, at least not yet. 652 # Don't test spec2k on mips32, at least not yet.
642 check-spec: 653 check-spec:
643 else 654 else
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 845
835 help-check-xtest: 846 help-check-xtest:
836 @cat Makefile.standalone-help/check-xtest.txt 847 @cat Makefile.standalone-help/check-xtest.txt
837 848
838 clean: 849 clean:
839 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ 850 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \
840 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json 851 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json
841 852
842 clean-all: clean 853 clean-all: clean
843 rm -rf build/ crosstest/Output/ 854 rm -rf build/ crosstest/Output/
OLDNEW
« no previous file with comments | « no previous file | pydir/build-runtime.py » ('j') | pydir/build-runtime.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698