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/102941] ICE in extract_insn with ccflags output from inline-asm and var with address taken
Date: Fri, 07 Jan 2022 22:07:37 +0000	[thread overview]
Message-ID: <bug-102941-4-EjwNDMJ2YE@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-102941-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:

https://gcc.gnu.org/g:997130f778c56466a825627644e510960585521b

commit r12-6374-g997130f778c56466a825627644e510960585521b
Author: Andrew Pinski <apinski@marvell.com>
Date:   Tue Oct 26 07:28:09 2021 +0000

    target: [PR102941] Fix inline-asm flags with non-REG_P output

    So the problem here is that arm_md_asm_adjust would
    just create a set directly to the output memory which is wrong.
    It needs to output to a temp register first and then do a
    move.

    OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions.
    I have no way to test on arm even though this touches common code.

            PR target/102941

    gcc/ChangeLog:

            * config/arm/aarch-common.c (arm_md_asm_adjust):
            Use a temp if !REG_P.

    gcc/testsuite/ChangeLog:

            * gcc.target/aarch64/asm-flag-7.c: New test.
            * gcc.target/arm/asm-flag-7.c: New test.

  parent reply	other threads:[~2022-01-07 22:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-26  6:39 [Bug target/102941] New: ICE in extract_insn, at recog.c:2769 with -ftrivial-auto-var-init=pattern marxin at gcc dot gnu.org
2021-10-26  6:40 ` [Bug target/102941] " marxin at gcc dot gnu.org
2021-10-26  6:42 ` pinskia at gcc dot gnu.org
2021-10-26  6:49 ` [Bug target/102941] ICE in extract_insn with ccflags output from inline-asm and var with address taken pinskia at gcc dot gnu.org
2021-10-26  6:54 ` pinskia at gcc dot gnu.org
2021-10-26  7:08 ` pinskia at gcc dot gnu.org
2021-10-26  7:12 ` pinskia at gcc dot gnu.org
2021-10-26  7:32 ` pinskia at gcc dot gnu.org
2021-10-26  9:45 ` pinskia at gcc dot gnu.org
2021-10-26 14:42 ` qinzhao at gcc dot gnu.org
2021-10-26 14:50 ` pinskia at gcc dot gnu.org
2022-01-07 22:07 ` cvs-commit at gcc dot gnu.org [this message]
2022-01-07 22:08 ` 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-102941-4-EjwNDMJ2YE@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).