Commit 597681f6 by Jim Wilson

(shorten_compare): When simplify compare against

zero, check for restype_ptr unsigned instead of primop0 unsigned.

From-SVN: r6806
parent 6b972c4f
......@@ -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)
......
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