From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jeremy Brown <jhbrown@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Error building userspace: "selected processor does not support `rsc r7, r7, #0'
Date: Mon, 17 May 2010 20:54:15 +0200 [thread overview]
Message-ID: <4BF190D7.9060804@domain.hid> (raw)
In-Reply-To: <AANLkTinkr4vDIHFMJigC7i9dCXjoG2d_gNG11txXrjpd@domain.hid>
Jeremy Brown wrote:
> On Mon, May 17, 2010 at 11:25 AM, Gilles Chanteperdrix
> <gilles.chanteperdrix@xenomai.org> 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
>
Compile with -O2 please
--
Gilles.
next prev parent reply other threads:[~2010-05-17 18:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-17 18:05 [Xenomai-help] Error building userspace: "selected processor does not support `rsc r7, r7, #0' Jeremy Brown
2010-05-17 18:25 ` Gilles Chanteperdrix
2010-05-17 18:51 ` Jeremy Brown
2010-05-17 18:54 ` Gilles Chanteperdrix [this message]
2010-05-17 18:56 ` Jeremy Brown
2010-05-17 19:01 ` Gilles Chanteperdrix
2010-05-17 19:25 ` Jeremy Brown
2010-05-17 19:30 ` Jeremy Brown
2010-05-17 20:50 ` Jeremy Brown
2010-05-17 23:57 ` Gilles Chanteperdrix
2010-05-18 0:48 ` Jeremy Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BF190D7.9060804@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jhbrown@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.