[llvm-commits] [llvm] r125595 - in /llvm/trunk: lib/MC/MCParser/AsmParser.cpp test/MC/AsmParser/exprs.s test/MC/AsmParser/paren.s
Jim Grosbach
grosbach at apple.com
Mon Feb 21 16:38:35 PST 2011
On Feb 16, 2011, at 4:09 PM, Joerg Sonnenberger wrote:
> On Wed, Feb 16, 2011 at 01:55:20PM -0800, Jim Grosbach wrote:
>> Brackets have well-defined meaning in lots of asm dialects (memory references, etc). Overloading that to mean something else in expressions is dubious at best.
>>
>> For example,
>> ldr r0, [r5]
>>
>> Is that an expression referring to a symbol named r5, or is it an indirect memory reference via register 5?
>
> How is
> ldr r0, (r5)
> interpreted in this context? AT&T syntax for x86 and quite a few other
> platforms consider those to be equivalent.
That's an expression for ARM. What x86 does isn't really relevant in this context, as ARM assembly syntax has little to do with x86.
-Jim
ps., please CC me, not just respond to the list. Otherwise it's not unlikely I'll miss responses.
More information about the llvm-commits
mailing list