This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch]: Fix 16457, missed ppc optimization


>>>>> Nathan Sidwell writes:

Nathan> This fixes 16457, a missed opportunity to use a single rlwinm
Nathan> insn, instead of two rldicr instructions.

Nathan> booted & tested on powerpc64-unknown-linux-gnu, ok?

Nathan> 2004-11-08  Nathan Sidwell  <nathan@codesourcery.com>

	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
                   ^^ typo
	to spot rlwinm opportunities.
	(and64_2_operand): Use mask_1or2_operand.
	* config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.

Okay, but please fix the typo of the extra underscore in the ChangeLog
entry. 

Thanks, David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]