From 8aadc2f3e5d25589294430a7eb66edabcbced1ce Mon Sep 17 00:00:00 2001
From: Uros Bizjak <ubizjak@gmail.com>
Date: Sat, 31 Jul 2010 11:33:19 +0200
Subject: [PATCH] i386.md (mov<SWIM:mode>cc and corresponding splitter): Use
 ordered_comparison_operator predicate for operator1.

	* config/i386/i386.md (mov<SWIM:mode>cc and corresponding splitter):
	Use ordered_comparison_operator predicate for operator1.
	(add<mode>cc): ditto.

From-SVN: r162775
---
 gcc/ChangeLog           | 3 ++-
 gcc/config/i386/i386.md | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b417d4b0aefc..73aa02573f55 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -66,7 +66,8 @@
 	(cbranch<mode>4): Use ordered_comparison_operator predicate
 	for operator0.
 	(cstore<mode>4): Ditto for operator1.
-	(mov<SWIM:mode>cc): Ditto.
+	(mov<SWIM:mode>cc and corresponding splitter): Ditto.
+	(add<mode>cc): ditto.
 
 2010-07-30  Richard Guenther  <rguenther@suse.de>
 
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 265295a04db4..510a6c507204 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -16340,7 +16340,7 @@
 ;; Conditional addition patterns
 (define_expand "add<mode>cc"
   [(match_operand:SWI 0 "register_operand" "")
-   (match_operand 1 "comparison_operator" "")
+   (match_operand 1 "ordered_comparison_operator" "")
    (match_operand:SWI 2 "register_operand" "")
    (match_operand:SWI 3 "const_int_operand" "")]
   ""
@@ -16655,7 +16655,7 @@
 
 (define_split
   [(set (match_operand 0 "register_operand" "")
-	(if_then_else (match_operator 1 "comparison_operator"
+	(if_then_else (match_operator 1 "ordered_comparison_operator"
 				[(reg FLAGS_REG) (const_int 0)])
 		      (match_operand 2 "register_operand" "")
 		      (match_operand 3 "register_operand" "")))]
-- 
GitLab