* Athlon SSE optimization
@ 2002-07-15 7:42 Jan Hubicka
2002-07-15 13:15 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: Jan Hubicka @ 2002-07-15 7:42 UTC (permalink / raw)
To: gcc-patches, rth, patches
Hi,
Intel recommends to use xorp for clearing registers, while Athlon
preffers the properly typed xor to reduce code size.
Honza
Mon Jul 15 16:40:19 CEST 2002 Jan Hubicka <jh@suse.cz>
* i386.md (movss, movsd): Use xorps/xorpd for Athlon.
Index: i386.md
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/i386.md,v
retrieving revision 1.376
diff -c -3 -p -r1.376 i386.md
*** i386.md 3 Jul 2002 17:02:39 -0000 1.376
--- i386.md 10 Jul 2002 19:01:14 -0000
***************
*** 2129,2135 ****
case 4:
return "mov{l}\t{%1, %0|%0, %1}";
case 5:
! if (TARGET_SSE2)
return "pxor\t%0, %0";
else
return "xorps\t%0, %0";
--- 2129,2135 ----
case 4:
return "mov{l}\t{%1, %0|%0, %1}";
case 5:
! if (TARGET_SSE2 && !TARGET_ATHLON)
return "pxor\t%0, %0";
else
return "xorps\t%0, %0";
***************
*** 2315,2321 ****
case 4:
return "#";
case 5:
! return "pxor\t%0, %0";
case 6:
if (TARGET_PARTIAL_REG_DEPENDENCY)
return "movapd\t{%1, %0|%0, %1}";
--- 2315,2324 ----
case 4:
return "#";
case 5:
! if (TARGET_ATHLON)
! return "xorpd\t%0, %0";
! else
! return "pxor\t%0, %0";
case 6:
if (TARGET_PARTIAL_REG_DEPENDENCY)
return "movapd\t{%1, %0|%0, %1}";
***************
*** 2374,2380 ****
return "#";
case 5:
! return "pxor\t%0, %0";
case 6:
if (TARGET_PARTIAL_REG_DEPENDENCY)
return "movapd\t{%1, %0|%0, %1}";
--- 2377,2386 ----
return "#";
case 5:
! if (TARGET_ATHLON)
! return "xorpd\t%0, %0";
! else
! return "pxor\t%0, %0";
case 6:
if (TARGET_PARTIAL_REG_DEPENDENCY)
return "movapd\t{%1, %0|%0, %1}";
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Athlon SSE optimization
2002-07-15 7:42 Athlon SSE optimization Jan Hubicka
@ 2002-07-15 13:15 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2002-07-15 13:15 UTC (permalink / raw)
To: Jan Hubicka; +Cc: gcc-patches, patches
On Mon, Jul 15, 2002 at 04:41:23PM +0200, Jan Hubicka wrote:
> * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
Ok.
r~
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-15 20:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-15 7:42 Athlon SSE optimization Jan Hubicka
2002-07-15 13:15 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).