rs6000.md (cr_logical): Swap order of CODE and MODE arguments to
authorDavid Edelsohn <edelsohn@gnu.org>
Tue, 16 Oct 2001 00:43:21 +0000 (00:43 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Tue, 16 Oct 2001 00:43:21 +0000 (20:43 -0400)
        gen_rtx and compare operand with const0_rtx.

From-SVN: r46273

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index 4cf58733372ab0554df03ab44a6fe21c164072c3..781864d94198c5745b104b9a40b628c8bd563ec7 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-15  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
+       MODE arguments to gen_rtx and compare operand with const0_rtx.
+
 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * system.h: Poison old unused target macros.
index de88213d1affe1d18a6ad3fb8de643e4ed646369..a443c048a73c5d8641c1ce5bc1160f1bca614ce4 100644 (file)
   positive_2 = branch_positive_comparison_operator (operands[3], CCEQmode);
 
   if (! positive_1)
-    operands[1] = gen_rtx (SImode,
-                          rs6000_reverse_condition (GET_MODE (operands[2]),
+    operands[1] = gen_rtx (rs6000_reverse_condition (GET_MODE (operands[2]),
                                                     GET_CODE (operands[1])),
-                          operands[2]);
+                          SImode,
+                          operands[2], const0_rtx);
   else if (GET_MODE (operands[1]) != SImode)
-    operands[1] = gen_rtx (SImode,
-                          GET_CODE (operands[1]),
-                          operands[2]);
+    operands[1] = gen_rtx (GET_CODE (operands[1]),
+                          SImode,
+                          operands[2], const0_rtx);
 
   if (! positive_2)
-    operands[3] = gen_rtx (SImode,
-                          rs6000_reverse_condition (GET_MODE (operands[4]),
+    operands[3] = gen_rtx (rs6000_reverse_condition (GET_MODE (operands[4]),
                                                     GET_CODE (operands[3])),
-                          operands[4]);
+                          SImode,
+                          operands[4], const0_rtx);
   else if (GET_MODE (operands[3]) != SImode)
-    operands[3] = gen_rtx (SImode,
-                          GET_CODE (operands[3]),
-                          operands[4]);
+    operands[3] = gen_rtx (GET_CODE (operands[3]),
+                          SImode,
+                          operands[4], const0_rtx);
 
   if (positive_1 == positive_2)
     {