Commit 5ee95df6 by Franz Sirl Committed by Richard Henderson

Franz Sirl <Franz.Sirl-kernel@lauterbach.com>

        * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
        alignment.

From-SVN: r29962
parent 8342b467
Wed Oct 13 23:23:45 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* rs6000.c (expand_block_move): Use INTVAL, not XINT to access
alignment.
Wed Oct 13 21:47:18 1999 Richard Henderson <rth@cygnus.com> Wed Oct 13 21:47:18 1999 Richard Henderson <rth@cygnus.com>
* ggc-page.c (MAP_FAILED): Provide default. * ggc-page.c (MAP_FAILED): Provide default.
......
...@@ -2063,7 +2063,7 @@ expand_block_move (operands) ...@@ -2063,7 +2063,7 @@ expand_block_move (operands)
rtx bytes_rtx = operands[2]; rtx bytes_rtx = operands[2];
rtx align_rtx = operands[3]; rtx align_rtx = operands[3];
int constp = (GET_CODE (bytes_rtx) == CONST_INT); int constp = (GET_CODE (bytes_rtx) == CONST_INT);
int align = XINT (align_rtx, 0); int align;
int bytes; int bytes;
int offset; int offset;
int num_reg; int num_reg;
...@@ -2080,6 +2080,11 @@ expand_block_move (operands) ...@@ -2080,6 +2080,11 @@ expand_block_move (operands)
if (! constp) if (! constp)
return 0; return 0;
/* If this is not a fixed size alignment, abort */
if (GET_CODE (align_rtx) != CONST_INT)
abort ();
align = INTVAL (align_rtx);
/* Anything to move? */ /* Anything to move? */
bytes = INTVAL (bytes_rtx); bytes = INTVAL (bytes_rtx);
if (bytes <= 0) if (bytes <= 0)
......
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