From a1a20e31eca37839113872c131d74e89a7fdf73d Mon Sep 17 00:00:00 2001 From: rth Date: Tue, 18 Jan 2005 09:44:13 +0000 Subject: [PATCH] * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP special case for sse. * config/i386/predicates.md (sse_comparison_operator): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93824 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.c | 9 ++++----- gcc/config/i386/predicates.md | 4 +--- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 10a4f6a6f28..ce0259ce972 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-01-18 Richard Henderson + + * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP + special case for sse. + * config/i386/predicates.md (sse_comparison_operator): Likewise. + 2005-01-18 Dorit Naishlos * tree-inline.c (estimate_num_insns_1): Added cases for diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 5f00e4a20ec..c3aff8e305e 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -9764,12 +9764,11 @@ ix86_expand_fp_movcc (rtx operands[]) if (cmode != mode) return 0; - /* Massage condition to satisfy sse_comparison_operator. In case we - are in non-ieee mode, try to canonicalize the destination operand - to be first in the comparison - this helps reload to avoid extra - moves. */ + /* Massage condition to satisfy sse_comparison_operator. Try + to canonicalize the destination operand to be first in the + comparison - this helps reload to avoid extra moves. */ if (!sse_comparison_operator (operands[1], VOIDmode) - || ((COMMUTATIVE_P (operands[1]) || !TARGET_IEEE_FP) + || (COMMUTATIVE_P (operands[1]) && rtx_equal_p (operands[0], cmp_op1))) { tmp = cmp_op0; diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md index 73352b995b9..6e94afcd1fa 100644 --- a/gcc/config/i386/predicates.md +++ b/gcc/config/i386/predicates.md @@ -759,9 +759,7 @@ ;; predicate. (define_special_predicate "sse_comparison_operator" - (ior (match_code "eq,lt,le,unordered,ne,unge,ungt,ordered") - (and (match_code "uneq,unlt,unle,ltgt,ge,gt") - (match_test "!TARGET_IEEE_FP")))) + (match_code "eq,lt,le,unordered,ne,unge,ungt,ordered")) ;; Return 1 if OP is a valid comparison operator in valid mode. (define_predicate "ix86_comparison_operator" -- 2.11.0