• Home
  • Raw
  • Download

Lines Matching +full:runner +full:- +full:before +full:- +full:script

37 The script assumes that `clang-format-4.0` is in the current path. If it isn't,
40 $ ./tools/generate_tests.py --clang-format /patch/to/clang-format
42 Once the script has finished, it will have generated test files, as many as
45 - test/aarch32/test-assembler-cond-rd-rn-immediate-a32.cc
46 - test/aarch32/test-assembler-cond-rd-rn-rm-a32.cc
47 - test/aarch32/test-assembler-cond-rd-rn-rm-q-a32.cc
48 - test/aarch32/test-assembler-cond-rd-rn-rm-ge-a32.cc
50 Because these test cases need traces in order to build, the script will have
54 $ cat test/aarch32/traces/sim-cond-rd-rn-immediate-adc-a32.h
58 need to re-generate traces with real hardware; the test cases do not support
64 You need to have either compiled natively for ARM, or cross-compiled
65 `test-runner`. The traces can then be generated in the same way as with VIXL64.
68 ./tools/generate_simulator_traces.py --runner /path/to/test-runner \
69 --aarch32-only
82 default, but you may provide your own files with the `--config-files FILE ...`
83 flag. The JSON format was extended to support C++ like one-line comments.
88 test/aarch32/config/cond-rd-rn-immediate-a32.json
89 `-> test/aarch32/test-simulator-cond-rd-rn-immediate-a32.cc
90 `-> test/aarch32/test-assembler-cond-rd-rn-immediate-a32.cc
94 instructions use and lives in `test/aarch32/config/data-types.json`.
97 ----------------------
101 An `operand` represents an argument passed to the macro-assembler to generate an
103 of it as "assemble-time" data.
106 runtime. For example, it will be the value you write to a register before
109 The `data-types.json` file has the following structure:
191 ------------------
214 "test-files": [
219 // top-level list.
221 "test-cases": [
228 "test-cases": [
237 - List of operands:
296 type described in the `data-types.json` file as described above.
302 - List of inputs:
329 This will specify what C++ code to generate before and after emitting the
333 - Test files and test cases:
340 several test files. We will generate one file per element in the "test-files"
344 "test-files": [
347 "test-cases": [
354 "name": "special-case",
356 // Override the top-level list with a subset of instructions concerned
359 "test-cases": [
366 "test-cases": [
378 - "test/aarch32/test-assembler-{configuration name}-a32.cc"
379 - "test/aarch32/test-assembler-{configuration name}-special-case-a32.cc"
380 - "test/aarch32/test-simulator-{configuration name}-a32.cc"
384 "assembler", "macro-assembler" and "assembler-negative". Simulator tests will
395 cases with the "test-cases" field.
418 "operand-filter": "rd == rn",
422 "input-filter": "rd == rn"
451 // which will make the test set or clear it before executing the instruction.
462 "operand-filter": "rn != rm'",
463 "operand-limit": 1
489 "operand-limit": 10,
490 "input-limit": 200
503 "operand-limit": 2000
511 "operand-filter": "rd == rn",
512 "operand-limit": 200
533 * "operand-filter":
538 * "operand-limit":
543 Note that this is a seeded pseudo-random sample, and the seed corresponds to
551 * "input-filter":
555 * "input-limit":
572 "operand-filter": "rd == rn",
576 "input-filter": "rd == rn"
621 'test/aarch32/config/rd-rn-rm.json',
622 'test/aarch32/config/cond-dt-drt-drd-drn-drm-float.json',
625 'test/aarch32/config/cond-rd-rn-operand-const-a32.json',
626 'test/aarch32/config/cond-rd-rn-operand-rm-a32.json',
627 'test/aarch32/config/cond-rd-rn-operand-rm-shift-amount-1to31-a32.json',
628 'test/aarch32/config/cond-rd-rn-operand-rm-shift-amount-1to32-a32.json',
629 'test/aarch32/config/cond-rd-rn-operand-rm-shift-rs-a32.json',
630 'test/aarch32/config/cond-rd-rn-operand-rm-ror-amount-a32.json',
631 'test/aarch32/config/cond-rd-rn-a32.json',
632 'test/aarch32/config/cond-rd-rn-pc-a32.json',
633 'test/aarch32/config/cond-rd-rn-rm-a32.json',
634 'test/aarch32/config/cond-rd-operand-const-a32.json',
635 'test/aarch32/config/cond-rd-operand-rn-a32.json',
636 'test/aarch32/config/cond-rd-operand-rn-shift-amount-1to31-a32.json',
637 'test/aarch32/config/cond-rd-operand-rn-shift-amount-1to32-a32.json',
638 'test/aarch32/config/cond-rd-operand-rn-shift-rs-a32.json',
639 'test/aarch32/config/cond-rd-operand-rn-ror-amount-a32.json',
640 'test/aarch32/config/cond-rd-memop-immediate-512-a32.json',
641 'test/aarch32/config/cond-rd-memop-immediate-8192-a32.json',
642 'test/aarch32/config/cond-rd-memop-rs-a32.json',
643 'test/aarch32/config/cond-rd-memop-rs-shift-amount-1to31-a32.json',
644 'test/aarch32/config/cond-rd-memop-rs-shift-amount-1to32-a32.json',
647 'test/aarch32/config/cond-rd-rn-t32.json',
648 'test/aarch32/config/cond-rd-rn-rm-t32.json',
649 'test/aarch32/config/cond-rdlow-rnlow-rmlow-t32.json',
650 'test/aarch32/config/cond-rd-rn-operand-const-t32.json',
651 'test/aarch32/config/cond-rd-pc-operand-imm12-t32.json',
652 'test/aarch32/config/cond-rd-rn-operand-imm12-t32.json',
653 'test/aarch32/config/cond-rd-pc-operand-imm8-t32.json',
654 'test/aarch32/config/cond-rd-sp-operand-imm8-t32.json',
655 'test/aarch32/config/cond-rdlow-rnlow-operand-immediate-t32.json',
656 'test/aarch32/config/cond-sp-sp-operand-imm7-t32.json',
657 'test/aarch32/config/cond-rd-rn-operand-rm-t32.json',
658 'test/aarch32/config/cond-rd-rn-operand-rm-shift-amount-1to31-t32.json',
659 'test/aarch32/config/cond-rd-rn-operand-rm-shift-amount-1to32-t32.json',
660 'test/aarch32/config/cond-rd-rn-operand-rm-ror-amount-t32.json',
661 'test/aarch32/config/cond-rd-operand-const-t32.json',
662 'test/aarch32/config/cond-rd-operand-imm16-t32.json',
663 'test/aarch32/config/cond-rdlow-operand-imm8-t32.json',
664 'test/aarch32/config/cond-rd-operand-rn-shift-amount-1to31-t32.json',
665 'test/aarch32/config/cond-rd-operand-rn-shift-amount-1to32-t32.json',
666 'test/aarch32/config/cond-rd-operand-rn-shift-rs-t32.json',
667 'test/aarch32/config/cond-rd-operand-rn-ror-amount-t32.json',
668 'test/aarch32/config/cond-rd-operand-rn-t32.json',
674 'simulator': "test/aarch32/config/template-simulator-aarch32.cc.in",
675 'assembler': "test/aarch32/config/template-assembler-aarch32.cc.in",
676 'macro-assembler': "test/aarch32/config/template-macro-assembler-aarch32.cc.in",
677 'assembler-negative': "test/aarch32/config/template-assembler-negative-aarch32.cc.in",
685 result.add_argument('--config-files', nargs='+',
689 result.add_argument('--clang-format',
690 default='clang-format-4.0', help='Path to clang-format.')
691 result.add_argument('--jobs', '-j', type=int, metavar='N',
694 result.add_argument('--skip-traces', action='store_true',
700 # We rely on `clang-format` to wrap this comment to 80 characters.
702 // -----------------------------------------------------------------------------
706 // -----------------------------------------------------------------------------
713 # Strip out comments starting with three forward slashes before creating the
719 # Add a top comment stating this file is auto-generated.
765 # Create the test case and pipe it through `clang-format` before writing it.
767 "test/aarch32/test-{}-{}-{}.cc".format(generator.test_type,
786 generators = test_generator.parser.Parse('test/aarch32/config/data-types.json',
790 # will use as many processes as defined by `-jN`, which defaults to 1.