Patchwork [i386] Drop 3DNow support for Bulldozer processors (bdver1)

login
register
mail settings
Submitter Fang, Changpeng
Date Jan. 4, 2011, 6:38 p.m.
Message ID <D4C76825A6780047854A11E93CDE84D004C176842E@SAUSEXMBP01.amd.com>
Download mbox | patch
Permalink /patch/77510/
State New
Headers show

Comments

Fang, Changpeng - Jan. 4, 2011, 6:38 p.m.
Hi,

Bulldozer and future AMD processors no longer support 3DNow instructions.
This patch removes 3DNow from the bdver1-supported instruction sets.

Is it OK to commit to trunk?

Thanks,

Changpeng
Fang, Changpeng - Jan. 5, 2011, 5:31 p.m.
Is this good for 4.6?

Thanks,

Changpeng
Jan Hubicka - Jan. 5, 2011, 6:15 p.m.
> Is this good for 4.6?

Yes, thanks
Honza
> 
> Thanks,
> 
> Changpeng
> 
> ________________________________________
> From: Fang, Changpeng
> Sent: Tuesday, January 04, 2011 12:38 PM
> To: gcc-patches@gcc.gnu.org
> Subject: [PATCH i386] Drop 3DNow support for Bulldozer processors (bdver1)
> 
> Hi,
> 
> Bulldozer and future AMD processors no longer support 3DNow instructions.
> This patch removes 3DNow from the bdver1-supported instruction sets.
> 
> Is it OK to commit to trunk?
> 
> Thanks,
> 
> Changpeng

Patch

From 57179c83f774338b35db2ef1b903ca32223927ff Mon Sep 17 00:00:00 2001
From: Changpeng Fang <chfang@houghton.(none)>
Date: Mon, 3 Jan 2011 15:34:22 -0800
Subject: [PATCH] Remove 3DNow instructions from the bdver1-supported instruction sets

	* config/i386/i386.c (ix86_option_override_internal): Bulldozer
	processors do not support 3DNow instructions.
---
 gcc/config/i386/i386.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 50dac35..2a31d3c 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -3256,10 +3256,10 @@  ix86_option_override_internal (bool main_args_p)
 	PTA_64BIT | PTA_MMX | PTA_3DNOW | PTA_3DNOW_A | PTA_SSE
 	| PTA_SSE2 | PTA_SSE3 | PTA_SSE4A | PTA_CX16 | PTA_ABM},
       {"bdver1", PROCESSOR_BDVER1, CPU_BDVER1,
-	PTA_64BIT | PTA_MMX | PTA_3DNOW | PTA_3DNOW_A | PTA_SSE
-	| PTA_SSE2 | PTA_SSE3 | PTA_SSE4A | PTA_CX16 | PTA_ABM
-	| PTA_SSSE3 | PTA_SSE4_1 | PTA_SSE4_2 | PTA_AES
-	| PTA_PCLMUL | PTA_AVX | PTA_FMA4 | PTA_XOP | PTA_LWP},
+	PTA_64BIT | PTA_MMX | PTA_SSE | PTA_SSE2 | PTA_SSE3
+	| PTA_SSE4A | PTA_CX16 | PTA_ABM | PTA_SSSE3 | PTA_SSE4_1
+	| PTA_SSE4_2 | PTA_AES | PTA_PCLMUL | PTA_AVX | PTA_FMA4
+	| PTA_XOP | PTA_LWP},
       {"generic32", PROCESSOR_GENERIC32, CPU_PENTIUMPRO,
 	0 /* flags are only used for -march switch.  */ },
       {"generic64", PROCESSOR_GENERIC64, CPU_GENERIC64,
-- 
1.6.3.3