diff options
author | David Edelsohn <edelsohn@gnu.org> | 2004-10-13 22:20:24 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2004-10-13 18:20:24 -0400 |
commit | 520308bcb8ad3256839a9d349c2105c48590c8bf (patch) | |
tree | 0aa2497b683b8bfcebf42b8e2220c3b9dc08675e /gcc | |
parent | 090359d60eed4186d0d01d3112db072be3dd1f24 (diff) | |
download | gcc-520308bcb8ad3256839a9d349c2105c48590c8bf.zip gcc-520308bcb8ad3256839a9d349c2105c48590c8bf.tar.gz gcc-520308bcb8ad3256839a9d349c2105c48590c8bf.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b28a8d..2b86796 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 819e8a3..21f522c 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" "") |