rs6000.md (andsi3): Add attribute "compare" for andi./andis.
authorDavid Edelsohn <edelsohn@gnu.org>
Wed, 13 Oct 2004 22:20:24 +0000 (22:20 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 13 Oct 2004 22:20:24 +0000 (18:20 -0400)
        * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
        andi./andis.
(anddi3): Same.

From-SVN: r89002

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

index 4b28a8d36d81efdc8a1760e0ecaabedb6baabd95..2b867963f60f64e203141de28e279d26f63eedf5 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-13  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
+       andi./andis.
+       (anddi3): Same.
+
 2004-10-12  Tom Tromey  <tromey@redhat.com>
 
        * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
index 819e8a3d8e644e317e104975600658c312947bf4..21f522ca023f95deb89ef8e7fb2d301acbf039f6 100644 (file)
    and %0,%1,%2
    {rlinm|rlwinm} %0,%1,0,%m2,%M2
    {andil.|andi.} %0,%1,%b2
-   {andiu.|andis.} %0,%1,%u2")
+   {andiu.|andis.} %0,%1,%u2"
+  [(set_attr "type" "*,*,compare,compare")])
 
 ;; Note to set cr's other than cr0 we do the and immediate and then
 ;; the test again -- this avoids a mfcr which on the higher end
    andi. %0,%1,%b2
    andis. %0,%1,%u2
    #"
-  [(set_attr "length" "4,4,4,4,8")])
+  [(set_attr "type" "*,*,compare,compare,*")
+   (set_attr "length" "4,4,4,4,8")])
 
 (define_split
   [(set (match_operand:DI 0 "gpc_reg_operand" "")