This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/30957] Misscompare with variable expansion optimization



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]