Commit 4e644c93 by Richard Kenner

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

bound.

From-SVN: r13161
parent 9a666dda
...@@ -2669,7 +2669,7 @@ range_binop (code, type, arg0, upper0_p, arg1, upper1_p) ...@@ -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 for neither. Then compute our result treating them as never equal
and comparing bounds to non-bounds as above. */ and comparing bounds to non-bounds as above. */
sgn0 = arg0 != 0 ? 0 : (upper0_p ? 1 : -1); 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) switch (code)
{ {
case EQ_EXPR: case NE_EXPR: case EQ_EXPR: case NE_EXPR:
......
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