Arnd Bergmann <a...@arndb.de> writes:

> arnd@wuerfel:/tmp$ arm-linux-gnueabihf-gcc -Wall -O2 -mcpu=cortex-a15 idiv.c 
> -c -o idiv-arm.o
> arnd@wuerfel:/tmp$ objdump -dr idiv-arm.o   
>
> idiv-arm.o:     file format elf32-littlearm
>
> Disassembly of section .text:
>
> 00000000 <udiv>:
>    0:   fbb0 f0f1       udiv    r0, r0, r1
>    4:   4770            bx      lr
>    6:   bf00            nop
>
> 00000008 <sdiv>:
>    8:   fb90 f0f1       sdiv    r0, r0, r1
>    c:   4770            bx      lr
>    e:   bf00            nop

Your compiler seems to default to thumb so you should add -marm.

-- 
Måns Rullgård
m...@mansr.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to