aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-01-22 14:56:11 -0800
committerRichard Henderson <rth@gcc.gnu.org>2005-01-22 14:56:11 -0800
commiteabd294f388a3d7039f9e9166696df82737bc520 (patch)
tree071f2846ed29192dd7becb9c96278721680a3bf6 /gcc
parent5ccbd3098fddc9f91c967fb82d026f067ae3c4ee (diff)
downloadgcc-eabd294f388a3d7039f9e9166696df82737bc520.zip
gcc-eabd294f388a3d7039f9e9166696df82737bc520.tar.gz
gcc-eabd294f388a3d7039f9e9166696df82737bc520.tar.bz2
* config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
From-SVN: r94085
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/i386/i386.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9554607..29a1c6f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2005-01-22 Richard Henderson <rth@redhat.com>
+ * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
+
+2005-01-22 Richard Henderson <rth@redhat.com>
+
* genopinit.c (optabs): Use smin/smax for floating point too.
* doc/md.texi: Update to match. Clarify that floating point
results are undefined for +0/-0 and NaN.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index e0fa510..bb7d827 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -8331,7 +8331,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 = TARGET_SSE_MATH && SSE_FLOAT_MODE_P (op_mode);
/* All of the unordered compare instructions only work on registers.
The same is true of the fcomi compare instructions. The same is