Commit 2bc43588 by DJ Delorie Committed by DJ Delorie

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
parent 9feddb71
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> 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/66410 PR target/66410
......
...@@ -976,7 +976,8 @@ msp430_asm_integer (rtx x, unsigned int size, int aligned_p) ...@@ -976,7 +976,8 @@ msp430_asm_integer (rtx x, unsigned int size, int aligned_p)
switch (size) switch (size)
{ {
case 4: 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"); fprintf (asm_out_file, "\t.long\t");
output_addr_const (asm_out_file, x); output_addr_const (asm_out_file, x);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment