mbox series

[v3,0/9] Hexagon: COF overrides, new generator, test update

Message ID 20230105221331.12069-1-tsimpson@quicinc.com (mailing list archive)
Headers show
Series Hexagon: COF overrides, new generator, test update | expand

Message

Taylor Simpson Jan. 5, 2023, 10:13 p.m. UTC
The idef-parser skips the change-of-flow (COF) instructions, so add
overrides

**** Changes in v2 ****
Add a new generator for analyze_<tag> instructions.  Pouplate the
DisasContext ahead of generating code.

**** Changes in v3 ****
Cleanup of analysis code
Added test updates enabled by new toolchain container

Taylor Simpson (9):
  Hexagon (target/hexagon) Add overrides for jumpr31 instructions
  Hexagon (target/hexagon) Add overrides for callr
  Hexagon (target/hexagon) Add overrides for endloop1/endloop01
  Hexagon (target/hexagon) Add overrides for dealloc-return instructions
  Hexagon (target/hexagon) Analyze packet before generating TCG
  Hexagon (target/hexagon) Analyze packet for HVX
  Hexagon (tests/tcg/hexagon) Update preg_alias.c
  Hexagon (tests/tcg/hexagon) Remove __builtin from scatter_gather
  Hexagon (tests/tcg/hexagon) Enable HVX tests

 target/hexagon/gen_tcg.h                    |  79 ++-
 target/hexagon/macros.h                     |  12 +-
 target/hexagon/translate.h                  |  60 ++-
 target/hexagon/genptr.c                     | 200 +++++++-
 target/hexagon/idef-parser/parser-helpers.c |   7 +-
 target/hexagon/op_helper.c                  |  26 +-
 target/hexagon/translate.c                  | 187 ++++---
 tests/tcg/hexagon/preg_alias.c              |  10 +-
 tests/tcg/hexagon/scatter_gather.c          | 513 +++++++++++---------
 target/hexagon/README                       |  11 +-
 target/hexagon/gen_analyze_func_table.py    |  52 ++
 target/hexagon/gen_analyze_funcs.py         | 250 ++++++++++
 target/hexagon/gen_tcg_funcs.py             |  41 +-
 target/hexagon/meson.build                  |  20 +-
 tests/tcg/hexagon/Makefile.target           |  13 +-
 15 files changed, 1053 insertions(+), 428 deletions(-)
 create mode 100755 target/hexagon/gen_analyze_func_table.py
 create mode 100755 target/hexagon/gen_analyze_funcs.py