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 tree-optimization/95060] vfnmsub132ps is not generated with -ffast-math
Date: Wed, 13 May 2020 09:21:50 +0000	[thread overview]
Message-ID: <bug-95060-4-Pa3cGm2JCe@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-95060-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:c0c39a765b0714aed36fced6fbba452a6619acb0

commit r11-350-gc0c39a765b0714aed36fced6fbba452a6619acb0
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed May 13 11:21:02 2020 +0200

    Fold single imm use of a FMA if it is a negation [PR95060]

    match.pd already has simplifications for negation of a FMA (FMS, FNMA,
FNMS)
    call if it is single use, but when the widening_mul pass discovers FMAs,
    nothing folds the statements anymore.

    So, the following patch adjusts the widening_mul pass to handle that.

    I had to adjust quite a lot of tests, because they have in them nested FMAs
    (one FMA feeding another one) and the patch results in some (equivalent)
changes
    in the chosen instructions, previously the negation of one FMA's result
    would result in the dependent FMA being adjusted for the negation, but now
    instead the first FMA is adjusted.

    2020-05-13  Jakub Jelinek  <jakub@redhat.com>

            PR tree-optimization/95060
            * tree-ssa-math-opts.c (convert_mult_to_fma_1): Fold a NEGATE_EXPR
            if it is the single use of the FMA internal builtin.

            * gcc.target/i386/avx512f-pr95060.c: New test.
            * gcc.target/i386/fma_double_1.c: Adjust expected insn counts.
            * gcc.target/i386/fma_double_2.c: Likewise.
            * gcc.target/i386/fma_double_3.c: Likewise.
            * gcc.target/i386/fma_double_4.c: Likewise.
            * gcc.target/i386/fma_double_5.c: Likewise.
            * gcc.target/i386/fma_double_6.c: Likewise.
            * gcc.target/i386/fma_float_1.c: Likewise.
            * gcc.target/i386/fma_float_2.c: Likewise.
            * gcc.target/i386/fma_float_3.c: Likewise.
            * gcc.target/i386/fma_float_4.c: Likewise.
            * gcc.target/i386/fma_float_5.c: Likewise.
            * gcc.target/i386/fma_float_6.c: Likewise.
            * gcc.target/i386/l_fma_double_1.c: Likewise.
            * gcc.target/i386/l_fma_double_2.c: Likewise.
            * gcc.target/i386/l_fma_double_3.c: Likewise.
            * gcc.target/i386/l_fma_double_4.c: Likewise.
            * gcc.target/i386/l_fma_double_5.c: Likewise.
            * gcc.target/i386/l_fma_double_6.c: Likewise.
            * gcc.target/i386/l_fma_float_1.c: Likewise.
            * gcc.target/i386/l_fma_float_2.c: Likewise.
            * gcc.target/i386/l_fma_float_3.c: Likewise.
            * gcc.target/i386/l_fma_float_4.c: Likewise.
            * gcc.target/i386/l_fma_float_5.c: Likewise.
            * gcc.target/i386/l_fma_float_6.c: Likewise.

  parent reply	other threads:[~2020-05-13  9:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-11 15:07 [Bug tree-optimization/95060] New: " ubizjak at gmail dot com
2020-05-11 15:12 ` [Bug tree-optimization/95060] " ubizjak at gmail dot com
2020-05-11 19:49 ` jakub at gcc dot gnu.org
2020-05-12  6:56 ` rguenth at gcc dot gnu.org
2020-05-12 10:21 ` jakub at gcc dot gnu.org
2020-05-13  9:21 ` cvs-commit at gcc dot gnu.org [this message]
2020-05-13  9:23 ` jakub at gcc dot gnu.org
2021-08-10 23:13 ` 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-95060-4-Pa3cGm2JCe@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).