OSDN Git Service

tests/tcg: target/mips: Add tests for MSA bit counting instructions
authorAleksandar Markovic <amarkovic@wavecomp.com>
Tue, 12 Feb 2019 18:59:38 +0000 (19:59 +0100)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Thu, 14 Feb 2019 16:47:37 +0000 (17:47 +0100)
commitb62592ab655a6f6508908010d37f962bf5b2053f
tree09f167c276b2842c77f872a25881b6fd0cd57e3c
parent85c2a393005656e9712959ca95c9be1e9aee4629
tests/tcg: target/mips: Add tests for MSA bit counting instructions

Add tests for MSA bit counting instructions. This includes following
instructions:

  * NLOC.B - number of leading ones (bytes)
  * NLOC.H - number of leading ones (halfwords)
  * NLOC.W - number of leading ones (words)
  * NLOC.D - number of leading ones (doublewords)
  * NLZC.B - number of leading zeros (bytes)
  * NLZC.H - number of leading zeros (halfwords)
  * NLZC.W - number of leading zeros (words)
  * NLZC.D - number of leading zeros (doublewords)
  * PCNT.B - population count / number of ones (bytes)
  * PCNT.H - population count / number of ones (halfwords)
  * PCNT.W - population count / number of ones (words)
  * PCNT.D - population count / number of ones (doublewords)

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

Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
12 files changed:
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_w.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_w.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_w.c [new file with mode: 0644]