From 68af29ce9d38679a82821886eb776aa5b423e117 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 2 Mar 2001 12:00:29 +0100 Subject: [PATCH] * ifcvt.c (noce_operand_ok): Handle properly unarry operations. From-SVN: r40181 --- gcc/ChangeLog | 4 ++++ gcc/ifcvt.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 73859316b99..d1eb0ac54aa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 2 11:59:43 CET 2001 Jan Hubicka + + * ifcvt.c (noce_operand_ok): Handle properly unarry operations. + 2001-03-02 Neil Booth * cppfiles.c (struct include_file): Update. diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index fd934b5643e..06c25fd321c 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -1417,8 +1417,9 @@ noce_operand_ok (op) default: switch (GET_RTX_CLASS (GET_CODE (op))) { - case 'c': case '1': + return ! may_trap_p (XEXP (op, 0)); + case 'c': case '2': return ! may_trap_p (XEXP (op, 0)) && ! may_trap_p (XEXP (op, 1)); } -- 2.30.2