public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "thiago.bauermann at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/116604] New: [15 regression] regressions on aarch64 since r15-1619-g3b9b8d6cfdf593
Date: Wed, 04 Sep 2024 20:55:07 +0000	[thread overview]
Message-ID: <bug-116604-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116604

            Bug ID: 116604
           Summary: [15 regression] regressions on aarch64 since
                    r15-1619-g3b9b8d6cfdf593
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: testsuite-fail
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thiago.bauermann at linaro dot org
                CC: jskumari at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64

Since commit r15-1619-g3b9b8d6cfdf593 we see this vectorization regression on
aarch64-linux-gnu:

Running gcc:gcc.target/aarch64/sve/pcs/aarch64-sve-pcs.exp ...
FAIL: gcc.target/aarch64/sve/pcs/args_1.c -march=armv8.2-a+sve
-fno-stack-protector  check-function-bodies callee_pred

The failure is:

body: \taddvl   sp, sp, #-1
\tstr   p[0-9]+, \[sp\]
\tstr   p[0-9]+, \[sp, #1, mul vl\]
\tldr   (p[0-9]+), \[x0\]
\tldr   (p[0-9]+), \[x1\]
\tbrkpa (p[0-7])\.b, p0/z, p1\.b, p2\.b
\tbrkpb (p[0-7])\.b, \3/z, p3\.b, \1\.b
\tbrka  p0\.b, \4/z, \2\.b
\tldr   p[0-9]+, \[sp\]
\tldr   p[0-9]+, \[sp, #1, mul vl\]
\taddvl sp, sp, #1
\tret

against:        addvl   sp, sp, #-1
        str     p14, [sp]
        str     p15, [sp, #1, mul vl]
        mov     p14.b, p3.b
        ldr     p15, [x0]
        ldr     p3, [x1]
        brkpa   p0.b, p0/z, p1.b, p2.b
        brkpb   p0.b, p0/z, p14.b, p15.b
        brka    p0.b, p0/z, p3.b
        ldr     p14, [sp]
        ldr     p15, [sp, #1, mul vl]
        addvl   sp, sp, #1
        ret

The difference in expected vs actual is that there's an extra instruction "mov
p14.b, p3.b", and also in the brkpb instruction p14.b is used instead of the
expected p3.b.

We also see regressions in other testcases on arm-linux-gnueabihf and yet
others on arm-none-eabi, but I'll file separate bugzillas for those.

             reply	other threads:[~2024-09-04 20:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-04 20:55 thiago.bauermann at linaro dot org [this message]
2024-09-04 21:00 ` [Bug target/116604] " pinskia at gcc dot gnu.org

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=bug-116604-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).