Oleg Endo <oleg.e...@t-online.de> wrote: > This adjusts the cost calculations for shifts on SH. > I tried out Richard's advice > ( http://gcc.gnu.org/ml/gcc-patches/2012-07/msg01206.html ) > and it seems to work OK to just leave out the mentioned CONST_INT_P > case. > Tested on rev 189870 with > make -k check RUNTESTFLAGS="--target_board=sh-sim > \{-m2/-ml,-m2/-mb,-m2a/-mb,-m2a-single/-mb,-m4/-ml,-m4/-mb,-m4-single/-ml, > -m4-single/-mb,-m4a-single/-ml,-m4a-single/-mb}" > > and no new failures. > I've also confirmed that the example function in > tree-switch-conversion.c:184 now is transformed as expected. The CSiBE > set shows a few improvements here and there, where these kind of > transformations can be applied for when dynamic shifts are available > (SH3+). For SH2 (no dynamic shifts) there also seem to be some minor > improvements. > > OK?
OK. Regards, kaz