Problem in ARM Branch Syntax
Richard Earnshaw
rearnsha@arm.com
Tue Jun 10 10:05:00 GMT 2003
>
> Hi all,
>
> I have a ADS macro defined in a file something like this:
> ==================================
> MACRO Q_ADD $reg1,$reg2,$reg3
> ADDS $reg1, $reg2, $reg3
> BVC {pc} + 0x0C =======================>> Problemetic
> Line
> MVNGT $reg1, #0x80000000
> MOVLT $reg1, #0x80000000
> MEND
> ===================================
>
> When I try to port the code onto gcc, it gives a linking error as
> "undefined reference to pc"
> I tried many alternatives but was not successful.
>
> Can anyone tell me how this be changed to suit gcc??
>
Dot (the character '.') is the address of the current instruction in GAS.
R.
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list