From patchwork Tue May 17 08:57:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Greenhalgh X-Patchwork-Id: 67929 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1956915qge; Tue, 17 May 2016 01:58:20 -0700 (PDT) X-Received: by 10.98.19.151 with SMTP id 23mr191465pft.62.1463475500912; Tue, 17 May 2016 01:58:20 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id l190si3224017pfc.228.2016.05.17.01.58.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 May 2016 01:58:20 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-427431-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; spf=pass (google.com: domain of gcc-patches-return-427431-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-427431-patch=linaro.org@gcc.gnu.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:mime-version:content-type; q=dns; s=default; b=qTYl5SB1Lkq6VhJ/dQn+z8L9dEF7Sf/6ul8iKDwFAsx8XG+v8+ GfPhWiIPbHZAlvpR/9uURv/3sV7IKdWk8cdjn+jd9/1IFgpSzETnaJvNClVz6p9/ PX7XJRBHT1+RUI87A9qJF00HF1f0AFgxU/lb5q9AQnKWsS0EBPh5gDe5c= 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; s= default; bh=NItQpkpGCFgPbpj0IS++8j7/pjc=; b=RgaqaN47sIa/pDSjzzMt AMUo6DcFwuMRdX0mTcSDn/58HYK5JAQFts+H/8ZXTSDuj72cM6SlXYPWv8E+TIR0 wnFIweqCJ0lCmV5v7wS8uueaqrU4dLjLNuZU4XlqgEZK9p9PbLwHm1v67D+fjKsg uXwRCL/V6H/x3zWfM3tIC74= Received: (qmail 92883 invoked by alias); 17 May 2016 08:58:05 -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 92860 invoked by uid 89); 17 May 2016 08:58:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Exchange-Antispam-Report-CFA-Test:102415293, HX-Exchange-Antispam-Report-CFA-Test:102615271 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 May 2016 08:57:53 +0000 Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1lrp0010.outbound.protection.outlook.com [213.199.154.10]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-10-HtWd0_fyQveC--3SiDZJrA-1; Tue, 17 May 2016 09:57:47 +0100 Received: from DB6PR0801CA0011.eurprd08.prod.outlook.com (10.165.173.149) by DB5PR08MB0533.eurprd08.prod.outlook.com (10.161.245.22) with Microsoft SMTP Server (TLS) id 15.1.492.11; Tue, 17 May 2016 08:57:46 +0000 Received: from DB3FFO11FD019.protection.gbl (2a01:111:f400:7e04::102) by DB6PR0801CA0011.outlook.office365.com (2603:10a6:4:2::21) with Microsoft SMTP Server (TLS) id 15.1.497.12 via Frontend Transport; Tue, 17 May 2016 08:57:45 +0000 Received: from nebula.arm.com (217.140.96.140) by DB3FFO11FD019.mail.protection.outlook.com (10.47.217.50) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Tue, 17 May 2016 08:57:45 +0000 Received: from e107456-lin.cambridge.arm.com (10.1.2.79) by mail.arm.com (10.1.106.66) with Microsoft SMTP Server id 14.3.279.2; Tue, 17 May 2016 09:57:42 +0100 From: James Greenhalgh To: CC: , Subject: [Patch obvious AArch64] Wrap SHIFT_COUNT_TRUNCATED in brackets Date: Tue, 17 May 2016 09:57:41 +0100 Message-ID: <1463475461-40277-1-git-send-email-james.greenhalgh@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:217.140.96.140; IPV:CAL; SCL:-1; CTRY:GB; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(377424004)(189002)(199003)(50226002)(106466001)(19580395003)(19580405001)(8676002)(229853001)(36756003)(8936002)(50986999)(2351001)(104016004)(87936001)(92566002)(5890100001)(586003)(84326002)(110136002)(568964002)(2906002)(512874002)(5003600100002)(4326007)(2476003)(4610100001)(1220700001)(189998001)(450100001)(11100500001)(5000100001)(77096005)(6806005)(33646002)(86362001)(5008740100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR08MB0533; H:nebula.arm.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD019; 1:njbb6yXgDZvvmv8uWlL8UZcMrGtFKi0ZTnNv0yBTjkN9cVXFRZcVxG9L6TcrVbxMAjsfKHVpZm3201jNoF1yFXmALZTM8BvESw0FjSCY5Xqd1IImmM/49MjmMp2PwoG+crMf3f1f+hCd27JoaZ3htiQDYRHf0IyS48aFL3Ud0B5CpSUaMCwpXZoef/genFnT5NXZRf1n1piQBFqOquvQg9cfa3+543m8xR+9nToCd5i6Qlcknn6zvHTSc15tunYufVfOgaNiO7oOSMVU9PftN7Ztn7KhqRih/GkRlJOlTUYVlvoZD9Dnl68HEQ1pIeusayuty0QqULYyJRqu3UuVlraVcGhfCBpwPQf2a8eOfOxirFe1BMJv0Olw3tkVOrYYd+ZuSYE2BfKcjNLRfQLG1PKCXJGX+j9A895B4S6323QFiFJsZrDl4S2fxOWSG0rsD4dkbAZKTUXSyWe/DFrreuLll+1tIy/zQGEYp6yKB/cYirEP4ZLmqQbbc7dkkn8R X-MS-Office365-Filtering-Correlation-Id: 58d84bf7-7019-41d7-716f-08d37e315044 X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB0533; 2:KanFUcGyRAvcxv+uD2p/gV0+TeBb7hCmDdn0XKQCzGiNLabrkbOVoqMPnAkXewJeloOspYymH72Z8BHbPZb6nTLFd2beiVW+ECe0gnPxsn/tfDqzH1h1l0KM0rvKlxTwjEePjazkuOZNYX/Aj8KI8YIsC/Ir1Qp9AZj/cjIKpq4xPmntY8o2HzucQml3RaWX; 3:bmue4Pt2QVDoMiomB8iwlQCl3AYLff2sZevxgevb7e2Hl7wZs4BmOZuD0wkgmxvolVTBrrhCd6kAU/wYKucXOwBLz7On7CMmAhF45fVZhnSsoImKdf9hI3s2SCfcQzmACO37sihu8h0ODXAp0pY7h5vTshaZnLK5fUVP+dMEtM4ZRhvcvWvo0CWrbXh4tXowJ5fobCZ4KAhcfCDJXFJ6OUNOGd9lXF+uzNREbgmqDDsRS4d2dfviV+c1X84XGBYrLhYpaH+YKd9u1VO6dzN3kw== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:DB5PR08MB0533; X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB0533; 25:vfkrGO/Gec0WNa2HFfTVT4Hc/jzLTT44+FgJ2Oz6Jsmkif7rqvksiMl3HNET7jVeebqScTqKW5dM4KX+eCIKBte43bontT4OQ7dcSoYsrv5WCEl6IZyGkXjv4wce1/HiZUj8zLUcR+MCI2fogFmcFGwVmujZZea3Y4b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MH+Hqe7Vik9pbAuRqCFi+f55gkM+NR3AYy7MLTG/itJN//xDtZo4ZA0ssNVWZsoCdkU+jLn5vgKzd50dckzwzqyBhxhD3IHGEYWrjLluD5y9kgjIX5ozXjCphZMjGhtj8Gqv2TpSf/0NiIjCMb7u8hxi+QFLoWA+gTk/PxtFYQyE0NV1Qe1iWskuOyolGrjPgqANlfEQR0Kadl6wZlFj28RNFO78TpjROfEzDgmI8iVxXnZJgOIPDI/f0w8il+2Axe8UebYrojREcyNCbuVz9OCExn0I00g5gRO1CkMpeWbYtJiZZgrDLtaDo48kBkLxP8+Ks6K7v+y8ZweM4yO8u2QYQDlC+3vnWA3TzXJ4XL9Uu3z3hgeBOgHS51q5aSzfHJIeW9b2OKm8sZJZesW9hYP6IlVC6aXm4Z5cK58zGAQvhC2n2KAS0J7nBeKjR73fCFFYsjIRN2t1xwSVLqLxSh7lu0N4C6UEoq7unyDkp8aj8MGBE17ESsMOFqPX5u X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(102415293)(102615271)(601004)(2401047)(8121501046)(5005006)(13013025)(13020025)(13024025)(13023025)(3002001)(10201501046)(6055026); SRVR:DB5PR08MB0533; BCL:0; PCL:0; RULEID:; SRVR:DB5PR08MB0533; X-Forefront-PRVS: 0945B0CC72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB5PR08MB0533; 23:M9TQqf3Tiz5C7otQHkMWqRBRqSPUmamao4sl1lUab?= =?us-ascii?Q?y/oErHxrBAUktg1/k/Sdx8/vTHaKjnvpGe+o6o5rFlTTNcyzQZcwQg+2r8ho?= =?us-ascii?Q?T5E/K4kOkVDC3VBQJ66Py34+2DSwLyXOy8KY4aZKjtYhE+LoB/PrgPUNBlwo?= =?us-ascii?Q?A8pehQI+S56da1jylAkn+RfZCZp55yaT2Y4Alqzn/0M0SzZIAcZflbM4q92u?= =?us-ascii?Q?vd99mg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533; 5:hhKKR9eYUln7fNxySw/piCF9Ne5r37bS5fZXlnl+YxO1GVik3qCkZlce3o70olUTag7NpSRHz/Z1EzNljjaV6YqUnfCT5jPrr/6rfgq3qCPU3CZdmqzawkkNpxkSYR4T1jMJd6Wj3M7JB93RH9jfXg==; 24:9U7YjN71zd3mauLaZ6rJDffisDQtafsW7AWE3nn1AcZOpXDI0Y4OTHRZcoot9aIwJIYl8lJVzZ5t66VLP2fuhNJ5FSc+9/pZf0CLNAnyJOM=; 7:/Mdksngz2xhhHxBk3ip2+scHMVsoycKxZI0T6e/aYJ9iuloKnhqaWA1JXlLSa+Za59Brt6aY9UIPBeXTxniT2bMFUPNC1/57EKURCGagwHT7rZ0H8tTjl34A0r3AYgtLpa3d4ICQp6NLouG5x3sUbpUbUpoD8ZD/6VCVvLuL+M3XtXm1jfBeYEhsHYTHHCj2; 20:v4GJyh4e6fcRJFOIgGGAzaK9XlgukEVQL0F/hXmYFZDwv7GS7saVKi7gqYR9GdSD0/8RPe3kUwoF4eFb6UorfNwumfaij9t+cVyXxMTSZBeWHQypOMDX4BLLkafNISpKFoPUcwkhIZKhKGxCqrWWxge4XBsWQUirozD4qiFkpjY= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2016 08:57:45.2035 (UTC) X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[217.140.96.140]; Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR08MB0533 X-MC-Unique: HtWd0_fyQveC--3SiDZJrA-1 X-IsSubscribed: yes Hi, This is probably not going to be an issue, but we should wrap the macro definition in () just in case someone does want to use it with a higher precedence operator. Applied as obvious as revision 236312. Thanks, James --- 2016-05-16 James Greenhalgh * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition in brackets. diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index 6eb31e9..fa941b6 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -835,7 +835,7 @@ typedef struct #define CANNOT_CHANGE_MODE_CLASS(FROM, TO, CLASS) \ aarch64_cannot_change_mode_class (FROM, TO, CLASS) -#define SHIFT_COUNT_TRUNCATED !TARGET_SIMD +#define SHIFT_COUNT_TRUNCATED (!TARGET_SIMD) /* Choose appropriate mode for caller saves, so we do the minimum required size of load/store. */