public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/31796] New: Evaluate remquo/remainder/drem at compile-time
@ 2007-05-03 3:00 ghazi at gcc dot gnu dot org
2007-05-05 17:57 ` [Bug middle-end/31796] " ghazi at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-05-03 3:00 UTC (permalink / raw)
To: gcc-bugs
GCC should use MPFR to evaluate builtins remquo, remainder (and the common
extension function drem) at compile-time when they are provided with constant
arguments. The forthcoming mpfr-2.3.0 has suitable functionality to do this.
--
Summary: Evaluate remquo/remainder/drem at compile-time
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: middle-end
AssignedTo: ghazi at gcc dot gnu dot org
ReportedBy: ghazi at gcc dot gnu dot org
BugsThisDependsOn: 29335
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31796
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/31796] Evaluate remquo/remainder/drem at compile-time
2007-05-03 3:00 [Bug middle-end/31796] New: Evaluate remquo/remainder/drem at compile-time ghazi at gcc dot gnu dot org
@ 2007-05-05 17:57 ` ghazi at gcc dot gnu dot org
2007-05-05 18:45 ` patchapp at dberlin dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-05-05 17:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ghazi at gcc dot gnu dot org 2007-05-05 18:57 -------
Patch posted here:
http://gcc.gnu.org/ml/gcc-patches/2007-05/msg00297.html
--
ghazi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2007-
| |05/msg00297.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31796
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/31796] Evaluate remquo/remainder/drem at compile-time
2007-05-03 3:00 [Bug middle-end/31796] New: Evaluate remquo/remainder/drem at compile-time ghazi at gcc dot gnu dot org
2007-05-05 17:57 ` [Bug middle-end/31796] " ghazi at gcc dot gnu dot org
@ 2007-05-05 18:45 ` patchapp at dberlin dot org
2007-05-18 1:32 ` ghazi at gcc dot gnu dot org
2007-05-19 4:14 ` ghazi at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: patchapp at dberlin dot org @ 2007-05-05 18:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from patchapp at dberlin dot org 2007-05-05 19:45 -------
Subject: Bug number PR middle-end/31796
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-05/msg00297.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31796
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/31796] Evaluate remquo/remainder/drem at compile-time
2007-05-03 3:00 [Bug middle-end/31796] New: Evaluate remquo/remainder/drem at compile-time ghazi at gcc dot gnu dot org
2007-05-05 17:57 ` [Bug middle-end/31796] " ghazi at gcc dot gnu dot org
2007-05-05 18:45 ` patchapp at dberlin dot org
@ 2007-05-18 1:32 ` ghazi at gcc dot gnu dot org
2007-05-19 4:14 ` ghazi at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-05-18 1:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from ghazi at gcc dot gnu dot org 2007-05-18 02:31 -------
Subject: Bug 31796
Author: ghazi
Date: Fri May 18 01:31:20 2007
New Revision: 124820
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124820
Log:
PR middle-end/31796
* builtins.c (do_mpfr_remquo): New.
(fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
(fold_builtin_3): Handle BUILT_IN_REMQUO.
testsuite:
* gcc.dg/torture/builtin-math-2.c: Add tests for remquo, remainder
and drem.
* gcc.dg/torture/builtin-math-4.c: Likewise.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/builtins.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/torture/builtin-math-2.c
trunk/gcc/testsuite/gcc.dg/torture/builtin-math-4.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31796
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/31796] Evaluate remquo/remainder/drem at compile-time
2007-05-03 3:00 [Bug middle-end/31796] New: Evaluate remquo/remainder/drem at compile-time ghazi at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-05-18 1:32 ` ghazi at gcc dot gnu dot org
@ 2007-05-19 4:14 ` ghazi at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-05-19 4:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from ghazi at gcc dot gnu dot org 2007-05-19 05:14 -------
Functionality installed on trunk.
--
ghazi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31796
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-19 4:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-03 3:00 [Bug middle-end/31796] New: Evaluate remquo/remainder/drem at compile-time ghazi at gcc dot gnu dot org
2007-05-05 17:57 ` [Bug middle-end/31796] " ghazi at gcc dot gnu dot org
2007-05-05 18:45 ` patchapp at dberlin dot org
2007-05-18 1:32 ` ghazi at gcc dot gnu dot org
2007-05-19 4:14 ` ghazi at gcc dot gnu dot 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).