[LLVMdev] Doubt over lib call generation

Duncan Sands baldrick at free.fr
Mon Jan 12 06:25:07 PST 2009


> > > Consider the case in Sparc or ARM
> > 
> > can you please provide a testcase in bitcode (or
> > LLVM assembler) form.
> > 
> 
> Please find the bitcode file and C file attached with.

Thanks.  It looks to me like the entire 64 bit result
of __ashrdi3 is being used.  In the SelectionDAG you
can see this clearly, and in the final assembler the
two 32 bit halves seem to correspond to %o1 and %o0:

        call __ashrdi3
        nop
        add %l0, %lo(lla), %l1
        st %o1, [%l1+4]
        st %o0, [%l0+%lo(lla)]

Ciao,

Duncan.



More information about the llvm-dev mailing list