Commit 19c1be39 by John David Anglin Committed by John David Anglin

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
parent e0899a64
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> 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
PR target/42321 PR target/42321
......
...@@ -3097,7 +3097,7 @@ ...@@ -3097,7 +3097,7 @@
size = INTVAL (operands[2]); size = INTVAL (operands[2]);
align = INTVAL (operands[3]); 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/alignment is large, then use the library routines. */
if (size / align > 16) if (size / align > 16)
...@@ -3285,7 +3285,7 @@ ...@@ -3285,7 +3285,7 @@
size = INTVAL (operands[2]); size = INTVAL (operands[2]);
align = INTVAL (operands[3]); 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/alignment is large, then use the library routines. */
if (size / align > 16) if (size / align > 16)
......
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