From: olegendo Date: Mon, 2 May 2016 08:21:27 +0000 (+0000) Subject: gcc/ X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb813a6bbfbfcde4d07570d2c66bd6dbd45985af;p=thirdparty%2Fgcc.git gcc/ * config/sh/sh.md (*negnegt, *movtt): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235704 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b2a7a2389181..0b4ab48fd9ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-05-02 Oleg Endo + + * config/sh/sh.md (*negnegt, *movtt): Remove. + 2016-05-02 Marek Polacek Tom de Vries diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index af46acc78180..da1dfe98c206 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -8345,16 +8345,6 @@ gcc_unreachable (); }) -;; The *negnegt pattern helps the combine pass to figure out how to fold -;; an explicit double T bit negation. -(define_insn_and_split "*negnegt" - [(set (reg:SI T_REG) - (eq:SI (match_operand 0 "negt_reg_operand" "") (const_int 0)))] - "TARGET_SH1" - "#" - "" - [(const_int 0)]) - ;; Store (negated) T bit as all zeros or ones in a reg. ;; subc Rn,Rn ! Rn = Rn - Rn - T; T = T ;; not Rn,Rn ! Rn = 0 - Rn @@ -8379,15 +8369,6 @@ } [(set_attr "type" "arith")]) -;; The *movtt pattern eliminates redundant T bit to T bit moves / tests. -(define_insn_and_split "*movtt" - [(set (reg:SI T_REG) - (eq:SI (match_operand 0 "t_reg_operand" "") (const_int 1)))] - "TARGET_SH1" - "#" - "" - [(const_int 0)]) - ;; Invert the T bit. ;; On SH2A we can use the nott insn. On anything else this must be done with ;; multiple insns like: