[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2012-05-05 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 --- Comment #12 from Janne Blomqvist jb at gcc dot gnu.org 2012-05-05 07:59:28 UTC --- Author: jb Date: Sat May 5 07:59:22 2012 New Revision: 187191 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=187191 Log: PR 49010,24518 MOD/MODULO

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2012-05-05 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 Janne Blomqvist jb at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2011-05-17 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 --- Comment #5 from Thomas Henlich thenlich at users dot sourceforge.net 2011-05-17 05:51:56 UTC --- The fmod behaviour is correct for x 0 according to N1548: double fmod(double x, double y); float fmodf(float x, float y); The fmod functions

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2011-05-17 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 Janne Blomqvist jb at gcc dot gnu.org changed: What|Removed |Added CC||jb at gcc dot

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2011-05-17 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 --- Comment #7 from Thomas Henlich thenlich at users dot sourceforge.net 2011-05-17 11:57:31 UTC --- I suppose we could still use __builtin_fmod if we reset the sign bit if the result is -0.

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2011-05-17 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 --- Comment #8 from Janne Blomqvist jb at gcc dot gnu.org 2011-05-17 14:02:07 UTC --- So does the fallback path actually ever get used? AFAICS the builtins are always available, and if the builtin results in a call to fmod{f,,l,Q} we have

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2011-05-17 Thread sgk at troutmask dot apl.washington.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 --- Comment #9 from Steve Kargl sgk at troutmask dot apl.washington.edu 2011-05-17 14:02:11 UTC --- On Tue, May 17, 2011 at 06:05:50AM +, thenlich at users dot sourceforge.net wrote: --- Comment #5 from Thomas Henlich thenlich at users dot

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2011-05-17 Thread sgk at troutmask dot apl.washington.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 --- Comment #10 from Steve Kargl sgk at troutmask dot apl.washington.edu 2011-05-17 14:50:52 UTC --- On Tue, May 17, 2011 at 02:17:22PM +, jb at gcc dot gnu.org wrote: So does the fallback path actually ever get used? AFAICS the builtins

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2011-05-17 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 --- Comment #11 from Janne Blomqvist jb at gcc dot gnu.org 2011-05-17 16:18:41 UTC --- (In reply to comment #10) On Tue, May 17, 2011 at 02:17:22PM +, jb at gcc dot gnu.org wrote: So does the fallback path actually ever get used? AFAICS

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2011-05-16 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 Tobias Burnus burnus at gcc dot gnu.org changed: What|Removed |Added CC||burnus at gcc

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2011-05-16 Thread kargl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2011-05-16 Thread sgk at troutmask dot apl.washington.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 --- Comment #3 from Steve Kargl sgk at troutmask dot apl.washington.edu 2011-05-16 21:17:44 UTC --- There is an additional problem with MOD(A,P) and MODULO(A,P). In F95, one finds P = 0, the result is processor dependent. In F2003 and F2008,

[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign

2011-05-16 Thread sgk at troutmask dot apl.washington.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010 --- Comment #4 from Steve Kargl sgk at troutmask dot apl.washington.edu 2011-05-16 21:43:57 UTC --- On Mon, May 16, 2011 at 09:31:57PM +, sgk at troutmask dot apl.washington.edu wrote: In F95, one finds P = 0, the result is processor