re PR target/31794 (Problem while compiling gcc for m32c-elf)
authorDJ Delorie <dj@redhat.com>
Mon, 7 May 2007 22:14:05 +0000 (18:14 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Mon, 7 May 2007 22:14:05 +0000 (18:14 -0400)
PR 31794
* config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
ashrpsi3, lshrpsi3): Update shift count constraint.

From-SVN: r124521

gcc/ChangeLog
gcc/config/m32c/shift.md

index df4aa2f550861d266ef6fe8c0513bbc92c28aff4..9d6c0db9e02cf8bb48b663e596ca7eb026e15969 100644 (file)
@@ -1,3 +1,9 @@
+2007-05-07  DJ Delorie  <dj@redhat.com>
+
+       PR 31794
+       * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
+       ashrpsi3, lshrpsi3): Update shift count constraint.
+
 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
            Nathan Froyd  <froydnj@codesourcery.com
 
index 6679f38ffe715a079fecde857c6a5ee7fd310626..6b8a483588339f4f2fd2800da58aa68d798569a2 100644 (file)
 (define_insn "ashlpsi3_i"
   [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd*Rmm,R02RaaSd*Rmm")
        (ashift:PSI (match_operand:PSI 1 "mra_operand" "0,0")
-                   (match_operand:QI 2 "mrai_operand" "In4,RqiSd")))
+                   (match_operand:QI 2 "shiftcount_operand" "In4,RqiSd")))
    (clobber (match_scratch:HI 3 "=X,R1w"))]
   "TARGET_A24"
   "@
 (define_insn "ashrpsi3_i"
   [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd*Rmm,R02RaaSd*Rmm")
        (ashiftrt:PSI (match_operand:PSI 1 "mra_operand" "0,0")
-                     (neg:QI (match_operand:QI 2 "mrai_operand" "In4,RqiSd"))))
+                     (neg:QI (match_operand:QI 2 "shiftcount_operand" "In4,RqiSd"))))
    (clobber (match_scratch:HI 3 "=X,R1w"))]
   "TARGET_A24"
   "@
 (define_expand "ashlpsi3"
   [(parallel [(set (match_operand:PSI 0 "mra_operand" "")
                   (ashift:PSI (match_operand:PSI 1 "mra_operand" "")
-                              (match_operand:QI 2 "mrai_operand" "")))
+                              (match_operand:QI 2 "shiftcount_operand" "")))
              (clobber (match_scratch:HI 3 ""))])]
   "TARGET_A24"
   "if (m32c_prepare_shift (operands, 1, ASHIFT))
 (define_expand "ashrpsi3"
   [(parallel [(set (match_operand:PSI 0 "mra_operand" "")
                   (ashiftrt:PSI (match_operand:PSI 1 "mra_operand" "")
-                                (neg:QI (match_operand:QI 2 "mrai_operand" ""))))
+                                (neg:QI (match_operand:QI 2 "shiftcount_operand" ""))))
              (clobber (match_scratch:HI 3 ""))])]
   "TARGET_A24"
   "if (m32c_prepare_shift (operands, -1, ASHIFTRT))
 (define_expand "lshrpsi3"
   [(parallel [(set (match_operand:PSI 0 "mra_operand" "")
                   (lshiftrt:PSI (match_operand:PSI 1 "mra_operand" "")
-                                (neg:QI (match_operand:QI 2 "mrai_operand" ""))))
+                                (neg:QI (match_operand:QI 2 "shiftcount_operand" ""))))
              (clobber (match_scratch:HI 3 ""))])]
   "TARGET_A24"
   "if (m32c_prepare_shift (operands, -1, LSHIFTRT))