]> 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:08:12 +0000 (21:08 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Fri, 5 Oct 2012 21:08:12 +0000 (21:08 +0000)
* config/pa/pa.md: Adjust unamed HImode add insn pattern.

From-SVN: r192145

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

index 48d5aa6e04dca5ae8e4c535e092779bae8b94154..154e8208b26222fb039a163fd17bbd141ca65792 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  Jan Hubicka  <jh@suse.cz>
            Jakub Jelinek  <jakub@redhat.com>
 
index 219900fc8ad9ad3171df062d579f61fb49c6a5b4..1d0061f4a8cc90ac93a30485e80ecc672dd31793 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" "")