tests/tcg: target/mips: Add tests for MSA pack instructions
commit2a367db039fae3ea921ca4aa03374cd6c6d8d188
authorAleksandar Markovic <amarkovic@wavecomp.com>
Tue, 5 Mar 2019 15:34:36 +0000 (5 16:34 +0100)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Tue, 5 Mar 2019 16:03:44 +0000 (5 17:03 +0100)
tree194fed758b8fe43c82502394a3cf9120988e24e1
parent7ecdacc56858aff19048d99e6041b1e786f1cf0a
tests/tcg: target/mips: Add tests for MSA pack instructions

Add tests for MSA pack instructions. This includes following
instructions:

  * PCKEV.B - pack even (bytes)
  * PCKEV.H - pack even (halfwords)
  * PCKEV.W - pack even (words)
  * PCKEV.D - pack even (doublewords)
  * PCKOD.B - pack odd (bytes)
  * PCKOD.H - pack odd (halfwords)
  * PCKOD.W - pack odd (words)
  * PCKOD.D - pack odd (doublewords)
  * VSHF.B - data preserving shuffle (bytes)
  * VSHF.H - data preserving shuffle (halfwords)
  * VSHF.W - data preserving shuffle (words)
  * VSHF.D - data preserving shuffle (doublewords)

Each test consists of 80 test cases, so altogether there are 960
test cases.

Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com>
Message-Id: <1551800076-8104-15-git-send-email-aleksandar.markovic@rt-rk.com>
12 files changed:
tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_w.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_w.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_w.c [new file with mode: 0644]