msp430.c (msp430_asm_integer): Support addition and subtraction too.

* config/msp430/msp430.c (msp430_asm_integer): Support addition
and subtraction too.

From-SVN: r224182
This commit is contained in:
DJ Delorie 2015-06-06 01:15:16 -04:00 committed by DJ Delorie
parent 9feddb7149
commit 2bc43588af
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-06-06 DJ Delorie <dj@redhat.com>
* config/msp430/msp430.c (msp430_asm_integer): Support addition
and subtraction too.
2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/66410

View File

@ -976,7 +976,8 @@ msp430_asm_integer (rtx x, unsigned int size, int aligned_p)
switch (size)
{
case 4:
if (c == SYMBOL_REF || c == CONST || c == LABEL_REF || c == CONST_INT)
if (c == SYMBOL_REF || c == CONST || c == LABEL_REF || c == CONST_INT
|| c == PLUS || c == MINUS)
{
fprintf (asm_out_file, "\t.long\t");
output_addr_const (asm_out_file, x);