OSDN Git Service

* expr.c (convert_move): If unsignedp is less then zero there
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Oct 2002 19:52:23 +0000 (19:52 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Oct 2002 19:52:23 +0000 (19:52 +0000)
is no equivalent code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58502 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/expr.c

index 9f01b18..9b2cb93 100644 (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.
index a676b38..5a14d7e 100644 (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);