From d7297b92c1e556bff99be72a361eed65491249b8 Mon Sep 17 00:00:00 2001 From: nickc Date: Wed, 1 Jul 2015 11:35:48 +0000 Subject: [PATCH] * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store a 16-bit value into a 20-bit memory slot. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225240 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/msp430/msp430.md | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eab90cff91f..a70facd154b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-07-01 Nick Clifton + + * 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 * doc/sourcebuild.texi (AArch64-specific attributes): Document diff --git a/gcc/config/msp430/msp430.md b/gcc/config/msp430/msp430.md index ad8fb7af319..45e5422856f 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" -- 2.11.4.GIT