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] |
This patch adds a couple of define splits for ARM code that allows us to convert the sequence and Rd, Rd, #1 cmp ... orrXX Rd, Rd, #1 cmp Rd, #0 (where XX is any condition) into cmp ... orrXX Rd, Rd, #1 tst Rd, #1 saving an instruction. Two splits are necessary because there is no default canonicalization for AND and COMPARISON in a commutative operand. Bootstrapped and regression tested on arm-netbsdelf. R. 2003-12-06 Richard Earnshaw <reanrsha@arm.com> * arm.md (IOR (COMPARISON) (AND)): New define_splits.
Attachment:
ior-cmp-and.patch
Description: ior-cmp-and.patch
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |