[MIPS] Add MSA tests
authorRobert Suchanek <robert.suchanek@imgtec.com>
Wed, 12 Oct 2016 14:52:41 +0000 (14:52 +0000)
committerRobert Suchanek <rts@gcc.gnu.org>
Wed, 12 Oct 2016 14:52:41 +0000 (14:52 +0000)
commitf92d15222878878d23dcc0ab54d4e3e7660608d2
treee4ba8a6386a37f9e56eb093f940ee69ae00dbfa5
parent0bfd099c35ab5e03bb51dcd237ba5fb82b500b86
[MIPS] Add MSA tests

gcc/testsuite/ChangeLog:

* gcc.dg/vect/slp-26.c: Check if vectorized for MIPS MSA.
* gcc.dg/vect/tree-vect.h (check_vect): Check for MIPS SIMD support.
* gcc.target/mips/mips.exp: Add support for -mmsa.  Imply -mno-mips16
for -mmsa.
* gcc.target/mips/msa.c: New test.
* gcc.target/mips/msa-builtins.c: Likewise.
* lib/target-supports.exp (check_mips_msa_hw_available): New.
(check_effective_target_mips_msa_runtime): Likewise.
(check_effective_target_mips_msa): Likewise.
(add_options_for_mips_msa): Likewise.
(check_effective_target_vect_int): Return TRUE for MIPS MSA.
(check_effective_target_vect_intfloat_cvt): Likewise.
(check_effective_target_vect_uintfloat_cvt): Likewise.
(check_effective_target_vect_floatint_cvt): Likewise.
(check_effective_target_vect_floatuint_cvt): Likewise.
(check_effective_target_vect_shift): ewise.
(check_effective_target_vect_shift_char): Likewise.
(check_effective_target_vect_long): Likewise.
(check_effective_target_vect_float): Likewise.
(check_effective_target_vect_double): Likewise.
(check_effective_target_vect_long_long): Likewise.
(check_effective_target_vect_perm): Likewise.
(check_effective_target_vect_perm_byte): Likewise.
(check_effective_target_vect_perm_short): Likewise.
(check_effective_target_vect_sdot_qi): Likewise.
(check_effective_target_vect_udot_qi): Likewise.
(check_effective_target_vect_sdot_hi): Likewise.
(check_effective_target_vect_udot_hi): Likewise.
(check_effective_target_vect_pack_trunc): Likewise.
(check_effective_target_vect_unpack): Likewise.
(check_effective_target_vect_hw_misalign): Likewise.
(check_effective_target_vect_condition): Likewise.
(check_effective_target_vect_cond_mixed): Likewise.
(check_effective_target_vect_char_mult): Likewise.
(check_effective_target_vect_short_mult): Likewise.
(check_effective_target_vect_int_mult): Likewise.
(check_effective_target_vect_extract_even_odd): Likewise.
(check_effective_target_vect_interleave): Likewise.
(check_vect_support_and_set_flags): Check if the target supports MSA
and append to the list of EFFECTIVE_TARGETS.

From-SVN: r241054
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/slp-26.c
gcc/testsuite/gcc.dg/vect/tree-vect.h
gcc/testsuite/gcc.target/mips/mips.exp
gcc/testsuite/gcc.target/mips/msa-builtins.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/msa.c [new file with mode: 0644]
gcc/testsuite/lib/target-supports.exp