From patchwork Wed Jul 25 18:35:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Machado X-Patchwork-Id: 142908 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1139981ljj; Wed, 25 Jul 2018 11:35:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd4QexZzYhWySzAO5333JGA74gQ2Rjl0uaTKEsad7Jg8SAlmxyBvmOnDrooMe5PLYArFYWO X-Received: by 2002:a63:2c8e:: with SMTP id s136-v6mr21020706pgs.390.1532543747945; Wed, 25 Jul 2018 11:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532543747; cv=none; d=google.com; s=arc-20160816; b=OYKA4O+aqYEZKRQFrxDN2Gw66zl2BABUxHquiMikbjqSleCROgPH18TMofK8alZJhZ dqTiTAFIj40XIkDBdhBRS03fi3IFA17W1PHXAMvac3FhU9eaROlO4i7SbFGm7dyZmzOb VA893NijsmeTDYPx+Dt8Wj4prNX8+zHgwIpTxiwA1xj9WpjIlsOYsgdd5lDlMDglqHDc y2kYH5mKkiB+tCAXL/rI9wreAdmUck/EDSovAg5CGPnsPac7X6KvkIFnUpXcubYZKqL8 cuUDTkfuQwIqKMV9mcn/o1s6DANLysvIq6h0mV/saFFfg8p5T17xOUhpxUyucoH2CFR2 fR+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature:delivered-to :sender:list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=aR75f2MTzuX8jDUF3vxFlB+X4YxSg//VgbJVs3h6z6k=; b=Xe8fWFNmGyngPS9S0Y5E07y5VPrARnq+jiM1VO+F1XHnpPmt6mJVoeQD+WjQ3GMtEV peRIwUkL0p0ZE3givpwOTPcYGT3rRTBVSwonMSkE51huMYWcSaQ5Dnf65He/Tb9CtoHR MozWnJrve0k+UGGEHM6oqOapI4Jiwtep+WStS6Dfs0BHi4hdJIrzYZqHqTUeDqvPcZGD eoGfDnRX6xkBlsUfX50qSbnewMLD1OfKrae2aHkvrk3PMogrjzD8B6Of71E3hq8booZT fZu0JqGXosEibhJKIrC7M/Qan9H7RiLrr1j5IVjoBhPTrewt4WRxCXmlvT8qbHk7nNY8 ZMpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=eP3AxgFw; dkim=pass header.i=@linaro.org header.s=google header.b=APzuniLl; spf=pass (google.com: domain of gcc-patches-return-482371-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-482371-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id q30-v6si13880247pgk.253.2018.07.25.11.35.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 11:35:47 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-482371-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=eP3AxgFw; dkim=pass header.i=@linaro.org header.s=google header.b=APzuniLl; spf=pass (google.com: domain of gcc-patches-return-482371-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-482371-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; q=dns; s=default; b=sVCtV5Cq/qX+ g/zBtsxTPr60u+J1hoOxfsx1LEsroJGh/Ryrt9gRkoaJHRswFNECFrUkjH9fWoSh 1pnrEYXwzA+2jEdtmDsmJ749y6HJBCPc6z+yh2PF7GupHuDlyW0tnoXe22KbbP2s vjyx4R5KZdrUQMdH/Gd1X8PMtz2ZBWI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; s=default; bh=JIwKAGDeGvR0Yuy+l4 uK0sFFES0=; b=eP3AxgFwjgfufzjjIFPZH2BlIdcBiDEfjqhfHABA76fuDfLbB8 CESsljBX0V5CV9PwqLpXPENn4EHc+33/KyUWfA70RjACfhQJyUt3ElCYN92Wizba wUiW/nbT1L1mLUz1EJqg5CvRj+791mcdiTwAyNc/J1dSIxypGIbQrA+Jc= Received: (qmail 12025 invoked by alias); 25 Jul 2018 18:35:36 -0000 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 Received: (qmail 12000 invoked by uid 89); 25 Jul 2018 18:35:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:b66-v6s X-HELO: mail-qk0-f194.google.com Received: from mail-qk0-f194.google.com (HELO mail-qk0-f194.google.com) (209.85.220.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Jul 2018 18:35:33 +0000 Received: by mail-qk0-f194.google.com with SMTP id b66-v6so5557381qkj.1 for ; Wed, 25 Jul 2018 11:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=aR75f2MTzuX8jDUF3vxFlB+X4YxSg//VgbJVs3h6z6k=; b=APzuniLlfNG6NIEqrCx1thNsPghtpz3qGwhGiMF49qevyVVQPCdrgj0tg1OyJQnhBK 1OzCpXxzUTkuHA4bJeu24Rg8B7b1sLz3jyWW3l/C9YL3s9wBRSndx1WdYyRAlH1IhhbY 3E2Wm5qy5SFbOgO2v/23PX4oQRAvweCYWgPmY= Return-Path: Received: from localhost.localdomain ([187.35.231.109]) by smtp.gmail.com with ESMTPSA id e206-v6sm8689287qkb.4.2018.07.25.11.35.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jul 2018 11:35:31 -0700 (PDT) From: Luis Machado To: gcc-patches@gcc.gnu.org Cc: james.greenhalgh@arm.com, Richard.Earnshaw@arm.com Subject: [PATCH] [AArch64, Falkor] Adjust Falkor's sign extend reg+reg address cost Date: Wed, 25 Jul 2018 15:35:23 -0300 Message-Id: <1532543723-26647-1-git-send-email-luis.machado@linaro.org> X-IsSubscribed: yes Adjust Falkor's register_sextend cost from 4 to 3. This fixes a testsuite failure in gcc.target/aarch64/extend.c:ldr_sxtw where GCC was generating a sbfiz instruction rather than a load with sign extension. No performance changes. gcc/ChangeLog: 2018-07-25 Luis Machado * config/aarch64/aarch64.c (qdf24xx_addrcost_table) : Set to 3. --- gcc/config/aarch64/aarch64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index fa01475..ea39272 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -329,7 +329,7 @@ static const struct cpu_addrcost_table qdf24xx_addrcost_table = 1, /* pre_modify */ 1, /* post_modify */ 3, /* register_offset */ - 4, /* register_sextend */ + 3, /* register_sextend */ 3, /* register_zextend */ 2, /* imm_offset */ };