aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-07-01 11:35:48 +0000
committerNick Clifton <nickc@gcc.gnu.org>2015-07-01 11:35:48 +0000
commit85bd3c0150ebbd700a805166833e96a361402251 (patch)
tree76858667d1ffa2c3af94fa13b696819d35d8cd5f
parenta31dc4e516d2816c6be4c5f7329718223fced1e3 (diff)
downloadgcc-85bd3c0150ebbd700a805166833e96a361402251.zip
gcc-85bd3c0150ebbd700a805166833e96a361402251.tar.gz
gcc-85bd3c0150ebbd700a805166833e96a361402251.tar.bz2
msp430.md (zero_extendhipsi2): Use MOVX.A to store a 16-bit value into a 20-bit memory slot.
* config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store a 16-bit value into a 20-bit memory slot. From-SVN: r225240
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/msp430/msp430.md4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eab90cf..a70facd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/msp430/msp430.md b/gcc/config/msp430/msp430.md
index ad8fb7a..45e5422 100644
--- a/gcc/config/msp430/msp430.md
+++ b/gcc/config/msp430/msp430.md
@@ -572,7 +572,9 @@
[(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"