[AArch64] Properly cost zero_extend+ashift forms of ubfi[xz]
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 16 Dec 2015 15:49:42 +0000 (15:49 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Wed, 16 Dec 2015 15:49:42 +0000 (15:49 +0000)
commit283b6c85430d825db1a0cfbd4f54a41d66721e31
treea22a8a0307a6b40dea66cb671b888c5e439eb57f
parent077067a5f30559fd97ffbf2d9f8f636442d8905a
[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.

From-SVN: r231698
gcc/ChangeLog
gcc/config/aarch64/aarch64.c