This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/66956] [avr] Using 32*32=64 multiplicatiion (umulsidi3) for 32=32*32 without MUL.
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Jul 2015 10:54:16 +0000
- Subject: [Bug target/66956] [avr] Using 32*32=64 multiplicatiion (umulsidi3) for 32=32*32 without MUL.
- Auto-submitted: auto-generated
- References: <bug-66956-4 at http dot gcc dot gnu dot org/bugzilla/>
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