From patchwork Wed Nov 23 05:25:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hurugalawadi, Naveen" X-Patchwork-Id: 83535 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp2468750qge; Tue, 22 Nov 2016 21:27:30 -0800 (PST) X-Received: by 10.99.43.8 with SMTP id r8mr2335100pgr.83.1479878850601; Tue, 22 Nov 2016 21:27:30 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id b1si3461324pld.129.2016.11.22.21.27.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Nov 2016 21:27:30 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-442319-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-442319-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-442319-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:content-type:mime-version; q=dns; s=default; b=LpFHGtPKtzjHjuRhX8PLfFAMYkehW0RTJS277FbhKHkOzGYbQv vleZUgaEYlJNdiL3wZQZJD1MiYutQAav4nCAGcR53NXD8g7fP6rcu1mtU2Ml5EHM 3ktgNxMDJ9cFDZXxYZ9L7LXCCDnm1E+1kFnyfQeOofYMLezr3AdFUhCtc= 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:content-type:mime-version; s= default; bh=lnwVwWFM2oKFirSe7es1nY8goeo=; b=ytYtS5WGDiAznMAuoLkM u8SDXpTCOdmXpRA6Epkyswk9eorOBJMX0ZWoeYQoxG0yZwod2A0VjZnIpxQgWzjn +47fgAKyE6GW+Dem979MQADXVx8SFkSiGo4LwHG3GF4GpHmj4CSrvM6u9nWgqLdA 3Y7l+vGmGNAeu9t0IgjqOt0= Received: (qmail 32163 invoked by alias); 23 Nov 2016 05:26:45 -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 29728 invoked by uid 89); 23 Nov 2016 05:26:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=HS, hs, H*r:15.01.0734.014, H*RU:15.01.0734.014 X-HELO: NAM02-SN1-obe.outbound.protection.outlook.com Received: from mail-sn1nam02on0047.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) (104.47.36.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Nov 2016 05:26:31 +0000 Received: from CO2PR07MB2694.namprd07.prod.outlook.com (10.166.214.7) by CO2PR07MB2696.namprd07.prod.outlook.com (10.166.214.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8; Wed, 23 Nov 2016 05:25:38 +0000 Received: from CO2PR07MB2694.namprd07.prod.outlook.com ([10.166.214.7]) by CO2PR07MB2694.namprd07.prod.outlook.com ([10.166.214.7]) with mapi id 15.01.0734.014; Wed, 23 Nov 2016 05:25:38 +0000 From: "Hurugalawadi, Naveen" To: "gcc-patches@gcc.gnu.org" CC: Marcus Shawcroft , Richard Earnshaw Subject: [PATCH] [AArch64] Fix PR77635 Date: Wed, 23 Nov 2016 05:25:38 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Naveen.Hurugalawadi@cavium.com; x-microsoft-exchange-diagnostics: 1; CO2PR07MB2696; 7:oomf/SmtSdA8DCq1wyTGoxJ/WS7s4lATm5NBGZyra9//4eq1aFiIrP+SqqJcY8VcrIViTHO8apGKb/8NgjYHf4aaZgineKgZHDkyTAiMrckRt/99wmMtr4+7G4jxQCmgu6sFxYwDrOlmkruwBPcyPrU1Y582QpGlhw+kWl+AXmGZykNEispY7g5G03C+TF1HHHtatNLVCqQpdKUMcLot1Mp5XxC32PN8bsEDdLIv/wfP/7lU6cMPi/FnPjN0W7U+kI0CuNChI6liFAK4D0Zm8K+o4sounWjV76J1+uMAEKglu9oykBmN9aOgsqovipKVGeIfydgP3uCYCGijZC2LlNuiYgATUwAmLhvj5XK5jWc= x-ms-office365-filtering-correlation-id: 4ac3ab2d-21e1-462a-d5b9-08d413612901 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CO2PR07MB2696; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102415395)(6040307)(6045199)(6060326)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(6061324)(6072148); SRVR:CO2PR07MB2696; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB2696; x-forefront-prvs: 013568035E x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(189002)(199003)(377424004)(54356999)(5890100001)(33656002)(50986999)(2900100001)(5660300001)(122556002)(77096005)(4001150100001)(8676002)(99936001)(7696004)(66066001)(3660700001)(6916009)(6506003)(2501003)(97736004)(38730400001)(2351001)(189998001)(3280700002)(9686002)(102836003)(305945005)(74316002)(4326007)(101416001)(6116002)(7736002)(3846002)(110136003)(99286002)(76576001)(92566002)(2906002)(7846002)(81166006)(86362001)(105586002)(8936002)(106116001)(81156014)(106356001)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2696; H:CO2PR07MB2694.namprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Nov 2016 05:25:38.4642 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2696 Hi, Please find attached the patch that fixes PR77635. Some load pair testcase fails when gcc is configured "--with-cpu=thunderx" as -mcpu=generic is missed out in them. The attached patch modifies the testcases to use -mcpu=generic. Please review the patch and let me know if its okay? 2016-11-23 Naveen H.S * gcc.target/aarch64/ldp_stp_1.c : Add -mcpu=generic. * gcc.target/aarch64/store-pair-1.c : Likewise. diff --git a/gcc/testsuite/gcc.target/aarch64/ldp_stp_1.c b/gcc/testsuite/gcc.target/aarch64/ldp_stp_1.c index 9de4e77..89550e0 100644 --- a/gcc/testsuite/gcc.target/aarch64/ldp_stp_1.c +++ b/gcc/testsuite/gcc.target/aarch64/ldp_stp_1.c @@ -1,4 +1,4 @@ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -mcpu=generic" } */ int arr[4][4]; diff --git a/gcc/testsuite/gcc.target/aarch64/store-pair-1.c b/gcc/testsuite/gcc.target/aarch64/store-pair-1.c index a90fc61..b8e762b 100644 --- a/gcc/testsuite/gcc.target/aarch64/store-pair-1.c +++ b/gcc/testsuite/gcc.target/aarch64/store-pair-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -mcpu=generic" } */ int f(int *a, int b) {