From patchwork Tue May 17 09:04:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Cheng X-Patchwork-Id: 622969 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 3r8BHN07XPz9t3l for ; Tue, 17 May 2016 19:05:03 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=dzqf8N3z; 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; q=dns; s=default; b=J+Lfyzz7OJHEnNrF6uD/WBHcV8pLi4A0+vOgEGDL9hVUGopAQT WWMsT9ygC8z/IdHTM48Fjuu1TPMM0lYzxwdSm7XTDWF8FxS8LdTDYbvbjIavWeSC rHnbbyklvEd4XGcD38P9bRtFjxqb9K9bIv8eijXivJfWF3FpebXFF8D9E= 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=CTToFoVyiIiP23OCHOOiTL/soeQ=; b=dzqf8N3z+BpQeRe7O1mu MQ+dmaR3VIqjBgYkARpW27iY5uK4NwS69xun9tbGZLEYKI7+eJ+EdfF32FVxa1EH RFawkm41sRUV859y8C5Z3BhEOxUe8mlIY4LDj2Nm7rMQLUXmrL1O7OdFcmdNj40y sAr//Bt0mVE9AQziHgC+Te4= Received: (qmail 15214 invoked by alias); 17 May 2016 09:04:55 -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 15157 invoked by uid 89); 17 May 2016 09:04:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, SPF_PASS autolearn=ham version=3.3.2 spammy=H*c:HHH, H*MI:outlook 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; Tue, 17 May 2016 09:04:45 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01lp0213.outbound.protection.outlook.com [213.199.154.213]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-31-OScSzadoRAS3DXFmd2UmeA-1; Tue, 17 May 2016 10:04:38 +0100 Received: from DB5PR08MB1144.eurprd08.prod.outlook.com (10.166.174.137) by DB5PR08MB1141.eurprd08.prod.outlook.com (10.166.174.28) with Microsoft SMTP Server (TLS) id 15.1.497.12; Tue, 17 May 2016 09:04:37 +0000 Received: from DB5PR08MB1144.eurprd08.prod.outlook.com ([10.166.174.137]) by DB5PR08MB1144.eurprd08.prod.outlook.com ([10.166.174.137]) with mapi id 15.01.0497.017; Tue, 17 May 2016 09:04:37 +0000 From: Bin Cheng To: "gcc-patches@gcc.gnu.org" CC: nd Subject: [PATCH GCC]Enable vect_cond_mixed for AArch64. Date: Tue, 17 May 2016 09:04:37 +0000 Message-ID: x-ms-office365-filtering-correlation-id: c48d7361-f359-4e75-f1f3-08d37e3245c2 x-microsoft-exchange-diagnostics: 1; DB5PR08MB1141; 5:Id25njtflMlP+rz/Jg2gKbAw5npXwdVZWHQqLBYiqHLWfbVN5atPQbYeeCIYaGEn5rbkQdylBUzCudT5NfwGBF6yX0ydJLlV8NPmch1aGX1m5Oho8bg0jHOwOtQleuArJmYd0xIqa+8aWFADmjsBJg==; 24:p5BmB9I3UACBLa5PshmKaZuQ9wIUKEwgerSALlq9x4A7dGeQRnEj5sOV4WQFAgU7TeI0LJgmCq75yeYaYt7XYkh5hZe9cq1QdG7cCWahkjk=; 7:ZSOk+XAmCvpqMEYPwqACNwa3qlaUwcmC0Z+CqM+7WIOsh5O8/6W6dovXYjYxGqWNmxBGt+1Dc3OSMPhLcVnijduFq32omUFZTL/ZsFx+0xhBDbbRaMtlUFuuC3nJdz2rbZmUPT7tKr7jbz7ROvFQR5swhIhxGs0cfIM9N7QRQOiAWztZBv72VyfdIMjT+5bd; 20:snGNiXHJbbs6EuDymZtZvZN3xq1AFCu81NtDFc7qYorIMrH1JjdSOBCYLpgs4d11A6D4ds+VHb2IlbMfp3SFK++OUoSaLZGRkhAi5fJt+wvft9OqZbiZgCp1y2DvTLndEYlTAgpgidmZJzpKMXFhkXRkti65Pwxnb/hAh+ha344= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR08MB1141; nodisclaimer: True 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)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:DB5PR08MB1141; BCL:0; PCL:0; RULEID:; SRVR:DB5PR08MB1141; x-forefront-prvs: 0945B0CC72 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(377424004)(74316001)(3660700001)(9686002)(87936001)(10400500002)(66066001)(229853001)(2351001)(110136002)(106116001)(54356999)(11100500001)(86362001)(50986999)(189998001)(19580405001)(2501003)(19580395003)(99936001)(5004730100002)(122556002)(77096005)(5008740100001)(76576001)(2906002)(4326007)(8676002)(450100001)(1220700001)(33656002)(102836003)(8936002)(6116002)(3846002)(92566002)(586003)(81166006)(2900100001)(5002640100001)(5003600100002)(3280700002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR08MB1141; H:DB5PR08MB1144.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: 17 May 2016 09:04:37.2459 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR08MB1141 X-MC-Unique: OScSzadoRAS3DXFmd2UmeA-1 X-IsSubscribed: yes Hi, After supporting all vcond/vcondu patterns in AArch64 backend, now we can vectorize VEC_COND_EXPR with different type in comparison operands and value operands on AArch64. GCC uses vect_cond_mixed to control such test cases, for now, there are below cases affected by it: pr61194.c This was failed for all targets, but was just fixed by my previous tree ifcvt patch. slp-cond-2-big-array.c slp-cond-2.c vect-cond-10.c vect-cond-8.c vect-cond-9.c They will start passing after this patch. Test on AArch64. Is it OK? Thanks, bin gcc/testsuite/ChangeLog 2016-05-12 Bin Cheng * lib/target-supports.exp (check_effective_target_vect_cond_mixed): Add aarch64*-*-*. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 04ca176..db6b01e 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5007,6 +5007,7 @@ proc check_effective_target_vect_cond_mixed { } { } else { set et_vect_cond_mixed_saved 0 if { [istarget i?86-*-*] || [istarget x86_64-*-*] + || [istarget aarch64*-*-*] || [istarget powerpc*-*-*] } { set et_vect_cond_mixed_saved 1 }