This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Committed: arc/constraints.md: simplify Rcq definition



2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>

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

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]