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/104868] [12 Regression] powerpc: Compiling libgfortran with -flto failing with GCC 12
Date: Sat, 12 Mar 2022 00:47:42 +0000	[thread overview]
Message-ID: <bug-104868-4-bXZdtH0Xrp@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-104868-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Michael Meissner <meissner@gcc.gnu.org>:

https://gcc.gnu.org/g:3cb27b85a7b977958d53e1a29596ba211d21dde2

commit r12-7620-g3cb27b85a7b977958d53e1a29596ba211d21dde2
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Fri Mar 11 19:47:09 2022 -0500

    Fix DImode to TImode sign extend issue

    PR target/104868 had had an issue where my code that updated the DImode to
    TImode sign extension for power10 failed.  In looking at the failure
    message, the reason is when extendditi2 tries to split the insn, it
    generates an insn that does not satisfy its constraints:

            (set (reg:V2DI 65 1)
                 (vec_duplicate:V2DI (reg:DI 0)))

    The reason is vsx_splat_v2di does not allow GPR register 0 when the will
    be generating a mtvsrdd instruction.  In the definition of the mtvsrdd
    instruction, if the RA register is 0, it means clear the upper 64 bits of
    the vector instead of moving register GPR 0 to those bits.

    When I wrote the extendditi2 pattern, I forgot that mtvsrdd had that
    behavior so I used a 'r' constraint instead of 'b'.  In the rare case
    where the value is in GPR register 0, this split will fail.

    This patch uses the right constraint for extendditi2.

    2022-03-11   Michael Meissner  <meissner@linux.ibm.com>

    gcc/
            PR target/104868
            * config/rs6000/vsx.md (extendditi2): Use a 'b' constraint when
            moving from a GPR register to an Altivec register.

  parent reply	other threads:[~2022-03-12  0:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-10 18:11 [Bug lto/104868] New: " msc at linux dot ibm.com
2022-03-10 18:23 ` [Bug lto/104868] " segher at gcc dot gnu.org
2022-03-10 18:34 ` segher at gcc dot gnu.org
2022-03-10 19:13 ` segher at gcc dot gnu.org
2022-03-10 19:53 ` meissner at gcc dot gnu.org
2022-03-10 21:48 ` [Bug target/104868] [12 Regression] " pinskia at gcc dot gnu.org
2022-03-10 22:50 ` segher at gcc dot gnu.org
2022-03-11 14:44 ` msc at linux dot ibm.com
2022-03-11 16:11 ` meissner at gcc dot gnu.org
2022-03-11 16:12 ` meissner at gcc dot gnu.org
2022-03-11 16:44 ` msc at linux dot ibm.com
2022-03-12  0:47 ` cvs-commit at gcc dot gnu.org [this message]
2022-03-28 13:18 ` jakub 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-104868-4-bXZdtH0Xrp@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).