summaryrefslogtreecommitdiff
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-02 11:00:29 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-02 11:00:29 +0000
commit7cad3ff7743360def8126fc9da6b2b20b81ae3bb (patch)
tree6f310a38e4ad8e9644cd07d0169a24d5631360a9 /gcc/ifcvt.c
parent6369e7cfb703eaf96de9138abe553f216314a143 (diff)
downloadgcc-7cad3ff7743360def8126fc9da6b2b20b81ae3bb.tar.gz
* ifcvt.c (noce_operand_ok): Handle properly unarry operations.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40181 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c3
1 files changed, 2 insertions, 1 deletions
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));
}