Copy range from op2 in foperator_equal::op1_range.
Like the integer version, when op1 == op2 is known to be true the ranges are also equal. gcc/ChangeLog: * range-op-float.cc (foperator_equal::op1_range): Set range to range of op2.
This commit is contained in:
parent
200baf7698
commit
ca1715ba54
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,8 @@ foperator_equal::op1_range (frange &r, tree type,
|
|||
switch (get_bool_state (r, lhs, type))
|
||||
{
|
||||
case BRS_TRUE:
|
||||
r.set_varying (type);
|
||||
// If it's true, the result is the same as OP2.
|
||||
r = op2;
|
||||
// The TRUE side of op1 == op2 implies op1 is !NAN.
|
||||
r.set_nan (fp_prop::NO);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue