This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/66956] [avr] Using 32*32=64 multiplicatiion (umulsidi3) for 32=32*32 without MUL.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]