This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/30957] Misscompare with variable expansion optimization
- From: "eres at il dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2007 11:46:37 -0000
- Subject: [Bug rtl-optimization/30957] Misscompare with variable expansion optimization
- References: <bug-30957-13229@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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