diff options
author | Lulu Cheng <chenglulu@loongson.cn> | 2024-11-02 15:30:40 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2024-11-22 09:53:45 +0800 |
commit | f0cb64fb3f9d8e6f765007d4d62f1f5df73dc498 (patch) | |
tree | 81426b004ebe5a9a6c5fcc85e7a7dc367542df2a /gcc | |
parent | ae7e25662f3f1255786f6bc13428d95b4ace6839 (diff) | |
download | gcc-f0cb64fb3f9d8e6f765007d4d62f1f5df73dc498.zip gcc-f0cb64fb3f9d8e6f765007d4d62f1f5df73dc498.tar.gz gcc-f0cb64fb3f9d8e6f765007d4d62f1f5df73dc498.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/loongarch/lasx.md | 2 | ||||
-rw-r--r-- | gcc/config/loongarch/lsx.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/loongarch/lasx.md b/gcc/config/loongarch/lasx.md index d37b2e8..457ed16 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.<lasxfmt>\t%u0,%z1"; } diff --git a/gcc/config/loongarch/lsx.md b/gcc/config/loongarch/lsx.md index fcba28b..a900429 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.<lsxfmt>\t%w0,0"; + return "vrepli.b\t%w0,0"; return "vreplgr2vr.<lsxfmt>\t%w0,%z1"; } |