expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2 wide volatile memory by parts.

* expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
	wide volatile memory by parts.

	* gcc.c-torture/compile/20020304-2.c: New test.

From-SVN: r50316
This commit is contained in:
Jakub Jelinek 2002-03-05 12:22:35 +01:00 committed by Jakub Jelinek
parent c00c5bffda
commit 49217ec458
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-03-05 Jakub Jelinek <jakub@redhat.com>
* expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
wide volatile memory by parts.
2002-03-05 Jakub Jelinek <jakub@redhat.com>
* ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def

View File

@ -4278,7 +4278,8 @@ emit_store_flag (target, code, op0, op1, mode, unsignedp, normalizep)
the comparison into one involving a single word. */
if (GET_MODE_BITSIZE (mode) == BITS_PER_WORD * 2
&& GET_MODE_CLASS (mode) == MODE_INT
&& op1 == const0_rtx)
&& op1 == const0_rtx
&& (GET_CODE (op0) != MEM || ! MEM_VOLATILE_P (op0)))
{
if (code == EQ || code == NE)
{

View File

@ -2,6 +2,8 @@
* gcc.dg/20020304-1.c: New test.
* gcc.c-torture/compile/20020304-2.c: New test.
2002-03-04 Zack Weinberg <zack@codesourcery.com>
* gcc.c-torture/compile/20020304-1.c: New test case