diff mbox series

[v1] LoongArch: Fix instruction name typo in lsx_vreplgr2vr_<lsxfmt_f> template

Message ID 20231103090136.1672669-1-panchenghui@loongson.cn
State New
Headers show
Series [v1] LoongArch: Fix instruction name typo in lsx_vreplgr2vr_<lsxfmt_f> template | expand

Commit Message

Chenghui Pan Nov. 3, 2023, 9:01 a.m. UTC
gcc/ChangeLog:

	* config/loongarch/lsx.md: Fix instruction name typo in
	lsx_vreplgr2vr_<lsxfmt_f> template.
---
 gcc/config/loongarch/lsx.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lulu Cheng Nov. 10, 2023, 8:46 a.m. UTC | #1
Pushed to r14-5314.

在 2023/11/3 下午5:01, Chenghui Pan 写道:
> gcc/ChangeLog:
>
> 	* config/loongarch/lsx.md: Fix instruction name typo in
> 	lsx_vreplgr2vr_<lsxfmt_f> template.
> ---
>   gcc/config/loongarch/lsx.md | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/config/loongarch/lsx.md b/gcc/config/loongarch/lsx.md
> index 4af32c8dfe1..55c7d79a030 100644
> --- a/gcc/config/loongarch/lsx.md
> +++ b/gcc/config/loongarch/lsx.md
> @@ -1523,7 +1523,7 @@ (define_insn "lsx_vreplgr2vr_<lsxfmt_f>"
>     "ISA_HAS_LSX"
>   {
>     if (which_alternative == 1)
> -    return "ldi.<lsxfmt>\t%w0,0";
> +    return "vldi.<lsxfmt>\t%w0,0";
>   
>     if (!TARGET_64BIT && (<MODE>mode == V2DImode || <MODE>mode == V2DFmode))
>       return "#";
diff mbox series

Patch

diff --git a/gcc/config/loongarch/lsx.md b/gcc/config/loongarch/lsx.md
index 4af32c8dfe1..55c7d79a030 100644
--- a/gcc/config/loongarch/lsx.md
+++ b/gcc/config/loongarch/lsx.md
@@ -1523,7 +1523,7 @@  (define_insn "lsx_vreplgr2vr_<lsxfmt_f>"
   "ISA_HAS_LSX"
 {
   if (which_alternative == 1)
-    return "ldi.<lsxfmt>\t%w0,0";
+    return "vldi.<lsxfmt>\t%w0,0";
 
   if (!TARGET_64BIT && (<MODE>mode == V2DImode || <MODE>mode == V2DFmode))
     return "#";