Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: Cortex-A9 inline asm - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cortex-A9 inline asm Rate Topic: -----

#1 User is offline   armMJ 

  • Member
  • Pip
  • Group: Members
  • Posts: 22
  • Joined: 11-October 12

Posted 23 November 2012 - 01:17 PM

Hi,
I am getting below error message for arm inlin in gcc compiler , could you please tell me what
is the reason.
I am using Coretex-A9 processor.

for example
inline asm code
asm (
"rsbs" dumy, shift_value, 0 "\n\t"
"movmi " L_var_out, value, "asr" shift_value"\n\t"
"movpl" L_var_out, value, "lsl" dumy
);
====================================

Below error i got .........
tmp/ccTkbhQl.s:24: Error: ARM register expected -- `smulwb result,a,b MOV result,result,LSL#1'
/tmp/ccTkbhQl.s:41: Error: ARM register expected -- `rsbs dumy,shift_value,0movmi
L_var_out,value,asr shift_valuemovpl L_var_out,value,lsl dumy'
/tmp/ccTkbhQl.s:58: Error: ARM register expected -- `cmp L_var1,0MVNLTS L_var1,L_var1MOVEQ
var_out,32 CLZGT var_out,L_var1SUB var_out,var_out,1'
0

#2 User is offline   armMJ 

  • Member
  • Pip
  • Group: Members
  • Posts: 22
  • Joined: 11-October 12

Posted 23 November 2012 - 03:33 PM

the error message I got from Assembler
0

#3 User is offline   Green 

  • Member
  • Pip
  • Group: Members
  • Posts: 18
  • Joined: 08-October 12

Posted 05 December 2012 - 11:34 AM

It seems the problem in syntax you use.
See here - http://www.ethernut....inline-asm.html
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic