This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14053] second stage build errors (--with-cpu=601)
- From: "stefaan dot simoens at tiscali dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Feb 2004 21:12:02 -0000
- Subject: [Bug optimization/14053] second stage build errors (--with-cpu=601)
- References: <20040206230200.14053.stefaan.simoens@tiscali.be>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From stefaan dot simoens at tiscali dot be 2004-02-20 21:12 -------
some investigation (very basic: replacing part by part portions of the working
assembler code with the non-working assembler-code) showed that the error
occurs when calculating the remainder
PowerPC code calculates a remainder with
divw
mullw
subf
(f.e.
divw 9,11,0
mullw 0,9,0
subf 0,0,11
)
601 calculates a reminder with
divs
mfmq
(f.e.
divs 0,9,0
mfmq 0
)
I think the latter implementation doesn't always give the same results as the
former implementation. Maybe it's a difference in exception handling?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14053