This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11198] [3.3 regression] -O2 -frename-registers generates wrong code
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2003 08:02:52 -0000
- Subject: [Bug optimization/11198] [3.3 regression] -O2 -frename-registers generates wrong code
- References: <20030615174957.11198.jhr.walter@t-online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11198
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2003-07-04 08:02 -------
Not quite. Don't forget that the AT&T style uses 'mov src,dest'.
According to GDB, the problem is rather here:
0x08048458 29 if (j < size2_ && i-j < 2)
804844f: dd 00 fldl (%eax)
8048451: 8b 4d d8 mov 0xffffffd8(%ebp),%ecx
8048454: 8b 11 mov (%ecx),%edx
8048456: 31 c9 xor %ecx,%ecx
8048458: 3b 0a cmp (%edx),%ecx