aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2012-10-05 21:03:29 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2012-10-05 21:03:29 +0000
commit74bf7dbb1e3104041e302d9b917dcec62aab5730 (patch)
tree44f1bb22b088035aaa3bc09477dd523e0fac8c89 /gcc/config
parent6d9e1220503b37a3000dec2aaed3377160777617 (diff)
downloadgcc-74bf7dbb1e3104041e302d9b917dcec62aab5730.zip
gcc-74bf7dbb1e3104041e302d9b917dcec62aab5730.tar.gz
gcc-74bf7dbb1e3104041e302d9b917dcec62aab5730.tar.bz2
pa.md: Adjust unamed HImode add insn pattern.
* config/pa/pa.md: Adjust unamed HImode add insn pattern. From-SVN: r192143
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/pa/pa.md16
1 files changed, 9 insertions, 7 deletions
diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md
index 8a7e685..4595357 100644
--- a/gcc/config/pa/pa.md
+++ b/gcc/config/pa/pa.md
@@ -2881,15 +2881,17 @@
[(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" "")