On Mon, May 17, 2010 at 11:25 AM, Gilles Chanteperdrix
<[email protected]> wrote:
> Jeremy Brown wrote:
> > {standard input}: Assembler messages:
> > {standard input}:140: Error: selected processor does not support `rsc
> > r7,r7,#0'
> > {standard input}:159: Error: selected processor does not support `rsc
> > r1,r1,#0'
> > make: *** [libxenomai_la-timeconv.lo] Error 1
>
> Ok. Could you try and compile the following piece of code with your
> toolchain and show me the disassembly ?
>
> long long foo(long long x)
> {
>        return -x;
> }
>
> --
>                                            Gilles.

Thanks for the quick reply!  Here's the complete contents of foo.s:

        .syntax unified
        .arch armv7-a
        .eabi_attribute 27, 3
        .fpu vfpv3-d16
        .eabi_attribute 20, 1
        .eabi_attribute 21, 1
        .eabi_attribute 23, 3
        .eabi_attribute 24, 1
        .eabi_attribute 25, 1
        .eabi_attribute 26, 2
        .eabi_attribute 30, 6
        .eabi_attribute 18, 4
        .thumb
        .file   "foo.c"
        .text
        .align  2
        .global foo
        .thumb
        .thumb_func
        .type   foo, %function
foo:
        @ args = 0, pretend = 0, frame = 8
        @ frame_needed = 1, uses_anonymous_args = 0
        @ link register save eliminated.
        push    {r7}
        sub     sp, sp, #12
        add     r7, sp, #0
        strd    r0, [r7]
        ldrd    r0, [r7]
        negs    r2, r0
        sbc     r3, r1, r1, lsl #1
        mov     r0, r2
        mov     r1, r3
        add     r7, r7, #12
        mov     sp, r7
        pop     {r7}
        bx      lr
        .size   foo, .-foo
        .ident  "GCC: (Ubuntu 4.4.3-4ubuntu5) 4.4.3"
        .section        .note.GNU-stack,"",%progbits

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to