Commit 8d90f9c0 by Geoffrey Keating Committed by Geoffrey Keating

simplify-rtx.c (simplify_relational_operation): Add case for ! (fabs(x) < 0.0).

	* simplify-rtx.c (simplify_relational_operation): Add case for
	! (fabs(x) < 0.0).

From-SVN: r66440
parent 8882ac3a
2003-05-03 Geoffrey Keating <geoffk@apple.com>
* simplify-rtx.c (simplify_relational_operation): Add case for
! (fabs(x) < 0.0).
2003-05-03 Bruce Korb <bkorb@gnu.org>
* gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
......
......@@ -2381,10 +2381,21 @@ simplify_relational_operation (code, mode, op0, op1)
tem = GET_CODE (trueop0) == FLOAT_EXTEND ? XEXP (trueop0, 0)
: trueop0;
if (GET_CODE (tem) == ABS)
return const1_rtx;
return const_true_rtx;
}
break;
case UNGE:
/* Optimize ! (abs(x) < 0.0). */
if (trueop1 == CONST0_RTX (mode))
{
tem = GET_CODE (trueop0) == FLOAT_EXTEND ? XEXP (trueop0, 0)
: trueop0;
if (GET_CODE (tem) == ABS)
return const_true_rtx;
}
break;
default:
break;
}
......
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