re PR middle-end/42718 (FAIL: gcc.c-torture/compile/pr42559.c at -O1 and above)

PR middle-end/42718
	* pa.md (movmemsi): Set align to one if zero.
	(movmemdi): Likewise.

From-SVN: r157614
This commit is contained in:
John David Anglin 2010-03-22 01:00:30 +00:00 committed by John David Anglin
parent e0899a64f9
commit 19c1be3917
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/42718
* pa.md (movmemsi): Set align to one if zero.
(movmemdi): Likewise.
2010-03-21 Richard Earnshaw <rearnsha@arm.com>
PR target/42321

View File

@ -3097,7 +3097,7 @@
size = INTVAL (operands[2]);
align = INTVAL (operands[3]);
align = align > 4 ? 4 : align;
align = align > 4 ? 4 : (align ? align : 1);
/* If size/alignment is large, then use the library routines. */
if (size / align > 16)
@ -3285,7 +3285,7 @@
size = INTVAL (operands[2]);
align = INTVAL (operands[3]);
align = align > 8 ? 8 : align;
align = align > 8 ? 8 : (align ? align : 1);
/* If size/alignment is large, then use the library routines. */
if (size / align > 16)