From: Lulu Cheng Date: Sat, 2 Nov 2024 07:30:40 +0000 (+0800) Subject: LoongArch: Fix clerical errors in lasx_xvreplgr2vr_* and lsx_vreplgr2vr_*. X-Git-Tag: basepoints/gcc-16~3972 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0cb64fb3f9d8e6f765007d4d62f1f5df73dc498;p=thirdparty%2Fgcc.git LoongArch: Fix clerical errors in lasx_xvreplgr2vr_* and lsx_vreplgr2vr_*. [x]vldi.{b/h/w/d} is not implemented in LoongArch. Use the macro [x]vrepli.{b/h/w/d} to replace. gcc/ChangeLog: * config/loongarch/lasx.md: Fixed. * config/loongarch/lsx.md: Fixed. --- diff --git a/gcc/config/loongarch/lasx.md b/gcc/config/loongarch/lasx.md index d37b2e83c21e..457ed163f317 100644 --- a/gcc/config/loongarch/lasx.md +++ b/gcc/config/loongarch/lasx.md @@ -1402,7 +1402,7 @@ "ISA_HAS_LASX" { if (which_alternative == 1) - return "xvldi.b\t%u0,0" ; + return "xvrepli.b\t%u0,0"; return "xvreplgr2vr.\t%u0,%z1"; } diff --git a/gcc/config/loongarch/lsx.md b/gcc/config/loongarch/lsx.md index fcba28b07515..a9004290371f 100644 --- a/gcc/config/loongarch/lsx.md +++ b/gcc/config/loongarch/lsx.md @@ -1275,7 +1275,7 @@ "ISA_HAS_LSX" { if (which_alternative == 1) - return "vldi.\t%w0,0"; + return "vrepli.b\t%w0,0"; return "vreplgr2vr.\t%w0,%z1"; }