On Mon, Feb 7, 2011 at 2:27 PM, Enrico Scholz
<[email protected]> wrote:
> Khem Raj <[email protected]> writes:
>
>> Can you check what does gcc emits in an assembly file when using
>> -mcpu=cortex-m3 in your case. If it emits sdiv instruction or not
>>
>> int foo (long a, long b)
>> {
>>         return a/b;
>> }
>
> $ arm-linux-uclibceabi-gcc -mthumb -mcpu=cortex-m3 -mfpu=vfp 
> -mfloat-abi=softfp -O1 -c x.c
> $ arm-linux-uclibceabi-objdump -d x.o
> 00000000 <foo>:
>   0:   fb90 f0f1       sdiv    r0, r0, r1
>   4:   4770            bx      lr
>   6:   bf00            nop
>
>

thx

>
> Enrico
>
> _______________________________________________
> Openembedded-devel mailing list
> [email protected]
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to