All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] LoongArch: Add I14 description in documentation
@ 2022-08-10  6:03 Tiezhu Yang
  2022-08-10  6:29 ` YanTeng Si
  0 siblings, 1 reply; 2+ messages in thread
From: Tiezhu Yang @ 2022-08-10  6:03 UTC (permalink / raw)
  To: Huacai Chen, WANG Xuerui, Jonathan Corbet, Alex Shi, Yanteng Si
  Cc: loongarch, linux-doc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 2136 bytes --]

I14 is also immediate operand, like I8/I12/I16/I21/I26.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---

v2: Modify the Chinese documentation.

 Documentation/loongarch/introduction.rst                    | 2 +-
 Documentation/translations/zh_CN/loongarch/introduction.rst | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/loongarch/introduction.rst b/Documentation/loongarch/introduction.rst
index 216b3f3..6c9160c 100644
--- a/Documentation/loongarch/introduction.rst
+++ b/Documentation/loongarch/introduction.rst
@@ -221,7 +221,7 @@ I26         Opcode + I26L + I26H
 =========== ==========================
 
 Rd is the destination register operand, while Rj, Rk and Ra ("a" stands for
-"additional") are the source register operands. I8/I12/I16/I21/I26 are
+"additional") are the source register operands. I8/I12/I14/I16/I21/I26 are
 immediate operands of respective width. The longer I21 and I26 are stored
 in separate higher and lower parts in the instruction word, denoted by the "L"
 and "H" suffixes.
diff --git a/Documentation/translations/zh_CN/loongarch/introduction.rst b/Documentation/translations/zh_CN/loongarch/introduction.rst
index 11686ee..128878f 100644
--- a/Documentation/translations/zh_CN/loongarch/introduction.rst
+++ b/Documentation/translations/zh_CN/loongarch/introduction.rst
@@ -190,8 +190,8 @@ I26         Opcode + I26L + I26H
 =========== ==========================
 
 Opcode是指令操作码,Rj和Rk是源操作数(寄存器),Rd是目标操作数(寄存器),Ra是
-4R-type格式特有的附加操作数(寄存器)。I8/I12/I16/I21/I26分别是8位/12位/16位/
-21位/26位的立即数。其中较长的21位和26位立即数在指令字中被分割为高位部分与低位
+4R-type格式特有的附加操作数(寄存器)。I8/I12/I14/I16/I21/I26分别是8位/12位/14位/
+16位/21位/26位的立即数。其中较长的21位和26位立即数在指令字中被分割为高位部分与低位
 部分,所以你们在这里的格式描述中能够看到I21L/I21H和I26L/I26H这样带后缀的表述。
 
 指令列表
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] LoongArch: Add I14 description in documentation
  2022-08-10  6:03 [PATCH v2] LoongArch: Add I14 description in documentation Tiezhu Yang
@ 2022-08-10  6:29 ` YanTeng Si
  0 siblings, 0 replies; 2+ messages in thread
From: YanTeng Si @ 2022-08-10  6:29 UTC (permalink / raw)
  To: Tiezhu Yang, Huacai Chen, WANG Xuerui, Jonathan Corbet, Alex Shi
  Cc: loongarch, linux-doc


在 2022/8/10 14:03, Tiezhu Yang 写道:
> I14 is also immediate operand, like I8/I12/I16/I21/I26.
>
> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
> ---
>
> v2: Modify the Chinese documentation.
>
>   Documentation/loongarch/introduction.rst                    | 2 +-
>   Documentation/translations/zh_CN/loongarch/introduction.rst | 4 ++--
>   2 files changed, 3 insertions(+), 3 deletions(-)

Hi Tiezhu


You can split it into two patches, i.e. one for English and one for 
Chinese.


Thanks,

Yanteng


>
> diff --git a/Documentation/loongarch/introduction.rst b/Documentation/loongarch/introduction.rst
> index 216b3f3..6c9160c 100644
> --- a/Documentation/loongarch/introduction.rst
> +++ b/Documentation/loongarch/introduction.rst
> @@ -221,7 +221,7 @@ I26         Opcode + I26L + I26H
>   =========== ==========================
>   
>   Rd is the destination register operand, while Rj, Rk and Ra ("a" stands for
> -"additional") are the source register operands. I8/I12/I16/I21/I26 are
> +"additional") are the source register operands. I8/I12/I14/I16/I21/I26 are
>   immediate operands of respective width. The longer I21 and I26 are stored
>   in separate higher and lower parts in the instruction word, denoted by the "L"
>   and "H" suffixes.
> diff --git a/Documentation/translations/zh_CN/loongarch/introduction.rst b/Documentation/translations/zh_CN/loongarch/introduction.rst
> index 11686ee..128878f 100644
> --- a/Documentation/translations/zh_CN/loongarch/introduction.rst
> +++ b/Documentation/translations/zh_CN/loongarch/introduction.rst
> @@ -190,8 +190,8 @@ I26         Opcode + I26L + I26H
>   =========== ==========================
>   
>   Opcode是指令操作码,Rj和Rk是源操作数(寄存器),Rd是目标操作数(寄存器),Ra是
> -4R-type格式特有的附加操作数(寄存器)。I8/I12/I16/I21/I26分别是8位/12位/16位/
> -21位/26位的立即数。其中较长的21位和26位立即数在指令字中被分割为高位部分与低位
> +4R-type格式特有的附加操作数(寄存器)。I8/I12/I14/I16/I21/I26分别是8位/12位/14位/
> +16位/21位/26位的立即数。其中较长的21位和26位立即数在指令字中被分割为高位部分与低位
>   部分,所以你们在这里的格式描述中能够看到I21L/I21H和I26L/I26H这样带后缀的表述。
>   
>   指令列表


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-10  6:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-10  6:03 [PATCH v2] LoongArch: Add I14 description in documentation Tiezhu Yang
2022-08-10  6:29 ` YanTeng Si

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.