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 <pins...@gcc.gnu.org>:

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

commit r12-6374-g997130f778c56466a825627644e510960585521b
Author: Andrew Pinski <apin...@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.
  • [Bug target/102941] ICE in extr... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to