Fix a problem with setting CR when splitting into rotlsi3.
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 26 Oct 2004 16:17:43 +0000 (16:17 +0000)
committerFariborz Jahanian <fjahanian@gcc.gnu.org>
Tue, 26 Oct 2004 16:17:43 +0000 (16:17 +0000)
OKed by Alan Modra.

From-SVN: r89587

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

index 916baf24d4b814d1e14d326d1fcd84823ad59ea6..5037e2348dde09232787df3571e3076c1682d063 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
+
+        * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting 
+        into rotlsi3.
+
 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
 
        * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
index cd65f74da7ef04eb8eaf0a1f770da58775d78ab4..4a80c7daeb9ef54c39feee44ed49ae9ff6b17ddd 100644 (file)
   "TARGET_POWERPC64"
   "#"
   "TARGET_POWERPC64"
-  [(parallel [(set (match_dup 3)
-                  (compare:CC (and:SI (rotate:SI (match_dup 1) (match_dup 4))
-                                      (match_dup 5))
-                              (const_int 0)))
-             (set (match_dup 0)
+  [(set (match_dup 0)
                   (and:SI (rotate:SI (match_dup 1) (match_dup 4))
-                          (match_dup 5)))])
-   (set (match_dup 0)
-       (rotate:SI (match_dup 0) (match_dup 6)))]
+                          (match_dup 5)))
+   (parallel [(set (match_dup 3)
+                  (compare:CC (rotate:SI (match_dup 0) (match_dup 6))
+                              (const_int 0)))
+              (set (match_dup 0)
+                  (rotate:SI (match_dup 0) (match_dup 6)))])]
   "
 {
   int mb = extract_MB (operands[2]);