From 29e8f73f36eb5b6facbeef366f22fb7f8e19908d Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Fri, 8 Mar 1996 21:19:14 +0000 Subject: [PATCH] (ix86_binary_operator_ok): one memory operand is OK. From-SVN: r11502 --- gcc/config/i386/i386.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 50a8211923d..993b6c468dd 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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'); } /* Attempt to expand a unary operator. Make the expansion closer to the -- 2.30.2