[PATCH, AArch64] Implement ffs standard pattern
Ian Bolton
ian.bolton@arm.com
Fri Sep 14 15:26:00 GMT 2012
I've implemented the standard pattern ffs, which leads to
__builtin_ffs being generated with 4 instructions instead
of 5 instructions.
Regression tests and my new test pass.
OK to commit?
Cheers,
Ian
2012-09-14 Ian Bolton <ian.bolton@arm.com>
gcc/
* config/aarch64/aarch64.md (csinc3<mode>): Make it into a
named pattern.
* config/aarch64/aarch64.md (ffs<mode>2): New pattern.
testsuite/
* gcc.target/aarch64/ffs.c: New test.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: aarch64-ffs-v3.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120914/1586819f/attachment.txt>
More information about the Gcc-patches
mailing list