This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24518] Intrinsic MOD incorrect for large arg1/arg2 and slow.
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2006 15:56:40 -0000
- Subject: [Bug fortran/24518] Intrinsic MOD incorrect for large arg1/arg2 and slow.
- References: <bug-24518-9236@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from pault at gcc dot gnu dot org 2006-10-31 15:56 -------
Created an attachment (id=12518)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12518&action=view)
A fix for the PR:
FX and Uros,
I believe that this correctly detects the presence of the built_in. It also
does MODULO correctly, although I am not sure that I understand why anybody
would use this intrinsic knowingly!
I have not done a full regtest, nor checked the timing yet, but the testsuite
cases with MOD and MODULO in them all survive.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24518