From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15958 invoked by alias); 13 Nov 2015 01:44:52 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 15949 invoked by uid 89); 13 Nov 2015 01:44:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: smtp-out6.electric.net Received: from smtp-out6.electric.net (HELO smtp-out6.electric.net) (192.162.217.186) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 13 Nov 2015 01:44:50 +0000 Received: from 1Zx3Py-0008Ia-VT by out6c.electric.net with emc1-ok (Exim 4.85) (envelope-from ) id 1Zx3Pz-0008Ip-TS for gcc-patches@gcc.gnu.org; Thu, 12 Nov 2015 17:44:47 -0800 Received: by emcmailer; Thu, 12 Nov 2015 17:44:47 -0800 Received: from [188.39.184.227] (helo=GLAEXCH3.ftdi.local) by out6c.electric.net with esmtps (TLSv1:AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1Zx3Py-0008Ia-VT for gcc-patches@gcc.gnu.org; Thu, 12 Nov 2015 17:44:46 -0800 Received: from GLAEXCH1.ftdi.local ([172.16.0.121]) by glaexch3 ([172.16.0.161]) with mapi id 14.01.0438.000; Fri, 13 Nov 2015 01:44:45 +0000 From: James Bowman To: "gcc-patches@gcc.gnu.org" Subject: [patch committed FT32] Pattern for CC to register move Date: Fri, 13 Nov 2015 01:44:00 -0000 Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Outbound-IP: 188.39.184.227 X-Env-From: james.bowman@ftdichip.com X-PolicySMART: 3094660 X-SW-Source: 2015-11/txt/msg01618.txt.bz2 The attached patch adds a pattern for CC to register move. [gcc] 2015-11-11 James Bowman * config/ft32/ft32.md: New pattern *sne Index: gcc/config/ft32/ft32.md =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- gcc/config/ft32/ft32.md (revision 230144) +++ gcc/config/ft32/ft32.md (working copy) @@ -255,6 +255,13 @@ =20 ;; SImode =20 +(define_insn "*sne" + [(set (match_operand:SI 0 "register_operand" "=3Dr") + (reg:SI CC_REG))] + "" + "bextu.l %0,$cc,32|0\;xor.l %0,%0,-1" +) + ;; Push a register onto the stack (define_insn "movsi_push" [(set (mem:SI (pre_dec:SI (reg:SI SP_REG))) @@ -884,6 +891,7 @@ DONE; }) =20 + (define_expand "epilogue" [(return)] ""