]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pa.md: Adjust unamed HImode add insn pattern.
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Fri, 5 Oct 2012 21:03:29 +0000 (21:03 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Fri, 5 Oct 2012 21:03:29 +0000 (21:03 +0000)
* config/pa/pa.md: Adjust unamed HImode add insn pattern.

From-SVN: r192143

gcc/ChangeLog
gcc/config/pa/pa.md

index 91fbd0d2484a5d39e3d83044fa7e8b57204cf466..2261ec45d50378d3de1926ffb7a775d37c2928f5 100644 (file)
@@ -1,3 +1,7 @@
+2012-10-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * config/pa/pa.md: Adjust unamed HImode add insn pattern.
+
 2012-10-05  Oleg Endo  <olegendo@gcc.gnu.org>
 
        * config/sh/sh.c (builtin_description): Add is_enabled member.
index 8a7e6858c119657867676117253450dd3641c41c..4595357e9cbd3297e3624847e4e306cf5f28dd83 100644 (file)
   [(set_attr "type" "store")
    (set_attr "length" "4")])
 
-(define_insn ""
-  [(set (match_operand:HI 0 "register_operand" "=r")
-       (plus:HI (match_operand:HI 1 "register_operand" "r")
-                (match_operand 2 "const_int_operand" "J")))]
+(define_insn "addhi3"
+  [(set (match_operand:HI 0 "register_operand" "=r,r")
+       (plus:HI (match_operand:HI 1 "register_operand" "%r,r")
+                (match_operand:HI 2 "arith14_operand" "r,J")))]
   ""
-  "ldo %2(%1),%0"
-  [(set_attr "type" "binary")
+  "@
+   {addl|add,l} %1,%2,%0
+   ldo %2(%1),%0"
+  [(set_attr "type" "binary,binary")
    (set_attr "pa_combine_type" "addmove")
-   (set_attr "length" "4")])
+   (set_attr "length" "4,4")])
 
 (define_expand "movqi"
   [(set (match_operand:QI 0 "general_operand" "")