diff options
author | Claudiu Zissulescu <claziss@synopsys.com> | 2017-06-01 11:42:39 +0200 |
---|---|---|
committer | Claudiu Zissulescu <claziss@gcc.gnu.org> | 2017-06-01 11:42:39 +0200 |
commit | 6f70ebc3d13809a2846a0831e190e5633aa9b688 (patch) | |
tree | d6bff29860bad45f3392889372d2844c835af47a | |
parent | 30c0df2aa37ee207834dfc079c3e14f7870430b9 (diff) | |
download | gcc-6f70ebc3d13809a2846a0831e190e5633aa9b688.zip gcc-6f70ebc3d13809a2846a0831e190e5633aa9b688.tar.gz gcc-6f70ebc3d13809a2846a0831e190e5633aa9b688.tar.bz2 |
[ARC] Update (non)commutative_binary_comparison patterns.
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/arc/arc.md | 16 |
2 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index daf4133..867947a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 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 scaled addresses. diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index 3628efc..b53ec02 100644 --- a/gcc/config/arc/arc.md +++ b/gcc/config/arc/arc.md @@ -948,15 +948,15 @@ [(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 @@ -1050,15 +1050,15 @@ [(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 |