From 85bd3c0150ebbd700a805166833e96a361402251 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 1 Jul 2015 11:35:48 +0000 Subject: [PATCH] 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 --- 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.30.2