From 5893f1589ac718724167e06bce2759ea3339560f Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Tue, 29 Jan 2013 10:33:18 +0000 Subject: [PATCH] re PR target/54222 ([avr] Implement fixed-point support) PR target/54222 * config/avr/t-avr (LIB2FUNCS_EXCLUDE): Add: _mulQQ, _mulHQ, _mulHA, _mulSA, _mulUQQ, _mulUHQ, _mulUHA, _mulUSA, _divQQ, _divHQ, _divHA, _divSA, _divUQQ, _divUHQ, _divUHA, _divUSA. From-SVN: r195532 --- libgcc/ChangeLog | 9 +++++++++ libgcc/config/avr/t-avr | 14 ++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 30775e0..1d7a25b 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,12 @@ +2013-01-29 Georg-Johann Lay + + PR target/54222 + * config/avr/t-avr (LIB2FUNCS_EXCLUDE): Add: + _mulQQ, _mulHQ, _mulHA, _mulSA, + _mulUQQ, _mulUHQ, _mulUHA, _mulUSA, + _divQQ, _divHQ, _divHA, _divSA, + _divUQQ, _divUHQ, _divUHA, _divUSA. + 2013-01-26 David Holsgrove * config.host(microblaze*-linux*): tmake_file: Remove diff --git a/libgcc/config/avr/t-avr b/libgcc/config/avr/t-avr index d609199..3bc0718 100644 --- a/libgcc/config/avr/t-avr +++ b/libgcc/config/avr/t-avr @@ -164,3 +164,17 @@ LIB2FUNCS_EXCLUDE += \ LIB2FUNCS_EXCLUDE += \ $(foreach func,_usadd _ussub _usneg,\ $(foreach mode,$(usat_modes),$(func_X))) + + +smul_modes = QQ HQ HA SA +umul_modes = UQQ UHQ UHA USA +sdiv_modes = QQ HQ HA SA +udiv_modes = UQQ UHQ UHA USA + +LIB2FUNCS_EXCLUDE += \ + $(foreach func,_mul,\ + $(foreach mode,$(smul_modes) $(umul_modes),$(func_X))) + +LIB2FUNCS_EXCLUDE += \ + $(foreach func,_div,\ + $(foreach mode,$(sdiv_modes) $(udiv_modes),$(func_X))) -- 2.7.4