[ARC] Update (non)commutative_binary_comparison patterns.
authorClaudiu Zissulescu <claziss@synopsys.com>
Thu, 1 Jun 2017 09:42:39 +0000 (11:42 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Thu, 1 Jun 2017 09:42:39 +0000 (11:42 +0200)
gcc/
2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.md (commutative_binary_comparison): Remove 'I'
constraint. It is not valid for the pattern.
(noncommutative_binary_comparison): Likewise.

From-SVN: r248780

gcc/ChangeLog
gcc/config/arc/arc.md

index daf4133b792a9c698d7ad64bee0affdd59f6c2bb..867947a88dd7d5ae328e257d2dd7d58f775e4923 100644 (file)
@@ -1,3 +1,9 @@
+2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
+       constraint. It is not valid for the pattern.
+       (noncommutative_binary_comparison): Likewise.
+
 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
 
        * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
index 3628efcc098a2d1db1258a5cfd9c90bd7c9f4aab..b53ec02f6625df90b23bd45ef5b79f0a8c50d5c5 100644 (file)
   [(set (match_operand:CC_ZN 0 "cc_set_register" "")
        (match_operator:CC_ZN 5 "zn_compare_operator"
          [(match_operator:SI 4 "commutative_operator"
-            [(match_operand:SI 1 "register_operand" "%c,c,c")
-             (match_operand:SI 2 "nonmemory_operand" "cL,I,?Cal")])
+            [(match_operand:SI 1 "register_operand" "%c,c")
+             (match_operand:SI 2 "nonmemory_operand" "cL,Cal")])
           (const_int 0)]))
-   (clobber (match_scratch:SI 3 "=X,1,X"))]
+   (clobber (match_scratch:SI 3 "=X,X"))]
   ""
   "%O4.f 0,%1,%2"
   [(set_attr "type" "compare")
    (set_attr "cond" "set_zn")
-   (set_attr "length" "4,4,8")])
+   (set_attr "length" "4,8")])
 
 ; for flag setting 'add' instructions like if (a+b) { ...}
 ; the combiner needs this pattern
   [(set (match_operand:CC_ZN 0 "cc_set_register" "")
        (match_operator:CC_ZN 5 "zn_compare_operator"
          [(match_operator:SI 4 "noncommutative_operator"
-            [(match_operand:SI 1 "register_operand" "c,c,c")
-             (match_operand:SI 2 "nonmemory_operand" "cL,I,?Cal")])
+            [(match_operand:SI 1 "register_operand" "c,c")
+             (match_operand:SI 2 "nonmemory_operand" "cL,Cal")])
           (const_int 0)]))
-   (clobber (match_scratch:SI 3 "=X,1,X"))]
+   (clobber (match_scratch:SI 3 "=X,X"))]
   "TARGET_BARREL_SHIFTER || GET_CODE (operands[4]) == MINUS"
   "%O4.f 0,%1,%2"
   [(set_attr "type" "compare")
    (set_attr "cond" "set_zn")
-   (set_attr "length" "4,4,8")])
+   (set_attr "length" "4,8")])
 
 (define_expand "bic_f_zn"
   [(parallel