aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2011-05-15 21:31:32 +0200
committerUros Bizjak <uros@gcc.gnu.org>2011-05-15 21:31:32 +0200
commitdfb737fcca4b3bed9984d5136e58c919e1e1bb5d (patch)
treea117638dee3014acac8303ec536765e58a182aea /gcc
parent4d4cf1444deb9c06757a00edc6ad55897ded64f2 (diff)
downloadgcc-dfb737fcca4b3bed9984d5136e58c919e1e1bb5d.zip
gcc-dfb737fcca4b3bed9984d5136e58c919e1e1bb5d.tar.gz
gcc-dfb737fcca4b3bed9984d5136e58c919e1e1bb5d.tar.bz2
i386.md (floating point move splitters): Fix usage of standard_80387_constant_p.
* config/i386/i386.md (floating point move splitters): Fix usage of standard_80387_constant_p. (ix86_preferred_reload_class): Ditto. From-SVN: r173775
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/i386.c2
-rw-r--r--gcc/config/i386/i386.md4
3 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e98904c..6e4e733 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2011-05-15 Uros Bizjak <ubizjak@gmail.com>
+ * config/i386/i386.md (floating point move splitters): Fix
+ usage of standard_80387_constant_p.
+ (ix86_preferred_reload_class): Ditto.
+
+2011-05-15 Uros Bizjak <ubizjak@gmail.com>
+
* config/i386/i386.md (*movdf_internal): Simplify insn condition.
2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 8467806..6a5044d 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -28489,7 +28489,7 @@ ix86_preferred_reload_class (rtx x, reg_class_t regclass)
zero above. We only want to wind up preferring 80387 registers if
we plan on doing computation with them. */
if (TARGET_80387
- && standard_80387_constant_p (x))
+ && standard_80387_constant_p (x) > 0)
{
/* Limit class to non-sse. */
if (regclass == FLOAT_SSE_REGS)
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 1289fc0..335ff9c 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -3315,7 +3315,7 @@
}
else if (FP_REG_P (r))
{
- if (!standard_80387_constant_p (c))
+ if (standard_80387_constant_p (c) < 1)
FAIL;
}
else if (MMX_REG_P (r))
@@ -3347,7 +3347,7 @@
}
else if (FP_REG_P (r))
{
- if (!standard_80387_constant_p (c))
+ if (standard_80387_constant_p (c) < 1)
FAIL;
}
else if (MMX_REG_P (r))