expr.c (convert_move): If unsignedp is less then zero there is no equivalent code.

* expr.c (convert_move): If unsignedp is less then zero there
	is no equivalent code.

From-SVN: r58502
This commit is contained in:
Steve Ellcey 2002-10-24 19:52:23 +00:00 committed by Steve Ellcey
parent 1078265406
commit 37d0b2542c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-10-24 Steve Ellcey <sje@cup.hp.com>
* expr.c (convert_move): If unsignedp is less then zero there
is no equivalent code.
2002-10-24 Zack Weinberg <zack@codesourcery.com>
* tree.def: Delete mention of nonexistent ARRAY_TYPE fields.

View File

@ -552,7 +552,8 @@ convert_move (to, from, unsignedp)
rtx libcall;
/* rtx code for making an equivalent value. */
enum rtx_code equiv_code = (unsignedp ? ZERO_EXTEND : SIGN_EXTEND);
enum rtx_code equiv_code = (unsignedp < 0 ? UNKNOWN
: (unsignedp ? ZERO_EXTEND : SIGN_EXTEND));
to = protect_from_queue (to, 1);
from = protect_from_queue (from, 0);