[Bug rtl-optimization/30957] Misscompare with variable expansion optimization
eres at il dot ibm dot com
gcc-bugzilla@gcc.gnu.org
Mon Feb 26 11:46:00 GMT 2007
------- Comment #4 from eres at il dot ibm dot com 2007-02-26 11:46 -------
Created an attachment (id=13113)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13113&action=view)
assembly file (PPC)
It seems that problem is in the initialization of the expansion
(which related to the sign of the init value).
The original accumulator is been initialized as follows:
fmr 0,1
rlwinm 0,3,0,29,31
while the expansion is been initialized as follows:
lis 11,.LC0@ha
lfs 13,.LC0@l(11)
when the expansion is been initialized with the value of the original
accumulator the program executed as expected.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30957
More information about the Gcc-bugs
mailing list