]> git.ipfire.org Git - thirdparty/gcc.git/commit
AVR: Speed up __umulhisi3 for small devices with MUL.
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 4 Apr 2025 20:01:43 +0000 (22:01 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Sat, 5 Apr 2025 10:15:09 +0000 (12:15 +0200)
commit6753df43a0251cffbfe2fca85e978807f976fb01
treef767ef1b889daf78f7c5d4124fa6496e94c81431
parent7d561820525fd3b9d8f3876333c0584d75e7c053
AVR: Speed up __umulhisi3 for small devices with MUL.

__umulhisi3 had an "rcall 1f" to save 6 bytes, which is an unreasonable
size gain vs. cycle cost.  Just use the same code on all devices with MUL,
irrespective of program memory size.

libgcc/
* config/avr/lib1funcs.S (__umulhisi3) [Have MUL]: Reduce call
depth by 1.
libgcc/config/avr/lib1funcs.S