aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaushik Phatak <kaushik.phatak@kpitcummins.com>2010-04-16 16:39:45 +0000
committerJeff Law <law@gcc.gnu.org>2010-04-16 10:39:45 -0600
commit607440898495d8998d9e0bea8484e57bb5ef1064 (patch)
tree5d9670d4fd9155cf496e06dd41c889307bca7195 /gcc
parent58ad2aefa78e0b63ae14069baabd22b681b83c18 (diff)
downloadgcc-607440898495d8998d9e0bea8484e57bb5ef1064.zip
gcc-607440898495d8998d9e0bea8484e57bb5ef1064.tar.gz
gcc-607440898495d8998d9e0bea8484e57bb5ef1064.tar.bz2
h8300.md (inverted load with HImode dest): Add support for H8300SX.
* config/h8300/h8300.md (inverted load with HImode dest): Add support for H8300SX. From-SVN: r158436
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/h8300/h8300.md2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3060efd..c97a549 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -7,6 +7,9 @@
2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
+ * config/h8300/h8300.md (inverted load with HImode dest): Add
+ support for H8300SX.
+
* config/h8300/predicate.md (bit_operand): Allow immediate values that
satisfy 'U' constraint.
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index 5efe2cb..c35f2bb 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -3145,7 +3145,7 @@
(match_operand:HI 3 "const_int_operand" "n"))
(const_int 1)
(match_operand:HI 2 "const_int_operand" "n")))]
- "TARGET_H8300
+ "(TARGET_H8300 || TARGET_H8300SX)
&& (1 << INTVAL (operands[2])) == INTVAL (operands[3])"
"sub.w %0,%0\;bild %Z2,%Y1\;bst #0,%X0"
[(set_attr "length" "8")])