From 6a1210e581013e32ab8e8400dbefda43f6382d9f Mon Sep 17 00:00:00 2001 From: uros Date: Sun, 15 May 2011 19:31:32 +0000 Subject: [PATCH] * config/i386/i386.md (floating point move splitters): Fix usage of standard_80387_constant_p. (ix86_preferred_reload_class): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173775 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.c | 2 +- gcc/config/i386/i386.md | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e98904cbf22..6e4e7337948 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2011-05-15 Uros Bizjak + * 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 + * config/i386/i386.md (*movdf_internal): Simplify insn condition. 2011-05-14 Eric Botcazou diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 84678061d5e..6a5044d1564 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 1289fc0fbc5..335ff9c146c 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)) -- 2.11.0