[AArch64] Bitwise adds and subs instructions with shift

Hurugalawadi, Naveen Naveen.Hurugalawadi@caviumnetworks.com
Tue Apr 2 07:54:00 GMT 2013


Hi Marcus,

Thanks for reviewing the patch and your comments.

>> I'm not sure how good the coverage is from these test cases

The shift instructions are not generated with the test case since
multiply patterns are generated for the same. Its the same case with
other add and sub instructions which supports both shift and multiply
patterns.The zero extend versions were not generated even though
test cases were implemented for them.

Please find attached the modified patch that implements adds and subs
instructions with multiply for aarch64 target.
Please review the same and let me know if there should be any
modifications in the patch.
 
Build and tested on aarch64-thunder-elf (using Cavium's internal
simulator). No new regressions.

Thanks,
Naveen

gcc/

2013-04-02   Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>

	* config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
	(*subs_mul_imm_<mode>): New pattern.

gcc/testsuite/

2013-04-02   Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>

	* gcc.target/aarch64/adds1.c: New.
	* gcc.target/aarch64/adds2.c: New.
	* gcc.target/aarch64/subs1.c: New.
	* gcc.target/aarch64/subs2.c: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adds_subs_mul.patch
Type: text/x-patch
Size: 13972 bytes
Desc: adds_subs_mul.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130402/d4bed146/attachment.bin>


More information about the Gcc-patches mailing list