------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-26 15:40 ------- (In reply to comment #7) > (In reply to comment #6) > > This is fully a IV-OPTS problem now. > > With -fno-ivopts, I get > > I can't get the same code as you. With mainline gcc (gcc version 4.0.0 > 20041126 > (experimental)) and 'gcc -O2 -S -fno-ivopts LU.c' I got:
Now at -O1, I do get the leal: leal 0(,%ebx,8), %edx movl (%edi), %ecx movl (%esi), %eax fldl (%edx,%eax) fstpl (%ecx,%edx) Likewise at -Os (which seems wrong): movl -16(%ebp), %eax leal 0(,%ebx,8), %edx incl %ebx movl (%eax), %ecx movl (%edi), %eax fldl (%eax,%edx) fstpl (%ecx,%edx) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17647