]> gcc.gnu.org Git - gcc.git/commit
mips: check MSA support for vector modes [PR100760,PR100761,PR100762]
authorXi Ruoyao <xry111@mengyan1223.wang>
Fri, 18 Jun 2021 12:11:42 +0000 (20:11 +0800)
committerXi Ruoyao <xry111@mengyan1223.wang>
Fri, 9 Jul 2021 06:25:06 +0000 (14:25 +0800)
commit82625a42e652d52fc6bbe6070f8d0589d5e0c8ad
tree3852a5b9823e945a1a8ed62d1d112c3d36757a16
parent062c762ef264dca89d01ebca2ef023ea91f31d50
mips: check MSA support for vector modes [PR100760,PR100761,PR100762]

Check if the vector mode is really supported by MSA in certain cases,
instead of testing ISA_HAS_MSA.  Simply testing ISA_HAS_MSA can cause
ICE when MSA is enabled besides other MIPS SIMD extensions (notably,
Loongson MMI).

gcc/

PR target/100760
PR target/100761
PR target/100762
* config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
instead of ISA_HAS_MSA.
(mips_expand_vec_unpack): Likewise.
(mips_expand_vector_init): Likewise.

gcc/testsuite/

PR target/100760
PR target/100761
PR target/100762
* gcc.target/mips/pr100760.c: New test.
* gcc.target/mips/pr100761.c: New test.
* gcc.target/mips/pr100762.c: New test.
gcc/config/mips/mips.c
gcc/testsuite/gcc.target/mips/pr100760.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/pr100761.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/pr100762.c [new file with mode: 0644]
This page took 0.061995 seconds and 6 git commands to generate.