OSDN Git Service

* ifcvt.c (noce_operand_ok): Handle properly unarry operations.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Mar 2001 11:00:29 +0000 (11:00 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Mar 2001 11:00:29 +0000 (11:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40181 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ifcvt.c

index 7385931..d1eb0ac 100644 (file)
@@ -1,3 +1,7 @@
+Fri Mar  2 11:59:43 CET 2001  Jan Hubicka  <jh@suse.cz>
+
+       * ifcvt.c (noce_operand_ok): Handle properly unarry operations.
+
 2001-03-02  Neil Booth  <neil@daikokuya.demon.co.uk>
 
         * cppfiles.c (struct include_file): Update.
index fd934b5..06c25fd 100644 (file)
@@ -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));
          }