From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130475 invoked by alias); 6 Jun 2016 16:10:32 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 130448 invoked by uid 89); 6 Jun 2016 16:10:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=2977, Hx-languages-length:1250 X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 06 Jun 2016 16:10:13 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 005B0F; Mon, 6 Jun 2016 09:10:45 -0700 (PDT) Received: from [10.2.206.43] (e100706-lin.cambridge.arm.com [10.2.206.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 896303F253; Mon, 6 Jun 2016 09:10:10 -0700 (PDT) Message-ID: <5755A061.1000909@foss.arm.com> Date: Mon, 06 Jun 2016 16:10:00 -0000 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches CC: Marcus Shawcroft , Richard Earnshaw , James Greenhalgh Subject: [PATCH][AArch64] Model CSEL instruction in Cortex-A57 scheduling model Content-Type: multipart/mixed; boundary="------------020400000607030701050608" X-SW-Source: 2016-06/txt/msg00400.txt.bz2 This is a multi-part message in MIME format. --------------020400000607030701050608 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-length: 602 Hi all, This small patch adds handling of the CSEL-type instructions to the Cortex-A57 scheduling model. It is treated the same as simple ALU instructions. With this patch I didn't see any overall differences in SPEC2006. Bootstrapped and tested on arm-none-linux-gnueabihf and aarch64-linux-gnu. Ok for trunk? The patch is very simple and the csel value isn't used in any arm instructions so I think just an aarch64 approval for this should be enough. Thanks, Kyrill 2016-06-06 Kyrylo Tkachov * config/arm/cortex-a57.md (cortex_a57_alu): Handle csel type. --------------020400000607030701050608 Content-Type: text/x-patch; name="aarch64-csel-ca57.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="aarch64-csel-ca57.patch" Content-length: 618 diff --git a/gcc/config/arm/cortex-a57.md b/gcc/config/arm/cortex-a57.md index 37912db464315a0d70835b81991e8e07a4d9db89..c8cf80f4ba7ed99b46c920c2d0ad3299050ec473 100644 --- a/gcc/config/arm/cortex-a57.md +++ b/gcc/config/arm/cortex-a57.md @@ -297,7 +297,7 @@ (define_insn_reservation "cortex_a57_alu" 2 (eq_attr "type" "alu_imm,alus_imm,logic_imm,logics_imm,\ alu_sreg,alus_sreg,logic_reg,logics_reg,\ adc_imm,adcs_imm,adc_reg,adcs_reg,\ - adr,bfm,clz,rbit,rev,alu_dsp_reg,\ + adr,bfm,clz,csel,rbit,rev,alu_dsp_reg,\ rotate_imm,shift_imm,shift_reg,\ mov_imm,mov_reg,\ mvn_imm,mvn_reg,\ --------------020400000607030701050608--