public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: chenglulu <chenglulu@loongson.cn>
To: Xi Ruoyao <xry111@xry111.site>, gcc-patches@gcc.gnu.org
Cc: i@xen0n.name, xuchenghua@loongson.cn, mengqinggang@loongson.cn
Subject: Re: [PATCH] LoongArch: Allow s9 as a register alias
Date: Fri, 1 Mar 2024 11:49:17 +0800	[thread overview]
Message-ID: <955201db-36eb-82d6-6fb4-120194ad9db9@loongson.cn> (raw)
In-Reply-To: <20240229071549.58350-1-xry111@xry111.site>


在 2024/2/29 下午3:14, Xi Ruoyao 写道:
> The psABI allows using s9 as an alias of r22.
>
> gcc/ChangeLog:
>
> 	* config/loongarch/loongarch.h (ADDITIONAL_REGISTER_NAMES): Add
> 	s9 as an alias of r22.
> ---
>
> Bootstrapped and regtested on loongarch64-linux-gnu.  Ok for trunk?

I think a test is needed.

Others LGTM.

Thanks!

>
>   gcc/config/loongarch/loongarch.h | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/gcc/config/loongarch/loongarch.h b/gcc/config/loongarch/loongarch.h
> index 8b453ab3140..bf2351f0968 100644
> --- a/gcc/config/loongarch/loongarch.h
> +++ b/gcc/config/loongarch/loongarch.h
> @@ -931,6 +931,7 @@ typedef struct {
>     { "t8",	20 + GP_REG_FIRST },					\
>     { "x",	21 + GP_REG_FIRST },					\
>     { "fp",	22 + GP_REG_FIRST },					\
> +  { "s9",	22 + GP_REG_FIRST },					\
>     { "s0",	23 + GP_REG_FIRST },					\
>     { "s1",	24 + GP_REG_FIRST },					\
>     { "s2",	25 + GP_REG_FIRST },					\


      reply	other threads:[~2024-03-01  3:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-29  7:14 Xi Ruoyao
2024-03-01  3:49 ` chenglulu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=955201db-36eb-82d6-6fb4-120194ad9db9@loongson.cn \
    --to=chenglulu@loongson.cn \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=i@xen0n.name \
    --cc=mengqinggang@loongson.cn \
    --cc=xry111@xry111.site \
    --cc=xuchenghua@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).