pdp11.c (pdp11_assemble_integer): Clean up fix for output of byte values.
authorPaul Koning <ni1d@arrl.net>
Tue, 9 Nov 2010 11:59:05 +0000 (06:59 -0500)
committerPaul Koning <pkoning@gcc.gnu.org>
Tue, 9 Nov 2010 11:59:05 +0000 (06:59 -0500)
* config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
output of byte values.

From-SVN: r166483

gcc/ChangeLog
gcc/config/pdp11/pdp11.c

index 110b7fb1797648fa0f42a02ce2293820668fd2a5..95a436f68aaded463b57337fc43c1ba567c661e4 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-09  Paul Koning  <ni1d@arrl.net>
+
+       * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
+       output of byte values.
+
 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/46360
index a9c758b454860bba86a6043610c3bdbcbc2518b7..3c6c9c5c97b764ced7d75a9dad4005764d5209f8 100644 (file)
@@ -1002,9 +1002,7 @@ pdp11_assemble_integer (rtx x, unsigned int size, int aligned_p)
       {
       case 1:
        fprintf (asm_out_file, "\t.byte\t");
-       output_addr_const_pdp11 (asm_out_file, 
-                                GEN_INT (trunc_int_for_mode (INTVAL (x),
-                                                             QImode) & 0xff));
+       output_addr_const_pdp11 (asm_out_file, GEN_INT (INTVAL (x) & 0xff));
 ;
        fprintf (asm_out_file, " /* char */\n");
        return true;
@@ -1742,7 +1740,7 @@ output_addr_const_pdp11 (FILE *file, rtx x)
       break;
 
     case CONST_INT:
-      fprintf (file, "%#o", (int) trunc_int_for_mode (INTVAL (x), HImode) & 0xffff);
+      fprintf (file, "%#o", (int) INTVAL (x) & 0xffff);
       break;
 
     case CONST: