[llvm-commits] [llvm] r125595 - in /llvm/trunk: lib/MC/MCParser/AsmParser.cpp test/MC/AsmParser/exprs.s test/MC/AsmParser/paren.s

Joerg Sonnenberger joerg at britannica.bec.de
Wed Feb 16 16:09:59 PST 2011


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.

Joerg



More information about the llvm-commits mailing list