This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ARM] register label conflict with blx instruction



On 11/05/2014 11:40 AM, Nicholas Clifton wrote:
Hi Christian,

  > I'm wondering what would be the best way to deal with labels
  > conflicting with a register name in ARM gas.

Choose better label names ? :-)

marking the test in the testsuite invalid :-)



Any idea about an arm assembly syntax to avoid naming conflict
between regs and symbols for instruction that support both ?
If you know that the destination of the branch is a label and not in a
register then you can use parentheses, as in:

    blx (r0)

Great, it works, that's it, thanks !

Christian



Cheers
    Nick




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]