]> gcc.gnu.org Git - gcc.git/commitdiff
[NDS32] The add and sub pattens should only accept si mode.
authorChung-Ju Wu <jasonwucj@gmail.com>
Thu, 5 Apr 2018 02:23:19 +0000 (02:23 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Thu, 5 Apr 2018 02:23:19 +0000 (02:23 +0000)
gcc/
* config/nds32/nds32.md (add<mode>3, sub<mode>3): Rename to ...
(addsi3, subsi3): ... this.

From-SVN: r259116

gcc/ChangeLog
gcc/config/nds32/nds32.md

index fe76138ad0b06170b935b90588ccda021b608fd3..da7eed2401960981e423d6af81feb0703ae585f7 100644 (file)
@@ -1,3 +1,8 @@
+2018-04-05  Chung-Ju Wu  <jasonwucj@gmail.com>
+
+       * config/nds32/nds32.md (add<mode>3, sub<mode>3): Rename to ...
+       (addsi3, subsi3): ... this.
+
 2018-04-05  Chung-Ju Wu  <jasonwucj@gmail.com>
 
        * config/nds32/nds32.md (*sub_srli, *and_slli): Fine-tune predicator.
index 0189bdf7b6ce32cf3ea092eb632878a0bf147093..95345ff7af8434fe2d9dba44e4fb22c4b3289154 100644 (file)
 
 ;; Arithmetic instructions.
 
-(define_insn "add<mode>3"
-  [(set (match_operand:QIHISI 0 "register_operand"                   "=   d,    l,    d,    l,  d, l,    k,    l,    r, r")
-       (plus:QIHISI (match_operand:QIHISI 1 "register_operand"      "%   0,    l,    0,    l,  0, l,    0,    k,    r, r")
-                    (match_operand:QIHISI 2 "nds32_rimm15s_operand" " In05, In03, Iu05, Iu03,  r, l, Is10, Iu06, Is15, r")))]
+(define_insn "addsi3"
+  [(set (match_operand:SI 0 "register_operand"               "=   d,   l,   d,   l, d, l,   k,   l,    r, r")
+       (plus:SI (match_operand:SI 1 "register_operand"      "%   0,   l,   0,   l, 0, l,   0,   k,    r, r")
+                (match_operand:SI 2 "nds32_rimm15s_operand" " In05,In03,Iu05,Iu03, r, l,Is10,IU06, Is15, r")))]
   ""
 {
   switch (which_alternative)
    (set_attr "length"  "  2,  2,  2,  2,  2,  2,  2,  2,  4,  4")
    (set_attr "feature" " v1, v1, v1, v1, v1, v1, v2, v1, v1, v1")])
 
-(define_insn "sub<mode>3"
-  [(set (match_operand:QIHISI 0 "register_operand"                    "=d, l,    r, r")
-       (minus:QIHISI (match_operand:QIHISI 1 "nds32_rimm15s_operand" " 0, l, Is15, r")
-                     (match_operand:QIHISI 2 "register_operand"      " r, l,    r, r")))]
+(define_insn "subsi3"
+  [(set (match_operand:SI 0 "register_operand"                "=d, l,    r, r")
+       (minus:SI (match_operand:SI 1 "nds32_rimm15s_operand" " 0, l, Is15, r")
+                 (match_operand:SI 2 "register_operand"      " r, l,    r, r")))]
   ""
   "@
    sub45\t%0, %2
This page took 0.074895 seconds and 5 git commands to generate.