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: 164315 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp207381ili; Wed, 15 May 2019 19:08:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqybtkAI0CoEZHxn3JnKaeuJAuXEb7opY/808RAX59gAaX25dArSVieMv7ow/ThoBCJg78ec X-Received: by 2002:a17:902:6b:: with SMTP id 98mr47670160pla.271.1557972529093; Wed, 15 May 2019 19:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557972529; cv=none; d=google.com; s=arc-20160816; b=WemcJcmA5iDXzQhatNPFNIMlm/Zu5CbwprPRelgY2Iu4ZJ4H6QrMg0ruwDCnOtG+/e Vmp2P2/KWPL+ZAQJNgwdIyJ53gQDAQB7ZKupaJhK2VZ/rjogaPmsQ+lJzMN4qXZlc8gV P8P8uTkru5UFn55IBZccTka45/N9XSBGlFPfkcH5DAMhNqVw8WzPYGObHPHAoV0wloS4 7GJ4ZIxJOUx2xlGKM8JFp6SgScumbUco2kWyYFZtVv7g2GKtvAl7NwAzyXXrsmMCa8/R V3sFrPoL1bih+tyZLcdM+0409u6BMo7/ymfBV0ErEyMXrIyRaQl8KysiVF4MC29LvBu5 PjWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=LVd/56hmH7fdjZPFuLtVQ9zND9C7JYw7Z8nWN0tMbgs=; b=AUyvgA798aXSbKF8bpHJTff581e0jKbc6luA3By6KuslvuKo0mqNorWQd7Fvo7Ffkf E5CQ/v41lz10MtbLYQoaj/8JWPeUx/1ehyPQRsI6L8uihzVBqaaNdUHcLN7y5BWPaPtF EgaDa87ykljgFYAbGe7mK1Sf6KWgwMNqYrnH5LRBorbFTegWX2tC289fYhciKFp/STKy c6qXQOJPgoO26XY3wqLlMEHZG5e/HTYvS9qT7MbZwkJHvpGQXiFAFAc1pUbcTcyTKWMr AHzWASy+sOvoH0j30YfXLgENF/wUxd5F9rIAuUl6Y9dB/Rgqyrf1f5FRO+gE3EGjpGqW N9oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=IjO2jX7P; dkim=pass header.i=@linaro.org header.s=google header.b=VnLlFeJO; spf=pass (google.com: domain of gcc-patches-return-500848-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-500848-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id u5si3502749pgc.472.2019.05.15.19.08.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 May 2019 19:08:49 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-500848-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 header.s=default header.b=IjO2jX7P; dkim=pass header.i=@linaro.org header.s=google header.b=VnLlFeJO; spf=pass (google.com: domain of gcc-patches-return-500848-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-500848-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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:in-reply-to:references; q=dns; s= default; b=YzOscL7w5u0xdneegbwnjeej87vi0Mw4NmyB034q0dLPNea7nFKcp rwTroBGFJqzQLXwnP8iDIxaAAmAkL1DJN5lDYJv6GFW4WWEJguYeezep4qtmy2jB kcMsRhU94O66KKf/fkbsXN2hzclw/Kaxv8SmqWaVcUuDuvfhqvhFIk= 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=IjO2jX7Pj+QvRoOTi50d tRCaWU5KKS1Zwt+60i57DOisGMHlQ+1JTqCNtuZvSpDYzDYwWM9Tkw9phJRzg6zY 5HgjgPkFxJI/XobKr/s75v5tDvmgk6WLWdStJjWxHIBGJ3QZR7Dsr5Z3c7zXL5GF cGJejKPvGdTHlOVxDoiAWvY= 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== Return-Path: 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(-) -- 2.7.4 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" )