public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/63798] [5.0 regression] FAIL: gcc.target/powerpc/ppc-fmadd-1.c scan-assembler-not f(add|sub|mul|neg)
[not found] <bug-63798-4@http.gcc.gnu.org/bugzilla/>
@ 2014-11-10 9:57 ` rguenth at gcc dot gnu.org
2014-11-10 14:07 ` rguenth at gcc dot gnu.org
2014-11-10 14:07 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-10 9:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63798
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-11-10
CC|rguenther at suse dot de |rguenth at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Target Milestone|--- |5.0
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
There are four fneg instructions present still with r217281. I suppose
fneg 0,10
fmadd 0,11,0,12
...
fneg 0,10
fmsub 0,11,0,12
...
fneg 12,12
fmadds 0,11,12,0
...
fneg 0,0
fmsubs 0,12,0,11
should have been combined with the following instruction.
I don't see anything wrong here but eventually that
_65 = -_64;
_67 = _63 * _65 + _62;
has canonicalized operand order so that the negate is not always the
first operand of the embedded multiply?
>From expr.c:
def0 = get_def_for_expr (treeop0, NEGATE_EXPR);
def2 = get_def_for_expr (treeop2, NEGATE_EXPR);
...
indeed it doesn't consider the multiply is commutative.
I have a patch.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/63798] [5.0 regression] FAIL: gcc.target/powerpc/ppc-fmadd-1.c scan-assembler-not f(add|sub|mul|neg)
[not found] <bug-63798-4@http.gcc.gnu.org/bugzilla/>
2014-11-10 9:57 ` [Bug tree-optimization/63798] [5.0 regression] FAIL: gcc.target/powerpc/ppc-fmadd-1.c scan-assembler-not f(add|sub|mul|neg) rguenth at gcc dot gnu.org
@ 2014-11-10 14:07 ` rguenth at gcc dot gnu.org
2014-11-10 14:07 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-10 14:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63798
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Nov 10 14:06:56 2014
New Revision: 217287
URL: https://gcc.gnu.org/viewcvs?rev=217287&root=gcc&view=rev
Log:
2014-11-10 Richard Biener <rguenther@suse.de>
PR middle-end/63798
* expr.c (expand_expr_real_2): When expanding FMA_EXPRs
properly treat the embedded multiplication as commutative
when looking for feeding negates.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/expr.c
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/63798] [5.0 regression] FAIL: gcc.target/powerpc/ppc-fmadd-1.c scan-assembler-not f(add|sub|mul|neg)
[not found] <bug-63798-4@http.gcc.gnu.org/bugzilla/>
2014-11-10 9:57 ` [Bug tree-optimization/63798] [5.0 regression] FAIL: gcc.target/powerpc/ppc-fmadd-1.c scan-assembler-not f(add|sub|mul|neg) rguenth at gcc dot gnu.org
2014-11-10 14:07 ` rguenth at gcc dot gnu.org
@ 2014-11-10 14:07 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-10 14:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63798
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-10 14:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-63798-4@http.gcc.gnu.org/bugzilla/>
2014-11-10 9:57 ` [Bug tree-optimization/63798] [5.0 regression] FAIL: gcc.target/powerpc/ppc-fmadd-1.c scan-assembler-not f(add|sub|mul|neg) rguenth at gcc dot gnu.org
2014-11-10 14:07 ` rguenth at gcc dot gnu.org
2014-11-10 14:07 ` rguenth at gcc dot gnu.org
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).