------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-18 06:49 ------- (In reply to comment #2) > I have tested gcc snapshot 'gcc version 4.1.0 20050716 (experimental)', > with 'gcc -O2 -ftree-vectorize -msse2' and it still produces code with both % > eax and %edx used. > > Andrew, which gcc version and compile flags have you used to produce your asm > code?
Oh, I have a local patch which will cause this, woops: Index: config/i386/i386.c =============================================================== ==== RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v retrieving revision 1.842 diff -u -p -r1.842 i386.c --- config/i386/i386.c 14 Jul 2005 07:46:16 -0000 1.842 +++ config/i386/i386.c 18 Jul 2005 06:48:33 -0000 @@ -5044,6 +5044,10 @@ ix86_address_cost (rtx x) /* More complex memory references are better. */ if (parts.disp && parts.disp != const0_rtx) cost--; + + if (parts.scale != 1) + cost--; + if (parts.seg != SEG_DEFAULT) cost--; -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-07-18 06:49:26 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22497