m68k: Use M68K_SCALE_AVAILABLE on __mpn_lshift and __mpn_rshift
commit87ced255bdf2681f5bf6c89d7121e59f6f342161
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 18 Aug 2023 17:49:31 +0000 (18 14:49 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 25 Aug 2023 13:07:24 +0000 (25 10:07 -0300)
treebdccfdce434b611a14d1596f1ef67f6a9d1cb947
parentb85880633f69b737050c22eede858f8c13bb2248
m68k: Use M68K_SCALE_AVAILABLE on __mpn_lshift and __mpn_rshift

This patch adds a new macro, M68K_SCALE_AVAILABLE, similar to gmp
scale_available_p (mpn/m68k/m68k-defs.m4) that expand to 1 if a
scale factor can be used in addressing modes.  This is used
instead of __mc68020__ for some optimization decisions.

Checked on a build for m68k-linux-gnu target mc68020 and mc68040.
sysdeps/m68k/m680x0/lshift.S
sysdeps/m68k/m680x0/rshift.S
sysdeps/m68k/m680x0/sysdep.h