From patchwork Tue Nov 8 03:28:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Neill X-Patchwork-Id: 124256 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id BF4231007D5 for ; Tue, 8 Nov 2011 14:29:00 +1100 (EST) Received: (qmail 3076 invoked by alias); 8 Nov 2011 03:28:58 -0000 Received: (qmail 3067 invoked by uid 22791); 8 Nov 2011 03:28:57 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_BD X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Nov 2011 03:28:43 +0000 Received: by ywf9 with SMTP id 9so82009ywf.20 for ; Mon, 07 Nov 2011 19:28:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.153.3 with SMTP id e3mr38469845yhk.68.1320722922338; Mon, 07 Nov 2011 19:28:42 -0800 (PST) Received: by 10.150.137.5 with HTTP; Mon, 7 Nov 2011 19:28:42 -0800 (PST) Date: Mon, 7 Nov 2011 21:28:42 -0600 Message-ID: Subject: [PATCH] enable fma4 for bdver2 From: Quentin Neill To: gcc-patches@gcc.gnu.org Cc: Harsha Jagasia X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, This patch turns on FMA4 for the AMD BDVER2 processor. Okay for trunk if no regressions? Index: ChangeLog =================================================================== --- ChangeLog (revision 181147) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2011-11-07 Quentin Neill + + Add FMA4 to bdver2. + * config/i386/i386.c (ix86_option_override_internal): Add FMA4 to bdver2. + 2011-11-07 Richard Henderson * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set, Index: config/i386/i386.c =================================================================== --- config/i386/i386.c (revision 181147) +++ config/i386/i386.c (working copy) @@ -3044,7 +3044,7 @@ ix86_option_override_internal (bool main {"bdver2", PROCESSOR_BDVER2, CPU_BDVER2, 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_SSE4_2 | PTA_AES | PTA_PCLMUL | PTA_AVX | PTA_FMA4 | PTA_XOP | PTA_LWP | PTA_BMI | PTA_TBM | PTA_F16C | PTA_FMA}, {"btver1", PROCESSOR_BTVER1, CPU_GENERIC64,