mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 16:23:56 +08:00
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:
parent
8882ac3a64
commit
8d90f9c029
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user