From patchwork Wed Nov 23 05:25:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hurugalawadi, Naveen" X-Patchwork-Id: 698056 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 3tNrS15mtBz9t17 for ; Wed, 23 Nov 2016 16:26:55 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Rwcrg7iR"; 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:content-type:mime-version; q=dns; s=default; b=bn/zcI5kZnJA9cv/YBRUjTw/W/YrkXL9+t3Lrn4TD65Ncwz08Q G3AzOTk/j0CMvtIV+em9qclHBbK7z5x/tZm1Z9tGO3URXup/2d3o75uSKosFY15G 4juJy4ErZ2zqSaCBQ7bertoM07eZijZQrymuRIsp7aQkLGSnZQxMQ7N/g= 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=AINPpkW6gn4mfFosTautx9rNlKg=; b=Rwcrg7iRSS6Tj6lOC+6K MpCaAB+V7t+dfmS5r8U+XMoqwg7LIIhRgdxMXZ1DLXtKAz5CBkk+qBJrqT3iX84V HTCyzdPbNXe8eJ6buxMCyLeCHpgOslJYUb5vttKyu25Gmo98FoGaZT6tHXKNCtkx yvP5WZL+P0khJOzXlKGfU7s= Received: (qmail 32049 invoked by alias); 23 Nov 2016 05:26:44 -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 29755 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-BL2-obe.outbound.protection.outlook.com Received: from mail-bl2nam02on0050.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) (104.47.38.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Nov 2016 05:25:34 +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:30 +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:30 +0000 From: "Hurugalawadi, Naveen" To: "gcc-patches@gcc.gnu.org" CC: Richard Earnshaw , Marcus Shawcroft Subject: [PATCH] [AArch64] Fix PR77634 Date: Wed, 23 Nov 2016 05:25:29 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Naveen.Hurugalawadi@cavium.com; x-microsoft-exchange-diagnostics: 1; CO2PR07MB2696; 7:dXkWk70eZhAQbyckc48jalJMs3LfpZZB7AGf5ELrhfplZMX/i8mCsOrHnBelMS+KzzD9lMtwJ4fUEc3bruOHpLIBk0AZjnDhcFLyWHrSxyJQcSwZvkAQZneZP75/GOWIOR6VUs/3B88qHmu8kTZyY5O7nkgG+bjJiidmVCfn4wyfwoXi1auaEeMGOivtPc6MReQnPuNpbXzkdgv/HXCAvCxc2fIAl1Gf3s8f0idEG150Is9xiItjiiSm6F1zJAsT2sLxP7ZIyyWIlLq1S4QDZycz64uWXJHWa/r3UJ6nCj4qrScHDmnyo2v/KJaYs2jioVGdWqSixnK7QPStcGQT5qY9tMs37R+JXEvhiQp7BAw= x-ms-office365-filtering-correlation-id: 4e697ef7-943f-49f0-8dd5-08d41361241f 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:29.6318 (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 PR77634. Some testcase does not use -fno-vect-cost-model and hence fails when gcc is configured "--with-cpu=thunderx". The attached patch modifies the testcases to use -fno-vect-cost-model. Please review the patch and let me know if its okay? 2016-11-23 Naveen H.S * gcc.target/aarch64/fmaxmin.c : Add -fno-vect-cost-model. * gcc.target/aarch64/fmul_fcvt_2.c : Likewise. * gcc.target/aarch64/vect-abs-compile.c : Likewise. * gcc.target/aarch64/vect-clz.c : Likewise. * gcc.target/aarch64/vect-fcm-eq-d.c : Likewise. * gcc.target/aarch64/vect-fcm-ge-d.c : Likewise. * gcc.target/aarch64/vect-fcm-gt-d.c : Likewise. * gcc.target/aarch64/vect-fmovd-zero.c : Likewise. * gcc.target/aarch64/vect-fmovd.c : Likewise. * gcc.target/aarch64/vect-fmovf-zero.c : Likewise. * gcc.target/aarch64/vect-fmovf.c : Likewise. * gcc.target/aarch64/vect_ctz_1.c : Likewise. diff --git a/gcc/testsuite/gcc.target/aarch64/fmaxmin.c b/gcc/testsuite/gcc.target/aarch64/fmaxmin.c index 7654955..4447e33 100644 --- a/gcc/testsuite/gcc.target/aarch64/fmaxmin.c +++ b/gcc/testsuite/gcc.target/aarch64/fmaxmin.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -ftree-vectorize -fno-inline -save-temps" } */ +/* { dg-options "-O2 -ftree-vectorize -fno-inline -fno-vect-cost-model -save-temps" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.target/aarch64/fmul_fcvt_2.c b/gcc/testsuite/gcc.target/aarch64/fmul_fcvt_2.c index d8a9335..4ac3ab7 100644 --- a/gcc/testsuite/gcc.target/aarch64/fmul_fcvt_2.c +++ b/gcc/testsuite/gcc.target/aarch64/fmul_fcvt_2.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-save-temps -O2 -ftree-vectorize -fno-inline" } */ +/* { dg-options "-save-temps -O2 -ftree-vectorize -fno-inline -fno-vect-cost-model" } */ #define N 1024 diff --git a/gcc/testsuite/gcc.target/aarch64/vect-abs-compile.c b/gcc/testsuite/gcc.target/aarch64/vect-abs-compile.c index 27146b8..19082d7 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-abs-compile.c +++ b/gcc/testsuite/gcc.target/aarch64/vect-abs-compile.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ -/* { dg-options "-O3" } */ +/* { dg-options "-O3 -fno-vect-cost-model" } */ #define N 16 diff --git a/gcc/testsuite/gcc.target/aarch64/vect-clz.c b/gcc/testsuite/gcc.target/aarch64/vect-clz.c index 4c7321f..044fa9e 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-clz.c +++ b/gcc/testsuite/gcc.target/aarch64/vect-clz.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O3 -save-temps -fno-inline" } */ +/* { dg-options "-O3 -save-temps -fno-inline -fno-vect-cost-model" } */ extern void abort (); diff --git a/gcc/testsuite/gcc.target/aarch64/vect-fcm-eq-d.c b/gcc/testsuite/gcc.target/aarch64/vect-fcm-eq-d.c index d91cca2..4640f57 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-fcm-eq-d.c +++ b/gcc/testsuite/gcc.target/aarch64/vect-fcm-eq-d.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all -fno-unroll-loops --save-temps -fno-inline" } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all -fno-unroll-loops --save-temps -fno-inline -fno-vect-cost-model" } */ #define FTYPE double #define ITYPE long diff --git a/gcc/testsuite/gcc.target/aarch64/vect-fcm-ge-d.c b/gcc/testsuite/gcc.target/aarch64/vect-fcm-ge-d.c index c3c4fb3..f5b6329 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-fcm-ge-d.c +++ b/gcc/testsuite/gcc.target/aarch64/vect-fcm-ge-d.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all -fno-unroll-loops --save-temps -fno-inline" } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all -fno-unroll-loops --save-temps -fno-inline -fno-vect-cost-model" } */ #define FTYPE double #define ITYPE long diff --git a/gcc/testsuite/gcc.target/aarch64/vect-fcm-gt-d.c b/gcc/testsuite/gcc.target/aarch64/vect-fcm-gt-d.c index 9ef5f1c..28d7ab6 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-fcm-gt-d.c +++ b/gcc/testsuite/gcc.target/aarch64/vect-fcm-gt-d.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all -fno-unroll-loops --save-temps -fno-inline" } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all -fno-unroll-loops --save-temps -fno-inline -fno-vect-cost-model" } */ #define FTYPE double #define ITYPE long diff --git a/gcc/testsuite/gcc.target/aarch64/vect-fmovd-zero.c b/gcc/testsuite/gcc.target/aarch64/vect-fmovd-zero.c index f8ef3ac..bfd327c 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-fmovd-zero.c +++ b/gcc/testsuite/gcc.target/aarch64/vect-fmovd-zero.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all" } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all -fno-vect-cost-model" } */ #define N 32 diff --git a/gcc/testsuite/gcc.target/aarch64/vect-fmovd.c b/gcc/testsuite/gcc.target/aarch64/vect-fmovd.c index 3c6e987..53aa66c 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-fmovd.c +++ b/gcc/testsuite/gcc.target/aarch64/vect-fmovd.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all" } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all -fno-vect-cost-model" } */ #define N 32 diff --git a/gcc/testsuite/gcc.target/aarch64/vect-fmovf-zero.c b/gcc/testsuite/gcc.target/aarch64/vect-fmovf-zero.c index e75115f..8eb8a65 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-fmovf-zero.c +++ b/gcc/testsuite/gcc.target/aarch64/vect-fmovf-zero.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all" } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all -fno-vect-cost-model" } */ #define N 32 diff --git a/gcc/testsuite/gcc.target/aarch64/vect-fmovf.c b/gcc/testsuite/gcc.target/aarch64/vect-fmovf.c index ef979bc..90d911c 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-fmovf.c +++ b/gcc/testsuite/gcc.target/aarch64/vect-fmovf.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all" } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all -fno-vect-cost-model" } */ #define N 32 diff --git a/gcc/testsuite/gcc.target/aarch64/vect_ctz_1.c b/gcc/testsuite/gcc.target/aarch64/vect_ctz_1.c index 39cf00e..c4eaf5b 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect_ctz_1.c +++ b/gcc/testsuite/gcc.target/aarch64/vect_ctz_1.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O3 -save-temps -fno-inline" } */ +/* { dg-options "-O3 -save-temps -fno-inline -fno-vect-cost-model" } */ extern void abort ();