Aleksandar Markovic
4cd013cd6e
tcg/tests: target/mips: Amend MSA fixed point multiply tests
...
Amend MSA fixed point multiply tests: add tests for MADD_Q.H, MADD_Q.W,
MADDR_Q.H, MADDR_Q.W, MSUB_Q.H, MSUB_Q.W, MSUBR_Q.H and MSUBR_Q.W.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1562068213-11307-2-git-send-email-aleksandar.markovic@rt-rk.com >
2019-07-02 14:20:11 +02:00
Aleksandar Markovic
0b1450cce8
tests/tcg: target/mips: Amend tests for MSA int multiply instructions
...
Amend tests for MSA int multiply instructions.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1561543629-20327-5-git-send-email-aleksandar.markovic@rt-rk.com >
2019-06-26 13:25:33 +02:00
Aleksandar Markovic
c0a19f7bf1
tests/tcg: target/mips: Amend tests for MSA int dot product instructions
...
Add tests for instructions whose result depends on the value in destination
register (prior to instruction execution).
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1561543629-20327-4-git-send-email-aleksandar.markovic@rt-rk.com >
2019-06-26 13:25:28 +02:00
Aleksandar Markovic
3d9569b855
tests/tcg: target/mips: Add tests for MSA move instructions
...
Add tests for MSA move instructions.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1561543629-20327-3-git-send-email-aleksandar.markovic@rt-rk.com >
2019-06-26 13:25:22 +02:00
Aleksandar Markovic
666952ea7c
tests/tcg: target/mips: Add tests for MSA bit move instructions
...
Add tests for MSA bit move instructions.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1561543629-20327-2-git-send-email-aleksandar.markovic@rt-rk.com >
2019-06-26 13:25:17 +02:00
Aleksandar Markovic
f9fa196bd7
tests/tcg: target/mips: Amend tests for MSA pack instructions
...
Add tests for cases when destination register is the same as one
of source registers.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1561031359-6727-3-git-send-email-aleksandar.markovic@rt-rk.com >
2019-06-21 11:30:36 +02:00
Aleksandar Markovic
ca693d1c92
tests/tcg: target/mips: Add utility function reset_msa_registers()
...
Add function reset_msa_registers() and utilize it in each MSA test.
This is needed to ensure independency of test results on the state of
MSA registers before test execution. This also allows for correction
of tests for VSHF* instructions, that are now independent on the
previous state of MSA registers.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1559838440-9866-9-git-send-email-aleksandar.markovic@rt-rk.com >
2019-06-07 11:53:07 +02:00
Aleksandar Markovic
6ec12d4feb
tests/tcg: target/mips: Amend and rearrange MSA wrappers
...
Amend and rearrange MSA wrappers to follow the same organization as
in MSA tests.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1559838440-9866-6-git-send-email-aleksandar.markovic@rt-rk.com >
2019-06-07 11:53:07 +02:00
Aleksandar Markovic
750541c492
target/mips: Amend and cleanup MSA TCG tests
...
Add missing bits and peaces of the tests of the emulation of certain
MSA (non-immediate variants): some tests were missing two last cases;
some instructions were missing wrappers; some test included wrong
headers; some tests were missing altogether; updated some copywright
preambles; do several other minor cleanups.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Signed-off-by: Mateja Marjanovic <mateja.marjanovic@rt-rk.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1555699081-24577-4-git-send-email-aleksandar.markovic@rt-rk.com >
2019-06-01 20:20:20 +02:00
Aleksandar Markovic
dd8d6a2d5a
tests/tcg: target/mips: Correct preambles of test source files
...
Correct preambles of test source files.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <amarkovic@wavecomp.com >
Message-Id: <1551981716-30664-2-git-send-email-aleksandar.markovic@rt-rk.com >
2019-03-11 12:36:49 +01:00
Aleksandar Markovic
6ae2e3bb33
tests/tcg: target/mips: Extend functionality of MSA wrapper macros
...
Add macros that will allow testing cases when one of the source
registers is identical to the destination register.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1551800076-8104-8-git-send-email-aleksandar.markovic@rt-rk.com >
2019-03-05 17:02:37 +01:00
Aleksandar Markovic
9e9509421f
tests/tcg: target/mips: Add wrappers for various MSA instructions
...
Add wrappers for various MSA integer instructions.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1551800076-8104-4-git-send-email-aleksandar.markovic@rt-rk.com >
2019-03-05 17:02:03 +01:00
Aleksandar Markovic
1f3a111ecc
tests/tcg: target/mips: Add wrappers for MSA integer max/min instructions
...
Add wrappers for MSA integer max/min instructions.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Message-Id: <1551185735-17154-7-git-send-email-aleksandar.markovic@rt-rk.com >
2019-02-27 14:26:14 +01:00
Aleksandar Markovic
a4719aa85e
tests/tcg: target/mips: Add wrappers for MSA integer compare instructions
...
Add wrappers for MSA integer compare instructions.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
2019-02-21 19:36:47 +01:00
Aleksandar Markovic
db37850bb4
tests/tcg: target/mips: Add wrappers for MSA logic instructions
...
Add wrappers for MSA logic instructions.
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
2019-02-14 17:47:37 +01:00
Aleksandar Markovic
afdc3c515a
tests/tcg: target/mips: Add wrappers for MSA interleave instructions
...
Add wrappers for MSA interleave instructions.
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
2019-02-14 17:47:37 +01:00
Aleksandar Markovic
85c2a39300
tests/tcg: target/mips: Add wrappers for MSA bit counting instructions
...
Add a header that contains wrappers around MSA instructions assembler
invocations. For now, only bit counting instructions (NLOC, NLZC, and
PCNT; each in four data format flavors) are supported.
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com >
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com >
2019-02-14 17:47:37 +01:00