This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch committed FT32] Pattern for CC to register move
- From: James Bowman <james dot bowman at ftdichip dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 13 Nov 2015 01:44:44 +0000
- Subject: [patch committed FT32] Pattern for CC to register move
- Authentication-results: sourceware.org; auth=none
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)]
""