[Bug target/66956] [avr] Using 32*32=64 multiplicatiion (umulsidi3) for 32=32*32 without MUL.
gjl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 21 10:54:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66956
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Compile that test case with
$ avr-gcc -Os mul32.c -S
Result is something like:
mul_u32:
rcall __umulsidi3
mov r22,r18
mov r23,r19
mov r24,r20
mov r25,r21
ret
mul_s32:
rcall __mulsidi3
mov r22,r18
mov r23,r19
mov r24,r20
mov r25,r21
ret
More information about the Gcc-bugs
mailing list