From patchwork Thu May 16 02:08:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kugan Vivekanandarajah X-Patchwork-Id: 1100247 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-500848-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="LyB+Q240"; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="VnLlFeJO"; 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 454FG43CQ3z9sBb for ; Thu, 16 May 2019 12:08:44 +1000 (AEST) 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:in-reply-to:references; q=dns; s= default; b=mVH+luNzblPUnow3yklCvDFP+g8HK1B2GoD05LsrwTD+vhJMCYfKV /1l9FS5awAwIJtSjK8X6i84G1/WEWq2rIq7EuE3WPWkM8Llw/No9vR7PDCG9Y2+L dbSM17rS8ugiavSxC4J7HqUTjtoRmjgomml76pghmU/lBZi5oA7aw8= 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:in-reply-to:references; s= default; bh=GVOdYkA4FSy7O0w8YdONnu/Yg+A=; b=LyB+Q2407S2TPZevEu0t Iq5sx8tub+pTzyFCGSTWtg/3rVtiomrNfoZBDpB83/fhYwxlVbScQgYMYb6IKQiD QKI48U7dtnGeQwwyzgO9CLJl0lYsPoZBgZiKc33ceztQD8HwQSucEWCgPxDJ1OHC DCPUcNw2FDVScivMbhll33c= Received: (qmail 71435 invoked by alias); 16 May 2019 02:08:28 -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 71363 invoked by uid 89); 16 May 2019 02:08:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Received:8ec4, H*RU:209.85.214.196, HX-Spam-Relays-External:209.85.214.196, H*r:sk:mail-pl X-HELO: mail-pl1-f196.google.com Received: from mail-pl1-f196.google.com (HELO mail-pl1-f196.google.com) (209.85.214.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 16 May 2019 02:08:26 +0000 Received: by mail-pl1-f196.google.com with SMTP id g9so776362plm.6 for ; Wed, 15 May 2019 19:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LVd/56hmH7fdjZPFuLtVQ9zND9C7JYw7Z8nWN0tMbgs=; b=VnLlFeJOfYPNNLbcbk0m7fGW+XjYBN81at8wapI3Y1h+bsEqtuJv93v532Phx327PV 3V0/Kt9vNBawzaFuMSsY3kWTFJLZGPGwPF54VfFDnlmwalVCs64vvdMuM8xpbb6OScbP TwahXWhpSCv52yv9s29iNHUbSaCgFDQQPwP5AElrZ72RHP/YZXHg92Na5cW1cUwuf3H+ SSotkvUkVwRuoCZd84OOhMawa6UGdeuGdU47tJMNCrAXB36UK1ZCfp4rKz0yFvdfFdpb G3vYn2gE4Ya1gfNzKl5IHBRj3sbjRLiB//NIGFjXNxzFJPbFxjuj3N35em300aPavVRI NSAQ== Received: from localhost.localdomain (203-219-253-77.static.tpgi.com.au. [203.219.253.77]) by smtp.gmail.com with ESMTPSA id w6sm3827266pge.30.2019.05.15.19.08.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 May 2019 19:08:23 -0700 (PDT) From: kugan.vivekanandarajah@linaro.org To: gcc-patches@gcc.gnu.org Cc: Kugan Vivekanandarajah Subject: [PATCH 1/2] [PR88836][aarch64] Set CC_REGNUM instead of clobber Date: Thu, 16 May 2019 12:08:03 +1000 Message-Id: <1557972484-24599-2-git-send-email-kugan.vivekanandarajah@linaro.org> In-Reply-To: <1557972484-24599-1-git-send-email-kugan.vivekanandarajah@linaro.org> References: <1557972484-24599-1-git-send-email-kugan.vivekanandarajah@linaro.org> X-IsSubscribed: yes From: Kugan Vivekanandarajah For aarch64 sve while_ult pattern, Set CC_REGNUM instead of clobbering. gcc/ChangeLog: 2019-05-16 Kugan Vivekanandarajah PR target/88834 * config/aarch64/aarch64-sve.md (while_ult): Set CC_REGNUM instead of clobbering. Change-Id: I96f16b8f81140fb4a6897d31d427c62bcc1e7997 --- gcc/config/aarch64/aarch64-sve.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/config/aarch64/aarch64-sve.md b/gcc/config/aarch64/aarch64-sve.md index 3f39c4c..a18eb80 100644 --- a/gcc/config/aarch64/aarch64-sve.md +++ b/gcc/config/aarch64/aarch64-sve.md @@ -1331,13 +1331,18 @@ ) ;; Set element I of the result if operand1 + J < operand2 for all J in [0, I]. -;; with the comparison being unsigned. +;; with the comparison being unsigned. Als set CC_REFNUM with the flags. (define_insn "while_ult" [(set (match_operand:PRED_ALL 0 "register_operand" "=Upa") (unspec:PRED_ALL [(match_operand:GPI 1 "aarch64_reg_or_zero" "rZ") (match_operand:GPI 2 "aarch64_reg_or_zero" "rZ")] UNSPEC_WHILE_LO)) - (clobber (reg:CC CC_REGNUM))] + (set (reg:CC CC_REGNUM) + (compare:CC + (unspec:SI [(vec_duplicate:PRED_ALL (const_int 1)) + (match_dup 0)] + UNSPEC_PTEST_PTRUE) + (const_int 0)))] "TARGET_SVE" "whilelo\t%0., %1, %2" )