(range_binop): Set SNG1 to zero if ARG1 is a not a lower or upper

bound.

From-SVN: r13161
This commit is contained in:
Richard Kenner 1996-11-15 06:37:48 -05:00
parent 9a666dda81
commit 4e644c93e0

View File

@ -2669,7 +2669,7 @@ range_binop (code, type, arg0, upper0_p, arg1, upper1_p)
for neither. Then compute our result treating them as never equal
and comparing bounds to non-bounds as above. */
sgn0 = arg0 != 0 ? 0 : (upper0_p ? 1 : -1);
sgn1 = arg1 != 0 ? 1 : (upper1_p ? 1 : -1);
sgn1 = arg1 != 0 ? 0 : (upper1_p ? 1 : -1);
switch (code)
{
case EQ_EXPR: case NE_EXPR: