re PR target/16457 (PowerPC - Combine two rldicr instructions into a single rlwinm.)
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 11 Nov 2004 17:03:36 +0000 (17:03 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 11 Nov 2004 17:03:36 +0000 (17:03 +0000)
commite1e2e653d7fdcf6c9f1cafb76fbb016c1879029d
treeefdb48c0d188106687c9363a2b7beb368a971779
parent00803cd56f7d96060766249a23f3e89f778ad8f3
re PR target/16457 (PowerPC - Combine two rldicr instructions into a single rlwinm.)

.: PR target/16457
* config/rs6000/rs6000.c (mask64_2_operand): Stub to call
mask64_1or2_operand.
(mask64_1or_2_operand): Broken out of mask64_2_operand, add flag
to spot rlwinm opportunities.
(and64_2_operand): Use mask_1or2_operand.
* config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
testsuite:
PR target/16457
* gcc.dg/ppc-and-1: New

From-SVN: r90481
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ppc-and-1.c [new file with mode: 0644]