[ARC] Differentiate between ARCv1 and ARCv2 'h'-reg class for CMP insns.
authorClaudiu Zissulescu <claziss@synopsys.com>
Tue, 25 Apr 2017 12:03:19 +0000 (14:03 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Tue, 25 Apr 2017 12:03:19 +0000 (14:03 +0200)
commit0e03cebd10fd68c4e9feaf30ab732d698f73e587
tree50fa8ace1747838327c3821f058078c6665b94e9
parentbac865a217a819eb5cf90af6962904241168f167
[ARC] Differentiate between ARCv1 and ARCv2 'h'-reg class for CMP insns.

gcc/
2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
constraint.
(cmpsi_cc_c_insn): Likewise.
(cbranchsi4_scratch): Compute proper instruction length using
compact_hreg_operand.
* config/arc/predicates.md (compact_hreg_operand): New predicate.

From-SVN: r247194
gcc/ChangeLog
gcc/config/arc/arc.md
gcc/config/arc/predicates.md