From bf50992e53161e113648b821e349d94e9d9642cf Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 6 Jul 2005 19:11:01 +0000 Subject: [PATCH] 2005-07-06 H.J. Lu * config/tc-i386.c (cpu_arch): Add sse3. * config/tc-i386.h (CpuSSE3): Renamed from ... (CpuPNI): This. Defined as CpuSSE3. * doc/c-i386.texi: Document .sse3. --- gas/ChangeLog | 9 +++++++++ gas/config/tc-i386.c | 1 + gas/config/tc-i386.h | 3 ++- gas/doc/c-i386.texi | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 68874ba92e..bc81e200d3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +2005-07-06 H.J. Lu + + * config/tc-i386.c (cpu_arch): Add sse3. + + * config/tc-i386.h (CpuSSE3): Renamed from ... + (CpuPNI): This. Defined as CpuSSE3. + + * doc/c-i386.texi: Document .sse3. + 2005-07-06 Jan Beulich * config/tc-ia64.c (nop): Use zero for L-unit pseudo-nop. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 9f9b23a1f9..4b571942a0 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -433,6 +433,7 @@ static const arch_entry cpu_arch[] = { {".mmx", CpuMMX }, {".sse", CpuMMX|CpuMMX2|CpuSSE }, {".sse2", CpuMMX|CpuMMX2|CpuSSE|CpuSSE2 }, + {".sse3", CpuMMX|CpuMMX2|CpuSSE|CpuSSE2|CpuSSE3 }, {".3dnow", CpuMMX|Cpu3dnow }, {".3dnowa", CpuMMX|CpuMMX2|Cpu3dnow|Cpu3dnowA }, {".padlock", CpuPadLock }, diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index e4359fe479..e545397d57 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -182,7 +182,8 @@ typedef struct #define CpuSSE2 0x4000 /* Streaming SIMD extensions 2 required */ #define Cpu3dnow 0x8000 /* 3dnow! support required */ #define Cpu3dnowA 0x10000 /* 3dnow!Extensions support required */ -#define CpuPNI 0x20000 /* Prescott New Instructions required */ +#define CpuSSE3 0x20000 /* Streaming SIMD extensions 3 required */ +#define CpuPNI CpuSSE3 /* Prescott New Instructions required */ #define CpuPadLock 0x40000 /* VIA PadLock required */ #define CpuSVME 0x80000 /* AMD Secure Virtual Machine Ext-s required */ diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi index 044218417d..678dfe34de 100644 --- a/gas/doc/c-i386.texi +++ b/gas/doc/c-i386.texi @@ -701,7 +701,7 @@ supported on the CPU specified. The choices for @var{cpu_type} are: @item @samp{i486} @tab @samp{i586} @tab @samp{i686} @tab @samp{pentium} @item @samp{pentiumpro} @tab @samp{pentiumii} @tab @samp{pentiumiii} @tab @samp{pentium4} @item @samp{k6} @tab @samp{athlon} @samp{sledgehammer} -@item @samp{.mmx} @samp{.sse} @samp{.sse2} @samp{.3dnow} +@item @samp{.mmx} @samp{.sse} @samp{.sse2} @samp{.sse3} @samp{.3dnow} @end multitable Apart from the warning, there are only two other effects on