h8300.md (inverted load with HImode dest): Add support for H8300SX.
authorKaushik Phatak <kaushik.phatak@kpitcummins.com>
Fri, 16 Apr 2010 16:39:45 +0000 (16:39 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 16 Apr 2010 16:39:45 +0000 (10:39 -0600)
* config/h8300/h8300.md (inverted load with HImode dest): Add
support for H8300SX.

From-SVN: r158436

gcc/ChangeLog
gcc/config/h8300/h8300.md

index 3060efd..c97a549 100644 (file)
@@ -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.
 
index 5efe2cb..c35f2bb 100644 (file)
                                 (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")])