From patchwork Wed Feb 12 07:00:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 1236655 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-519393-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=axis.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=DZv8+Kmq; 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 48HVss3zWBz9s3x for ; Wed, 12 Feb 2020 18:01:05 +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 :message-id:from:to:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=JKFvmqV3dsS317mS BbIxy1eWBBinw3ZX+Jf9Jg5ItW7kVhxOguQoC6I2FfT+n01flWTpGKr5+QhgkaZ7 xvJh4QSvLe9Kp8sKHl3CQfCaDyT/19rBaJqI4XSNha8xbJ/e6cANlgX0hGyif1wZ 4Rc8pCK906KwNVFbaHYcwZu4Zx4= 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 :message-id:from:to:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=K28Z15bIXrGnZFzHYnT1Bz WIGO8=; b=DZv8+KmqjKZLYcMWnL8nEKeKyPD1Bn8hZsyud7FxUqmyFNb4pO8NRf K2p3EpHVJGITOG4rqZs3YxxB6nI7rJhJ82uSaXlcms2akgIEP9bSZk8OaVIQIpau IM+66tV+jNCBXmAtDjGAffjiEKri5fxI0+SoZaFZIbqWucg0+YYaM= Received: (qmail 40491 invoked by alias); 12 Feb 2020 07:00:56 -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 40319 invoked by uid 89); 12 Feb 2020 07:00:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: smtp1.axis.com Received: from smtp1.axis.com (HELO smtp1.axis.com) (195.60.68.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Feb 2020 07:00:38 +0000 IronPort-SDR: WKkG58aPbmNtQYOuC3xp59RWaVVuRt525rLmQ1YwMQPIAsUsjGQNwOwIxFFe1hsw4Ty6VJmFvq nOTmgOGUIDz7qBLS+h2Exn2CiIIql67ui0KjJl/rXqm/TUc7L3+AkZ/va4YR9rAo5jpJwwixK2 l35OVmNcWzwe8jJ1Uw+AVzZ4Y6oGCtKn5RU9BeWKtR4Fd1RGmc8E1OfkoB0P9v7ZLbv/vAoVIM 2DXZVDZhlhemR9/lqIi1zXtII1igYq82RVeo9aD1cmDXgKSYZRD9dXo1uSsyRWxqjpxKvTRmyE A64= Date: Wed, 12 Feb 2020 08:00:31 +0100 Message-ID: <202002120700.01C70VKV026862@ignucius.se.axis.com> From: Hans-Peter Nilsson To: Subject: [cris-decc0 9/14] cris: Enable extend operations to SImode to set condition codes. MIME-Version: 1.0 X-IsSubscribed: yes * config/cris/cris.md ("extendsi2"): Rename from "extendsi2". ("zero_extendsi2"): Similar, from "zero_extendsi2". Enable dropping of compares with zero of the result, through the three CCmode substitutions and the cmpelim pass. --- gcc/config/cris/cris.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/cris/cris.md b/gcc/config/cris/cris.md index 5f77bc9e0..2f3f328f5 100644 --- a/gcc/config/cris/cris.md +++ b/gcc/config/cris/cris.md @@ -856,7 +856,7 @@ (define_insn "extenddi2" "" "movs %1,%M0\;smi %H0\;neg.d %H0,%H0") -(define_insn "extendsi2" +(define_insn "extendsi2" [(set (match_operand:SI 0 "register_operand" "=r,r,r") (sign_extend:SI (match_operand:BW 1 "general_operand" "r,Q>,g"))) (clobber (reg:CC CRIS_CC0_REGNUM))] @@ -879,7 +879,7 @@ (define_insn "extendqihi2" ;; Zero-extend. The DImode ones are synthesized by gcc, so we don't ;; specify them here. -(define_insn "zero_extendsi2" +(define_insn "zero_extendsi2" [(set (match_operand:SI 0 "register_operand" "=r,r,r") (zero_extend:SI (match_operand:BW 1 "nonimmediate_operand" "r,Q>,m")))