public inbox for
 help / color / mirror / Atom feed
From: Max Filippov <>
To: "Takayuki 'January June' Suwa" <>
Cc: GCC Patches <>
Subject: Re: [PATCH] xtensa: Make register A0 allocable for the CALL0 ABI
Date: Thu, 20 Oct 2022 22:49:15 -0700	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Hi Suwa-san,

On Thu, Oct 20, 2022 at 7:58 PM Takayuki 'January June' Suwa
<> wrote:
> This patch offers an additional allocable register by RA for the CALL0
> ABI.
> > Register a0 holds the return address upon entry to a function, but
> > unlike the windowed register ABI, it is not reserved for this purpose
> > and may hold other values after the return address has been saved.
>   - Xtensa ISA Reference Manual,
>                    8.1.2 "CALL0 Register Usage and Stack Layout" [p.589]
> gcc/ChangeLog:
>         * config/xtensa/ (xtensa_conditional_register_usage):
>         Remove register A0 from FIXED_REGS if the CALL0 ABI.
> ---
>  gcc/config/xtensa/ | 7 +++++++
>  1 file changed, 7 insertions(+)

This change results in the following new regressions:

FAIL: gcc.c-torture/execute/20040709-1.c   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution
FAIL: gcc.c-torture/execute/20040709-2.c   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution
FAIL: gcc.c-torture/execute/20190820-1.c   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution
FAIL: gcc.c-torture/execute/loop-15.c   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution
FAIL: gcc.dg/torture/pr101031.c   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution
FAIL: gcc.dg/torture/pr101972.c   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution
FAIL: gcc.dg/torture/pr99954.c   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution
FAIL: g++.dg/coroutines/torture/co-yield-04-complex-local-state.C
-O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
-finline-functions  execution test
FAIL: g++.dg/coroutines/torture/local-var-05-awaitable.C   -O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
-finline-functions  execution test

-- Max

  reply	other threads:[~2022-10-21  5:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <>
2022-10-21  2:58 ` Takayuki 'January June' Suwa
2022-10-21  5:49   ` Max Filippov [this message]
2022-10-21 22:46     ` [PATCH v2] " Takayuki 'January June' Suwa
2022-10-22  7:26       ` Max Filippov

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:

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

  git send-email \
    --in-reply-to='' \ \ \ \

* 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).