public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/94396] [8/9/10 Regression] fp16 feature bits not passed on to assembler from Armv8.4-a and up.
Date: Fri, 03 Apr 2020 14:20:13 +0000	[thread overview]
Message-ID: <bug-94396-4-HW2ONZmYJw@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-94396-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tamar Christina <tnfchris@gcc.gnu.org>:

https://gcc.gnu.org/g:53161358180fdc2c2c21c8f46bbdd339a1fbb8ae

commit r10-7537-g53161358180fdc2c2c21c8f46bbdd339a1fbb8ae
Author: Tamar Christina <tamar.christina@arm.com>
Date:   Fri Apr 3 15:18:35 2020 +0100

    AArch64: Fix options canonicalization for assembler

    It is currently impossible to use fp16 on any architecture higher than
Armv8.3-a
    due to a bug in options canonization.  This bug results in the fp16 flag
not
    being emitted in the assembly when it should have been.

    This is caused by a complicated architectural requirement at Armv8.4-a.  On
    Armv8.2-a and Armv8.3-a fp16fml is an optional extension and turning it on
turns
    on both fp and fp16.  However starting with Armv8.4-a fp16fml is mandatory
if
    fp16 is available, otherwise it's optional.

    In short this means that to enable fp16fml the smallest option that needs
to
    passed to the assembler is Armv8.4-a+fp16.

    The fix in this patch takes into account that an option may be on by
default in
    an architecture, but that not all the bits required to use it are on by
default
    in an architecture.  In such cases the difference between the two are still
    emitted to the assembler.

    gcc/ChangeLog:

            PR target/94396
            * common/config/aarch64/aarch64-common.c
            (aarch64_get_extension_string_for_isa_flags): Handle default flags.

    gcc/testsuite/ChangeLog:

            PR target/94396
            * gcc.target/aarch64/options_set_11.c: New test.
            * gcc.target/aarch64/options_set_12.c: New test.
            * gcc.target/aarch64/options_set_13.c: New test.
            * gcc.target/aarch64/options_set_14.c: New test.
            * gcc.target/aarch64/options_set_15.c: New test.
            * gcc.target/aarch64/options_set_16.c: New test.
            * gcc.target/aarch64/options_set_17.c: New test.
            * gcc.target/aarch64/options_set_18.c: New test.
            * gcc.target/aarch64/options_set_19.c: New test.
            * gcc.target/aarch64/options_set_20.c: New test.
            * gcc.target/aarch64/options_set_21.c: New test.
            * gcc.target/aarch64/options_set_22.c: New test.
            * gcc.target/aarch64/options_set_23.c: New test.
            * gcc.target/aarch64/options_set_24.c: New test.
            * gcc.target/aarch64/options_set_25.c: New test.
            * gcc.target/aarch64/options_set_26.c: New test.

  parent reply	other threads:[~2020-04-03 14:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30  7:04 [Bug target/94396] New: " tnfchris at gcc dot gnu.org
2020-03-30  8:29 ` [Bug target/94396] " rguenth at gcc dot gnu.org
2020-04-01  8:59 ` rguenth at gcc dot gnu.org
2020-04-03 14:20 ` cvs-commit at gcc dot gnu.org [this message]
2020-04-18 17:01 ` law at redhat dot com
2020-04-20 10:45 ` cvs-commit at gcc dot gnu.org
2020-04-20 10:48 ` cvs-commit 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-94396-4-HW2ONZmYJw@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).