From patchwork Mon Oct 16 10:16:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamar Christina X-Patchwork-Id: 826221 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-464247-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="EdSbHwN5"; dkim-atps=neutral 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 3yFvP62Wswz9ryQ for ; Mon, 16 Oct 2017 21:16:25 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=BtMSdkRQpLI3JEgtAi5ZECrSDxLd4u52rhtArrK/88UXtHH49w FUkSdec5jCiVg/rHn49Qo2UcUomS+ieXtNdukFvXThvq7Mr3PHspYj0ZCIzlpskW OD4F6B+vsPrbDjABxHgvTaAoq6DXmNNgAHOUmyVPyc9YqAkHG+F2Wgix8= 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:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=886lOz3+CP99Si3z92Gw1elOOSg=; b=EdSbHwN5wj0VIFSwX+bW VaSE5f6FPINL4RXpSQUZ8D0TIUdr7gidCbg7td5Z0v30vdQAwHUtLNTH6LvcNgif km8v6s60pNgKMdawKptWYfyIA6i+F6COt/5Dy2o+b86sqI5fd1XOp/FknUC5RAjB vMU0oa95y8QqpYlt4AAMo1c= Received: (qmail 25222 invoked by alias); 16 Oct 2017 10:16:17 -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 25204 invoked by uid 89); 16 Oct 2017 10:16:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:U*ro X-HELO: EUR03-AM5-obe.outbound.protection.outlook.com Received: from mail-eopbgr30042.outbound.protection.outlook.com (HELO EUR03-AM5-obe.outbound.protection.outlook.com) (40.107.3.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Oct 2017 10:16:15 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Tamar.Christina@arm.com; Received: from arm.com (217.140.96.140) by DB6PR0802MB2309.eurprd08.prod.outlook.com (2603:10a6:4:86::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Mon, 16 Oct 2017 10:16:10 +0000 Date: Mon, 16 Oct 2017 11:16:21 +0100 From: Tamar Christina To: gcc-patches@gcc.gnu.org Cc: nd@arm.com, Ramana.Radhakrishnan@arm.com, Richard.Earnshaw@arm.com, nickc@redhat.com, Kyrylo.Tkachov@arm.com, christophe.lyon@linaro.org, ro@CeBiTec.Uni-Bielefeld.DE Subject: [PATCH][GCC][Testsuite][SPARC][ARM] Fix vect-multitypes-1.c test on SPARC64 and ARMEB. Message-ID: <20171016101618.GA16785@arm.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-ClientProxiedBy: VI1PR0902CA0017.eurprd09.prod.outlook.com (2603:10a6:800:d7::27) To DB6PR0802MB2309.eurprd08.prod.outlook.com (2603:10a6:4:86::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e74e1d44-d269-472b-dced-08d5147eece9 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(49563074)(201703131423075)(201703031133081)(201702281549075); SRVR:DB6PR0802MB2309; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2309; 3:nJMYaF1XRFMgm2pLxv++Qf78xWPmM47mY2viOGAdoNz4TKZvJNkGT1Y7zzGYA/snhMAG4+jNnzoCH0qAcWqYTOgkZ/YOO9U60mrYmKY8UMK1pVYoBiH0xs0k+EM8N8Kv1/YqIqfkqOnRiJcHv2UbJE07G362F9XJi2i6VpoviD1yEI2qzkls36HDO8DrzN5jsGvj1TBMf9SmRoXeQ1y5jMJ3fRDFTYLJnDc8HMi1i5YWzEJRRoTHzyl8htet7WBk; 25:aDU0zy0Tv86hWLR06wDDYn744QWpA5t/G8v6b+X4E5GaHLO9QicqdducOGxEaukfUp4MSvpLDXBC0a5u8K3SfdJB5khXoP+CJWA1dWgrArzpmtxSKjlI82bosqRPnPxAz6H7NpOoQopqrmqJ3Yvms6XKEFhs1/TGtKNN0Wh6VI1/7TkcEKthVxsn7qii+1yfK5aDONBZEARpuBJED20C9yQanVAvdHF96M47WMtWx1dgUM9B/frYaqEUvWipgArafu1XyOm7ENJHLXf/4zBjbmFNNRKfH6RIRMeQnY6BNYhceMEuSxpOD2fhcg97YISDcsLuqFFOVAj+H9qixT9eCA==; 31:GDLqSPS2Np1lk672aRAADYzNTbm/LRFXBhNxSqij8ZhHToVOUvWEpBcvsjv4oc6QSztSPRkuspqArXCmiMvPT+Oo7YviHb0J2ROx6ktBwyPJBk1MnHDXdh5CAcsdkUk89nT/lRADLXVPVzIxiQCDNKIXPg7uQcGuvahRySQwBXGgzVbnWtnXXGWD5kEQHryyJu5uRk5IAlfEW4mBddGOzV0R3Co9T3IwTI9g0imEKq4= X-MS-TrafficTypeDiagnostic: DB6PR0802MB2309: X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2309; 20:Wxge9U5IGD338nfb/K/ynR4kMT+/Bp/t+TOS9zf5cd1tL2rVrK9lKLkEfD7JoL1ZHsrCEst4OSZNrWfixeqr8p+DSDRvykCXixYpMQKfo6Ab9PbWz1bM9Bl3rPK7MOEvnVq4gpHeygQ146zmRrri1btDi44/YCIkVL5N3IKmQVI=; 4:ol28owhqUmxMfDNckM28odT/V10x9gBEQC5vGfBAY+o8bTQgN6yF305vEjOJvEAtxdnOUBRSOGNhZ756/79SGMSa66FvbACuNfhIYMXDPW3tp2wdx25Q1QR95hj+Wwidyh1WVBGeiynxFiWo3kynwCLoeE0MmyP+xyZ50LC0yt1oWhqTnGT9v9hc+sgBKmAq0Xn/EmgkZlazamq88IZW/G/aIx+B74e7urJDFH/1gLv9PPlBjL8sYdq0eafb2KXjAbWUiL04eHzQ3T60Kqur1oDUrYseHF44MkrtEXw9aHs= X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(102415395)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR0802MB2309; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR0802MB2309; X-Forefront-PRVS: 0462918D61 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(53754006)(199003)(377424004)(189002)(55016002)(568964002)(1076002)(36756003)(478600001)(2476003)(83506001)(54356999)(25786009)(2906002)(50986999)(16586007)(2361001)(105586002)(6916009)(305945005)(6116002)(316002)(7736002)(189998001)(4326008)(5890100001)(3846002)(106356001)(33656002)(84326002)(68736007)(4001150100001)(86362001)(58126008)(53936002)(2351001)(97736004)(72206003)(66066001)(5000100001)(8676002)(81166006)(16526018)(6666003)(8936002)(4610100001)(230783001)(101416001)(21086003)(5660300001)(81156014)(18370500001)(2700100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0802MB2309; H:arm.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2309; 23:hYTuOEExZpoXscjBFjnq01aYvpVg9HOKQcY1B3kIid3HdJUsj2kVKKtSMWQheBMDSECLXeLGGi1mPzZ2XieqiO7M5WzrugA4JVsUikGa9bCBHe8VnUrjf7Lv0Yuru1F/5I2vp6ut43tsO7QX2/DPlm+PSV8bY+lcl29Gl7bp4/5fuLPR9apWuAvj5FhwClrgxzwBHwFEpW+225goIrVZDWfjJwCEVN2SJrwtnDNOuRJYXkoDZFOpSKynJW80334jKXjtElYv1FG4jelyy/bZwy+YNryvI+EjdiERi1MbXHVTZfPlNOoyUJoHoMq68K24n5L5lYgcP9LkW7YJHaMFXF01W3+OR375p17wPru4lwDPdGNyQJSt39ICKdQLBDfdVdX/vI6lHTJdPZ1Ihj7OypKFoSYnNFld/t/5fdSSMoRdhGSGCWLJ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2w8/GIONpXkWtAO/JsA0QbGMi6OPGvsobRv9Xw/qfic+xG8akrlztqB5JClDrxfDDIZsdY4Uj/2tdWLg2phiSZfyXkUGI+VnHv7h9rC0KSyu4jmdpb7hiZv5Hns7mCXyQD7ggSEGztIHE6JT/Re0HRUf05ua8CduEWz+KtNI5kmgPfupJ9vIOh0ohPOqzYhWUp1Xfjhe6rttzRXfGmr0YjTySoMtNf5RophVgB7NhtVS5BaKrfcA==; 5:wN+0BSWAJRrc9Dg8GA2ncgJib4FL9k9Qfmmkx8XZpmtNFabFqjWXE3B3vSui+YJoYaA6eUc018GjZwmXYRK+mFrM/ug2M84atCvbQpX3G994Q04mvGF6z32YYgIQ5jHApXqtJeDRSEBFhcKjE96ggQ==; 24:kYyVFZ+S8p3L7ppXSr9MRMWyobolmi+5mY7Ek+Mf7vGFYLhNdS5VfCwfYQ28Le49oKg0/CNF51Kqe2BGVkVi3P2TMiQDr89y1nutgc2amfs=; 7:j0FM6tIKeSM3SbN4pcr6stUWlq+DK3TuuHRO9q17h4w19r2B+QNfK0BtqqIEiTUVev3+UUoWHDVKrWpRsNIlNh6UkWWZTAwT6Y1+/0MiS6FwKHdjpIPfpO9Z2qwGJh1VIxg187NW/yNNXQjs8SWSe1+67CsQxmkGKpq8WhhzDAe9dLEVqTc2f3xYQYlCjmdquq+LrLhwrc+Yztu48eMXrXdE92J/BUermmvoXCHItp0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2017 10:16:10.8789 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2309 X-IsSubscribed: yes Hi All, This patch fixes a regression introduced by r253451. The target needs all three conditions to be true before it can vectorize unaligned accesses. This patch turns the erroneous || into an &&. regtested on aarch64-none-elf, arm-none-linux-gnueabihf, x86_64-pc-linux-gnu, armeb-none-linux-gnueabihf and sparc64-unknown-linux-gnu. OK for trunk? And for the GCC-7 branch? Thanks, Tamar gcc/testsuite/ 2017-10-16 Tamar Christina * gcc.dg/vect/vect-multitypes-1.c: Correct target selector. diff --git a/gcc/testsuite/gcc.dg/vect/vect-multitypes-1.c b/gcc/testsuite/gcc.dg/vect/vect-multitypes-1.c index fd7cacb483d9cfbea6d909ba12e67544fa32a190..49e304180e7b01d41a0922b5358d30ae3af88d24 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-multitypes-1.c +++ b/gcc/testsuite/gcc.dg/vect/vect-multitypes-1.c @@ -83,5 +83,5 @@ int main (void) /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { xfail { vect_no_align && { ! vect_hw_misalign } } } } } */ /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 2 "vect" { xfail {{ vect_no_align && { ! vect_hw_misalign } } || {vect_sizes_32B_16B }}} } } */ -/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 4 "vect" { xfail {{ vect_no_align && { ! vect_hw_misalign } } || {vect_sizes_32B_16B }}} } } */ +/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 4 "vect" { target { vect_no_align && { {! vect_hw_misalign } && vect_sizes_32B_16B } } }} } */