(shorten_compare): When simplify compare against

zero, check for restype_ptr unsigned instead of primop0 unsigned.

From-SVN: r6806
This commit is contained in:
Jim Wilson 1994-03-17 15:39:11 -08:00
parent 6b972c4f89
commit 597681f6d1
1 changed files with 1 additions and 1 deletions

View File

@ -1651,7 +1651,7 @@ shorten_compare (op0_ptr, op1_ptr, restype_ptr, rescode_ptr)
primop1 = op1;
if (!real1 && !real2 && integer_zerop (primop1)
&& TREE_UNSIGNED (TREE_TYPE (primop0)))
&& TREE_UNSIGNED (*restype_ptr))
{
tree value = 0;
switch (code)