[AArch64] Properly cost zero_extend+ashift forms of ubfi[xz]
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Dec 2015 15:49:42 +0000 (15:49 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Dec 2015 15:49:42 +0000 (15:49 +0000)
commit82fc3cbd9677f9ddbd3db7f7ed9d143bb1053aea
treea22a8a0307a6b40dea66cb671b888c5e439eb57f
parent9ff935787b3a1703268d7124a605c35ea55cc242
[AArch64] Properly cost zero_extend+ashift forms of ubfi[xz]

* config/aarch64/aarch64.c (aarch64_extend_bitfield_pattern_p):
New function.
(aarch64_rtx_costs, ZERO_EXTEND, SIGN_EXTEND cases): Use the above
to handle extend+shift rtxes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231698 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.c