arm.h (REVERSE_CONDITION): Define.
authorRichard Earnshaw <rearnsha@arm.com>
Sun, 29 Aug 2004 22:18:25 +0000 (22:18 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Sun, 29 Aug 2004 22:18:25 +0000 (22:18 +0000)
* arm.h (REVERSE_CONDITION): Define.
(REVERSIBLE_CC_MODE): All comparisons are now reversible.

From-SVN: r86738

gcc/ChangeLog
gcc/config/arm/arm.h

index e4134edff1f6580e04668ec9c17ff4e3f8663f2f..888f316d5fee30008dc9190193f047aaadd4ffba 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
+
+       * arm.h (REVERSE_CONDITION): Define.
+       (REVERSIBLE_CC_MODE): All comparisons are now reversible.
+
 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
 
        * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
index 23e72ab184d10a726f3512e26b43a514e04fc6e0..37bda83091a8be7cdfd46d9a36f9a099ede6cf21 100644 (file)
@@ -2304,7 +2304,12 @@ extern int making_const_table;
 
 #define SELECT_CC_MODE(OP, X, Y)  arm_select_cc_mode (OP, X, Y)
 
-#define REVERSIBLE_CC_MODE(MODE) ((MODE) != CCFPEmode)
+#define REVERSIBLE_CC_MODE(MODE) 1
+
+#define REVERSE_CONDITION(CODE,MODE) \
+  (((MODE) == CCFPmode || (MODE) == CCFPEmode) \
+   ? reverse_condition_maybe_unordered (code) \
+   : reverse_condition (code))
 
 #define CANONICALIZE_COMPARISON(CODE, OP0, OP1)                                \
   do                                                                   \