[AArch64] Add alternative 'extr' pattern, calculate rtx cost properly
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 30 Apr 2015 17:03:26 +0000 (17:03 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 30 Apr 2015 17:03:26 +0000 (17:03 +0000)
commitfb0cb7fa67a4e267715129fc06185f631904cd86
treead3217dda400a9658457de3b3337e2df31f4cdf2
parent19261b995bae88efa98e73cf9cf002aa1a4163ff
[AArch64] Add alternative 'extr' pattern, calculate rtx cost properly

* config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
(*extrsi5_insn_uxtw_alt): Likewise.
* config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
(aarch64_rtx_costs, IOR case): Use above to properly cost extr
operations.

From-SVN: r222639
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.md