Re: How "arm_gen_constant" Function In arm.c works?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Prashant Purohit <prashantpurohit025@xxxxxxxxx> writes:

>    I mean to say, as we can not generate all the constants from 8 bit
> rotation scheme supported in ARM architecture, I just wanted to know the
> logic behind that function which generates one Mov and one Add/Sub
> instruction if that constant is not being generated by rotation scheme
> alone.
>    e:g : suppose, the immediate constant is 1234 then that function will do
> it as 
>
>        mov r3, #1232
>        add r3, r3, #2  (In case of ARM)
>    Please tell me, how it splits that constant in to 1232 and 2.

I don't know how to answer except to simply read the function.  The
code is right there.  In this case I expect it happens in the loop at
the end of the function.  If you have any questions about how the
function works, can you be more specific?

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux