Message ID | 20220823101812.878305-1-aldyh@redhat.com |
---|---|
State | New |
Headers | show |
Series | [COMMITTED] Copy range from op2 in foperator_equal::op1_range. | expand |
diff --git a/gcc/range-op-float.cc b/gcc/range-op-float.cc index 4fbd96a7479..ad2fae578d2 100644 --- a/gcc/range-op-float.cc +++ b/gcc/range-op-float.cc @@ -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;