* rs6000.md (movqi, movhi): Add CONSTANT_P_RTX.

From-SVN: r21873
This commit is contained in:
David Edelsohn 1998-08-20 10:50:39 +00:00 committed by David Edelsohn
parent 7771032e79
commit 3345af62e8
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Thu Aug 20 13:44:20 1998 David Edelsohn <edelsohn@mhpcc.edu>
* rs6000.md (movqi, movhi): Add CONSTANT_P_RTX.
Thu Aug 20 13:15:11 1998 Dave Brolley <brolley@cygnus.com>
* stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for

View File

@ -5568,7 +5568,9 @@
if (GET_CODE (operands[0]) != REG)
operands[1] = force_reg (HImode, operands[1]);
if (CONSTANT_P (operands[1]) && GET_CODE (operands[1]) != CONST_INT)
if (CONSTANT_P (operands[1])
&& GET_CODE (operands[1]) != CONST_INT
&& GET_CODE (operands[1]) != CONSTANT_P_RTX)
{
operands[1] = force_const_mem (HImode, operands[1]);
if (! memory_address_p (HImode, XEXP (operands[1], 0))
@ -5603,7 +5605,9 @@
if (GET_CODE (operands[0]) != REG)
operands[1] = force_reg (QImode, operands[1]);
if (CONSTANT_P (operands[1]) && GET_CODE (operands[1]) != CONST_INT)
if (CONSTANT_P (operands[1])
&& GET_CODE (operands[1]) != CONST_INT
&& GET_CODE (operands[1]) != CONSTANT_P_RTX)
{
operands[1] = force_const_mem (QImode, operands[1]);
if (! memory_address_p (QImode, XEXP (operands[1], 0))