OSDN Git Service

tests/tcg: target/mips: Add tests for MSA integer max/min instructions
authorAleksandar Markovic <amarkovic@wavecomp.com>
Tue, 26 Feb 2019 12:55:33 +0000 (13:55 +0100)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Wed, 27 Feb 2019 13:26:14 +0000 (14:26 +0100)
commit1e6bea794c8ac7e53ce18a9141367e4c91fb59a2
tree8d9373e0ca7dd461284887091a797aa9f1f06cf5
parent1f3a111ecc6fb2355c636536834a848f5897b55f
tests/tcg: target/mips: Add tests for MSA integer max/min instructions

Add tests for MSA integer max/min instructions. This includes
following instructions:

  * MAX_A.B - maximum of absolute of two signed values (bytes)
  * MAX_A.H - maximum of absolute of two signed values (halfwords)
  * MAX_A.W - maximum of absolute of two signed values (words)
  * MAX_A.D - maximum of absolute of two signed values (doublewords)
  * MIN_A.B - minimum of absolute of two signed values (bytes)
  * MIN_A.H - minimum of absolute of two signed values (halfwords)
  * MIN_A.W - minimum of absolute of two signed values (words)
  * MIN_A.D - minimum of absolute of two signed values (doublewords)
  * MAX_S.B - maximum of two signed values (bytes)
  * MAX_S.H - maximum of two signed values (halfwords)
  * MAX_S.W - maximum of two signed values (words)
  * MAX_S.D - maximum of two signed values (doublewords)
  * MIN_S.B - minimum of two signed values (bytes)
  * MIN_S.H - minimum of two signed values (halfwords)
  * MIN_S.W - minimum of two signed values (words)
  * MIN_S.D - minimum of two signed values (doublewords)
  * MAX_U.B - maximum of two unsigned values (bytes)
  * MAX_U.H - maximum of two unsigned values (halfwords)
  * MAX_U.W - maximum of two unsigned values (words)
  * MAX_U.D - maximum of two unsigned values (doublewords)
  * MIN_U.B - minimum of two unsigned values (bytes)
  * MIN_U.H - minimum of two unsigned values (halfwords)
  * MIN_U.W - minimum of two unsigned values (words)
  * MIN_U.D - minimum of two unsigned values (doublewords)

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

Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com>
Message-Id: <1551185735-17154-8-git-send-email-aleksandar.markovic@rt-rk.com>
24 files changed:
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_a_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_a_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_a_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_a_w.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_s_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_s_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_s_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_s_w.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_u_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_u_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_u_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_u_w.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_a_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_a_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_a_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_a_w.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_s_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_s_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_s_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_s_w.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_u_b.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_u_d.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_u_h.c [new file with mode: 0644]
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_u_w.c [new file with mode: 0644]