diff options
author | Stan Cox <coxs@gnu.org> | 1996-03-08 21:19:14 +0000 |
---|---|---|
committer | Stan Cox <coxs@gnu.org> | 1996-03-08 21:19:14 +0000 |
commit | 29e8f73f36eb5b6facbeef366f22fb7f8e19908d (patch) | |
tree | fcc6b16dd99ec1773191839696010e9cde51063b /gcc | |
parent | 8b760293d7b65995bb5d80729777d927d839ad5e (diff) | |
download | gcc-29e8f73f36eb5b6facbeef366f22fb7f8e19908d.zip gcc-29e8f73f36eb5b6facbeef366f22fb7f8e19908d.tar.gz gcc-29e8f73f36eb5b6facbeef366f22fb7f8e19908d.tar.bz2 |
(ix86_binary_operator_ok): one memory operand is OK.
From-SVN: r11502
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/i386.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 50a8211..993b6c4 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 |