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
This commit is contained in:
Geoffrey Keating 2003-05-03 23:12:41 +00:00 committed by Geoffrey Keating
parent 8882ac3a64
commit 8d90f9c029
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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;
}