From patchwork Fri Apr 22 15:35:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco Dijkstra X-Patchwork-Id: 613734 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qs08B2BJcz9t3q for ; Sat, 23 Apr 2016 01:36:09 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=JnM1JJSn; dkim-atps=neutral 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:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=iLjysGgyFoL6z1jk ad0lpiSU4ZfijcT5ckua2nyYvAo9y0ymqt6qLqlNHbeFJM7Yq3nX75j/9P8nbiWF MaAbz3WlrpP/iVtqCbRsOxW+ZjPVFcjCbIBkSEYgWg4ups1Z1bkGiucDy+g68ZOi jglcxtdaDqPhKwdWRmb/S2EVDNM= 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:mime-version:content-type :content-transfer-encoding; s=default; bh=gJ6Zuxe9HSsefLYqK3jTjF jfqRY=; b=JnM1JJSn8nCzohg437aslnKLRPhIcmZCzEYqfMqIsTiupsXqr+yu/l 6+vAqH72XsqFT9EMuLKzxYesLpz1N7xJ7TCav+5VEb3gcgtvd/uKsl5v/0k0SEfe KUiBB3i4OQUZELJ7hNAPo8/NHG+POQvwq8cXDJfQCcCjxPHLzvZvg= Received: (qmail 74645 invoked by alias); 22 Apr 2016 15:35:59 -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 74636 invoked by uid 89); 22 Apr 2016 15:35:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 spammy=rm, H*MI:outlook, H*MI:prod X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 22 Apr 2016 15:35:48 +0000 Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1lrp0011.outbound.protection.outlook.com [213.199.154.11]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-37-fzx0bZXDR6-Refw8Hs9o-A-1; Fri, 22 Apr 2016 16:35:43 +0100 Received: from AM3PR08MB0088.eurprd08.prod.outlook.com (2a01:111:e400:8847::18) by AM3PR08MB0086.eurprd08.prod.outlook.com (2a01:111:e400:8847::16) with Microsoft SMTP Server (TLS) id 15.1.466.19; Fri, 22 Apr 2016 15:35:42 +0000 Received: from AM3PR08MB0088.eurprd08.prod.outlook.com ([fe80::d0af:2d98:cf1b:e43e]) by AM3PR08MB0088.eurprd08.prod.outlook.com ([fe80::d0af:2d98:cf1b:e43e%17]) with mapi id 15.01.0466.023; Fri, 22 Apr 2016 15:35:42 +0000 From: Wilco Dijkstra To: "gcc-patches@gcc.gnu.org" CC: nd Subject: [PATCH][AArch64] Adjust SIMD integer preference Date: Fri, 22 Apr 2016 15:35:42 +0000 Message-ID: x-ms-office365-filtering-correlation-id: 5ab3d2c6-9b2e-4025-5823-08d36ac3c407 x-microsoft-exchange-diagnostics: 1; AM3PR08MB0086; 5:Nu0EEG/yLG0yg8CRwgSgnzjo7HYIyd3HRQJ5aTGveiywA8xzVOSS7nPrvYwKiWtEbWzKEBt/BB5FX49uyqSWBxHL/PDExBA49dcAamZXcmgSO/EIKM7nF2xDbk1h4ReRbvdukYXwWN1TgTtbepH+mmr6/+BIWQEI1LBJNjGrs0xyKZJSJbarKhjyR/xRjYHa; 24:U+FDMluftBiaZi83GMftx+nlmB179v3Wl3jOZA6uGiqYWvY9dnFQM0gLnckbq/6o3AcudUa9hQI/AqDe7VkgpRqZsLHIp87tYeIrT0YKUAc=; 7:drC82v00ZtHn7Wd9sH1f2sj816KioaM+mHAeuFpNKadUXCpszw7wTrI8amEBHIci0Qeq7c8/Dy6P5ZKBNcqLtBvlFjdSpczGHvtJstK0sywVXg84NUig/hJ+3HrywwnbLHo2GuS8YHzhK8To0EA+QYV6BQw6kpsSKLMivYjnRztMXn62j7lcEZmkJzdmVmNaGXVCH6/zExy/k6jvoDkVm09otSGrwErBe0Wi3pbKi1I=; 20:9CEHiDfRLIlHABHKu2e4KclfGIgmbZCpxaVvQt+EzvjvQEnA9WSW8yX+Xa6VJEcjL8H0A14Kq1YRJvZESj2sqy1QVeOiMjOenoW6Z7DXxDF+qc5kDOPGG1/zzrgL1b8/oLKZYYtSrd8JBITuH4FZz5Xckk9sIcD6Dj6Y+UYYo4s= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR08MB0086; nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(9101521026)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:AM3PR08MB0086; BCL:0; PCL:0; RULEID:; SRVR:AM3PR08MB0086; x-forefront-prvs: 0920602B08 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(377424004)(4326007)(9686002)(50986999)(74316001)(54356999)(87936001)(6116002)(102836003)(189998001)(33656002)(110136002)(3280700002)(3846002)(586003)(2900100001)(5002640100001)(5250100002)(81166005)(5004730100002)(2501003)(92566002)(2906002)(450100001)(19580395003)(86362001)(66066001)(11100500001)(106116001)(1096002)(5008740100001)(5003600100002)(1220700001)(2351001)(229853001)(3660700001)(76576001)(19580405001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM3PR08MB0086; H:AM3PR08MB0088.eurprd08.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2016 15:35:42.7792 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR08MB0086 X-MC-Unique: fzx0bZXDR6-Refw8Hs9o-A-1 SIMD operations like combine prefer to have their operands in FP registers, so increase the cost of integer registers slightly to avoid unnecessary int<->FP moves. This improves register allocation of scalar SIMD operations. OK for trunk? ChangeLog: 2016-04-22 Wilco Dijkstra * gcc/config/aarch64/aarch64-simd.md (aarch64_combinez): Add ? to integer variant. (aarch64_combinez_be): Likewise. diff --git a/gcc/config/aarch64/aarch64-simd.md b/gcc/config/aarch64/aarch64-simd.md index e1f5682165cd22ca7d31643b8f4e7f631d99c2d8..d3830838867eec2098b71eb46b7343d0155acf7e 100644 --- a/gcc/config/aarch64/aarch64-simd.md +++ b/gcc/config/aarch64/aarch64-simd.md @@ -2645,7 +2645,7 @@ (define_insn "*aarch64_combinez" [(set (match_operand: 0 "register_operand" "=w,w,w") (vec_concat: - (match_operand:VD_BHSI 1 "general_operand" "w,r,m") + (match_operand:VD_BHSI 1 "general_operand" "w,?r,m") (match_operand:VD_BHSI 2 "aarch64_simd_imm_zero" "Dz,Dz,Dz")))] "TARGET_SIMD && !BYTES_BIG_ENDIAN" "@ @@ -2661,7 +2661,7 @@ [(set (match_operand: 0 "register_operand" "=w,w,w") (vec_concat: (match_operand:VD_BHSI 2 "aarch64_simd_imm_zero" "Dz,Dz,Dz") - (match_operand:VD_BHSI 1 "general_operand" "w,r,m")))] + (match_operand:VD_BHSI 1 "general_operand" "w,?r,m")))] "TARGET_SIMD && BYTES_BIG_ENDIAN" "@ mov\\t%0.8b, %1.8b