[SH] Add TARGET_DYNSHIFT macro
Oleg Endo
oleg.endo@t-online.de
Sun Jul 22 01:15:00 GMT 2012
Hello,
Currently the check for availability of dynamic shift instructions on a
particular SH target is repeated in several places. The attached patch
adds a new macro for that.
Tested with 'make all'. CSiBE result-size (-m4-single -ml
-mpretend-cmove) also doesn't show any change.
OK?
Cheers,
Oleg
ChangeLog:
* config/sh/sh.h (TARGET_DYNSHIFT): New macro.
(SH_DYNAMIC_SHIFT_COST): Use it.
* config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
(sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition. Add
sanity check for input value. Add function description.
* config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
lshrsi3_d): Use TARGET_DYNSHIFT.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sh_target_dynshift.patch
Type: text/x-patch
Size: 4394 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120722/4706a299/attachment.bin>
More information about the Gcc-patches
mailing list