public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch committed FT32] Pattern for CC to register move
@ 2015-11-13  1:44 James Bowman
  0 siblings, 0 replies; only message in thread
From: James Bowman @ 2015-11-13  1:44 UTC (permalink / raw)
  To: gcc-patches

The attached patch adds a pattern for CC to register move.

[gcc]

2015-11-11  James Bowman  <james.bowman@ftdichip.com>

        * config/ft32/ft32.md: New pattern *sne

Index: gcc/config/ft32/ft32.md
===================================================================
--- gcc/config/ft32/ft32.md     (revision 230144)
+++ gcc/config/ft32/ft32.md     (working copy)
@@ -255,6 +255,13 @@
 
 ;; SImode
 
+(define_insn "*sne"
+   [(set (match_operand:SI 0 "register_operand" "=r")
+         (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;
 })
 
+
 (define_expand "epilogue"
   [(return)]
   ""

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-13  1:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13  1:44 [patch committed FT32] Pattern for CC to register move James Bowman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).