target-xtensa: implement MAC16 option and unit tests for it
cover target-xtensa: implement MAC16 option and unit tests for it
Max Filippov (2):
target-xtensa: implement MAC16 option
target-xtensa: add MAC16 unit tests
target-xtensa/cpu.h | 3 + target-xtensa/translate.c | 135 +++++++++++++++++++++++++- tests/xtensa/Makefile | 1 + tests/xtensa/test_mac16.S | 243 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 381 insertions(+), 1 deletions(-) create mode 100644 tests/xtensa/test_mac16.S
Signature · 1 line
1.7.6.4
PATCH 1/2 target-xtensa: implement MAC16 option
See ISA, 4.3.7 for the details.
- add ACC and MR special registers;
- implement MAC16 and all inner MAC* opcode groups.
--- target-xtensa/cpu.h | 3 + target-xtensa/translate.c | 135 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 137 insertions(+), 1 deletions(-)
target-xtensa/cpu.h +3 -0
@@ -113,6 +113,9 @@ enum {BR =4 ,LITBASE =5 ,SCOMPARE1 =12 , +ACCLO =16 , +ACCHI =17 , +MR =32 ,WINDOW_BASE =72 ,WINDOW_START =73 , PTEVADDR = 83,
target-xtensa/translate.c +134 -1
171 lines not on this page · raw message
Signature · 1 line
1.7.6.4
PATCH 2/2 target-xtensa: add MAC16 unit tests
In reply to Max Filippov--- tests/xtensa/Makefile | 1 + tests/xtensa/test_mac16.S | 243 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 244 insertions(+), 0 deletions(-) create mode 100644 tests/xtensa/test_mac16.S
tests/xtensa/Makefile +1 -0
@@ -28,6 +28,7 @@ TESTCASES += test_clamps.tst TESTCASES += test_fail.tst TESTCASES += test_interrupt.tst TESTCASES += test_loop.tst +TESTCASES += test_mac16.tst TESTCASES += test_max.tst TESTCASES += test_min.tst TESTCASES += test_mmu.tst
tests/xtensa/test_mac16.S new file +243 -0
243 lines not on this page · raw message
Signature · 1 line
1.7.6.4
Blue Swirl
AppliedThanks, applied both patches.
Quoted 16 lines · Max Filippov
Max Filippov (2):
target-xtensa: implement MAC16 option
target-xtensa: add MAC16 unit teststarget-xtensa/cpu.h | 3 +
target-xtensa/translate.c | 135 +++++++++++++++++++++++++- tests/xtensa/Makefile | 1 +
tests/xtensa/test_mac16.S | 243 +++++++++++++++++++++++++++++++++++++++++++++4 files changed, 381 insertions(+), 1 deletions(-)create mode 100644
tests/xtensa/test_mac16.S--
1.7.6.4