Commit 520308bc by David Edelsohn Committed by David Edelsohn

rs6000.md (andsi3): Add attribute "compare" for andi./andis.

        * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
        andi./andis.
	(anddi3): Same.

From-SVN: r89002
parent 090359d6
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> 2004-10-12 Tom Tromey <tromey@redhat.com>
* doc/md.texi (Insn Canonicalizations): Removed extraneous quote. * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
......
...@@ -2220,7 +2220,8 @@ ...@@ -2220,7 +2220,8 @@
and %0,%1,%2 and %0,%1,%2
{rlinm|rlwinm} %0,%1,0,%m2,%M2 {rlinm|rlwinm} %0,%1,0,%m2,%M2
{andil.|andi.} %0,%1,%b2 {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 ;; 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 ;; the test again -- this avoids a mfcr which on the higher end
...@@ -7133,7 +7134,8 @@ ...@@ -7133,7 +7134,8 @@
andi. %0,%1,%b2 andi. %0,%1,%b2
andis. %0,%1,%u2 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 (define_split
[(set (match_operand:DI 0 "gpc_reg_operand" "") [(set (match_operand:DI 0 "gpc_reg_operand" "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment