diff options
author | Uros Bizjak <uros@kss-loka.si> | 2004-12-08 08:54:43 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2004-12-08 08:54:43 +0100 |
commit | 89b17498044f87f7bc14f56782434c062730db8d (patch) | |
tree | 6a525ae925e7366d151259148c9eb4765b9bc2d2 /gcc | |
parent | 371f495ae680e9a41f7220bd317073edf6cf062b (diff) | |
download | gcc-89b17498044f87f7bc14f56782434c062730db8d.zip gcc-89b17498044f87f7bc14f56782434c062730db8d.tar.gz gcc-89b17498044f87f7bc14f56782434c062730db8d.tar.bz2 |
i386.c (output_387_binary_op, [...]): Fix is_sse condition.
* config/i386/i386.c (output_387_binary_op,
ix86_prepare_fp_compare_args): Fix is_sse condition.
From-SVN: r91862
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7b526cc..52a8b92 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-12-08 Uros Bizjak <uros@kss-loka.si> + + * config/i386/i386.c (output_387_binary_op, + ix86_prepare_fp_compare_args): Fix is_sse condition. + 2004-12-07 Uros Bizjak <uros@kss-loka.si> * config/i386/i386-protos.h (ix86_split_fp_branch): New rtx diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 2bd53bc..e56fc77 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -6901,7 +6901,7 @@ output_387_binary_op (rtx insn, rtx *operands) static char buf[30]; const char *p; const char *ssep; - int is_sse = SSE_REG_P (operands[0]) | SSE_REG_P (operands[1]) | SSE_REG_P (operands[2]); + int is_sse = SSE_REG_P (operands[0]) || SSE_REG_P (operands[1]) || SSE_REG_P (operands[2]); #ifdef ENABLE_CHECKING /* Even if we do not want to check the inputs, this documents input @@ -7925,7 +7925,7 @@ ix86_prepare_fp_compare_args (enum rtx_code code, rtx *pop0, rtx *pop1) enum machine_mode fpcmp_mode = ix86_fp_compare_mode (code); rtx op0 = *pop0, op1 = *pop1; enum machine_mode op_mode = GET_MODE (op0); - int is_sse = SSE_REG_P (op0) | SSE_REG_P (op1); + int is_sse = SSE_REG_P (op0) || SSE_REG_P (op1); /* All of the unordered compare instructions only work on registers. The same is true of the fcomi compare instructions. The same is |