[LLVMdev] llvm-gcc promotes i32 mul to i64 inside __muldi3

Eli Friedman eli.friedman at gmail.com
Wed Mar 17 13:54:32 PDT 2010


On Wed, Mar 17, 2010 at 1:32 PM, Sergey Yakoushkin
<sergey.yakoushkin at gmail.com> wrote:
> I'm building tool-chain for processor without integer MUL.
> So, I've defined __mulsi3 for integer multiplication (int32).
>
> Now I've got a problem with int64 multiplication which is implemented
> in libgcc2.c.
> Segfualt due to infinite recursion in i64 soft multiplication
> (libgcc2, __muldi3).

See http://llvm.org/bugs/show_bug.cgi?id=3101 which is essentially the
same issue.

-Eli



More information about the llvm-dev mailing list