OSDN Git Service

(ix86_binary_operator_ok): one memory operand is OK.
authorcoxs <coxs@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Mar 1996 21:19:14 +0000 (21:19 +0000)
committercoxs <coxs@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Mar 1996 21:19:14 +0000 (21:19 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11502 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i386/i386.c

index 50a8211..993b6c4 100644 (file)
@@ -1618,9 +1618,8 @@ ix86_binary_operator_ok (code, mode, operands)
      enum machine_mode mode;
      rtx operands[3];
 {
-  return (GET_CODE (operands[1]) != MEM && GET_CODE (operands[2]) != MEM
-         && GET_CODE (operands[1]) != CONST_INT)
-    || GET_RTX_CLASS (code) == 'c';
+  return (GET_CODE (operands[1]) != MEM || GET_CODE (operands[2]) != MEM)
+    && (GET_CODE (operands[1]) != CONST_INT || GET_RTX_CLASS (code) == 'c');
 }
 \f
 /* Attempt to expand a unary operator.  Make the expansion closer to the