* config/arc/constraints.md (Rcq): Simplify register number test.
authorJoern Rennecke <joern.rennecke@embecosm.com>
Sat, 16 Nov 2013 11:49:10 +0000 (11:49 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Sat, 16 Nov 2013 11:49:10 +0000 (11:49 +0000)
From-SVN: r204900

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

index a9f65da..e53a995 100644 (file)
@@ -1,3 +1,7 @@
+2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
+
+       * config/arc/constraints.md (Rcq): Simplify register number test.
+
 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
 
        * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
index 088013b..7950453 100644 (file)
   (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