diff mbox

Committed: arc/constraints.md: simplify Rcq definition

Message ID 20131116070105.tm7cgdz6sk4sgo48-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke Nov. 16, 2013, 12:01 p.m. UTC
2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>

	* config/arc/constraints.md (Rcq): Simplify register number test.
diff mbox

Patch

Index: config/arc/constraints.md
===================================================================
--- config/arc/constraints.md	(revision 204899)
+++ config/arc/constraints.md	(revision 204900)
@@ -338,7 +338,7 @@  (define_constraint "Rcq"
   (and (match_code "REG")
        (match_test "TARGET_Rcq
 		    && !arc_ccfsm_cond_exec_p ()
-		    && ((((REGNO (op) & 7) ^ 4) - 4) & 15) == REGNO (op)")))
+		    && IN_RANGE (REGNO (op) ^ 4, 4, 11)")))
 
 ; If we need a reload, we generally want to steer reload to use three-address
 ; alternatives in preference of two-address alternatives, unless the