[Bug optimization/14053] second stage build errors (--with-cpu=601)

stefaan dot simoens at tiscali dot be gcc-bugzilla@gcc.gnu.org
Fri Feb 20 21:12:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list