PING: [PATCH] mips: check MSA support for vector modes [PR100760,PR100761,PR100762]
Xi Ruoyao
xry111@mengyan1223.wang
Wed Jun 30 13:17:39 GMT 2021
Ping patch:
https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573213.html
Status update: bootstrapped with BOOT_CFLAGS="-O3 -mmsa -mloongson-mmi"
(it failed without the patch), and regtested on mips64el-linux-gnu with
no new regression.
On Sat, 2021-06-19 at 15:34 +0800, Xi Ruoyao wrote:
> 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).
>
> Bootstrapped and tested on mips64el-linux-gnu. OK to commit?
>
> gcc/
>
> * 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/
>
> * testsuite/gcc.target/mips/pr100760.c: New test.
> * testsuite/gcc.target/mips/pr100761.c: New test.
> * testsuite/gcc.target/mips/pr100762.c: New test.
--
Xi Ruoyao <xry111@mengyan1223.wang>
More information about the Gcc-patches
mailing list