arm.md (maddhisi4, *maddhidi4): Use the canonical operand order for plus.
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 17 Dec 2010 16:30:37 +0000 (16:30 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Fri, 17 Dec 2010 16:30:37 +0000 (16:30 +0000)
2010-12-17  Andrew Stubbs  <ams@codesourcery.com>

gcc/
* config/arm/arm.md (maddhisi4, *maddhidi4): Use the canonical
operand order for plus.
Drop redundant % from constraints.

From-SVN: r167991

gcc/ChangeLog
gcc/config/arm/arm.md

index 864cc63..66dfdd5 100644 (file)
@@ -1,3 +1,9 @@
+2010-12-17  Andrew Stubbs  <ams@codesourcery.com>
+
+       * config/arm/arm.md (maddhisi4, *maddhidi4): Use the canonical
+       operand order for plus.
+       Drop redundant % from constraints.
+
 2010-12-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * config/spu/t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and
index 20431d3..dd7555b 100644 (file)
 
 (define_insn "maddhisi4"
   [(set (match_operand:SI 0 "s_register_operand" "=r")
-       (plus:SI (match_operand:SI 3 "s_register_operand" "r")
-                (mult:SI (sign_extend:SI
-                          (match_operand:HI 1 "s_register_operand" "%r"))
+       (plus:SI (mult:SI (sign_extend:SI
+                          (match_operand:HI 1 "s_register_operand" "r"))
                          (sign_extend:SI
-                          (match_operand:HI 2 "s_register_operand" "r")))))]
+                          (match_operand:HI 2 "s_register_operand" "r")))
+                (match_operand:SI 3 "s_register_operand" "r")))]
   "TARGET_DSP_MULTIPLY"
   "smlabb%?\\t%0, %1, %2, %3"
   [(set_attr "insn" "smlaxy")
 (define_insn "*maddhidi4"
   [(set (match_operand:DI 0 "s_register_operand" "=r")
        (plus:DI
-         (match_operand:DI 3 "s_register_operand" "0")
          (mult:DI (sign_extend:DI
-                   (match_operand:HI 1 "s_register_operand" "%r"))
+                   (match_operand:HI 1 "s_register_operand" "r"))
                   (sign_extend:DI
-                   (match_operand:HI 2 "s_register_operand" "r")))))]
+                   (match_operand:HI 2 "s_register_operand" "r")))
+         (match_operand:DI 3 "s_register_operand" "0")))]
   "TARGET_DSP_MULTIPLY"
   "smlalbb%?\\t%Q0, %R0, %1, %2"
   [(set_attr "insn" "smlalxy")