From 89b17498044f87f7bc14f56782434c062730db8d Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Wed, 8 Dec 2004 08:54:43 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ 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 + + * config/i386/i386.c (output_387_binary_op, + ix86_prepare_fp_compare_args): Fix is_sse condition. + 2004-12-07 Uros Bizjak * 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 -- 2.7.4