This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r237440 - in /trunk/gcc: ChangeLog config/aarch...
- From: ktkachov at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 14 Jun 2016 13:39:03 -0000
- Subject: r237440 - in /trunk/gcc: ChangeLog config/aarch...
Author: ktkachov
Date: Tue Jun 14 13:39:03 2016
New Revision: 237440
URL: https://gcc.gnu.org/viewcvs?rev=237440&root=gcc&view=rev
Log:
[AArch64] Handle AND+ASHIFT form of UBFIZ correctly in costs
* config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
New function.
(aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
mask+shift version.
* config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
New prototype.
* config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
matching condition with aarch64_mask_and_shift_for_ubfiz_p.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/aarch64/aarch64-protos.h
trunk/gcc/config/aarch64/aarch64.c
trunk/gcc/config/aarch64/aarch64.md