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
This commit is contained in:
David Edelsohn 2004-10-13 22:20:24 +00:00 committed by David Edelsohn
parent 090359d60e
commit 520308bcb8
2 changed files with 10 additions and 2 deletions

View 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> 2004-10-12 Tom Tromey <tromey@redhat.com>
* doc/md.texi (Insn Canonicalizations): Removed extraneous quote. * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.

View File

@ -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 @@
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" "")