msp430.c (msp430_asm_integer): Support addition and subtraction too.
authorDJ Delorie <dj@redhat.com>
Sat, 6 Jun 2015 05:15:16 +0000 (01:15 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Sat, 6 Jun 2015 05:15:16 +0000 (01:15 -0400)
* config/msp430/msp430.c (msp430_asm_integer): Support addition
and subtraction too.

From-SVN: r224182

gcc/ChangeLog
gcc/config/msp430/msp430.c

index c388eb5db7c7cee422885b17462526d715a687f9..faaf7b22837e4cee41c2722ce340ad589be59f91 100644 (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
index 1c18047807d2e1ed2c36d986bb3b37f183bfe81e..0fc7d50d81038fd10a2e33922b1e2d821a8f4708 100644 (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);