From 520308bcb8ad3256839a9d349c2105c48590c8bf Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 13 Oct 2004 22:20:24 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.md | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b28a8d36d8..2b867963f60 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-10-13 David Edelsohn + + * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for + andi./andis. + (anddi3): Same. + 2004-10-12 Tom Tromey * doc/md.texi (Insn Canonicalizations): Removed extraneous quote. diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 819e8a3d8e6..21f522ca023 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -2220,7 +2220,8 @@ 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 @@ -7133,7 +7134,8 @@ 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" "") -- 2.30.2