msp430.md (zero_extendhipsi2): Use MOVX.A to store a 16-bit value into a 20-bit memor...
authorNick Clifton <nickc@redhat.com>
Wed, 1 Jul 2015 11:35:48 +0000 (11:35 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 1 Jul 2015 11:35:48 +0000 (11:35 +0000)
* config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
a 16-bit value into a 20-bit memory slot.

From-SVN: r225240

gcc/ChangeLog
gcc/config/msp430/msp430.md

index eab90cf..a70facd 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-01  Nick Clifton  <nickc@redhat.com>
+
+       * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
+       a 16-bit value into a 20-bit memory slot.
+
 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
 
        * doc/sourcebuild.texi (AArch64-specific attributes): Document
index ad8fb7a..45e5422 100644 (file)
   [(set (match_operand:PSI                 0 "msp_nonimmediate_operand" "=r,m")
        (zero_extend:PSI (match_operand:HI 1 "msp_nonimmediate_operand" "rm,r")))]
   ""
-  "MOVX\t%1, %0"
+  "@
+  MOVX\t%1, %0
+  MOVX.A\t%1, %0"
 )
 
 (define_insn "truncpsihi2"