[PATCH] [AArch64] Add add/sub/cmp/cmn aliases to MC AsmParser
grosbach at apple.com
Fri Jul 11 11:01:12 PDT 2014
Does the ARM ARM specify these aliases? I can’t find them, if so, but it’s not always the most readable document, so I could just be missing it.
> On Jul 11, 2014, at 5:28 AM, Arnaud A. de Grandmaison <arnaud.degrandmaison at arm.com> wrote:
> Well, the title says it all.
> This patch teaches the AsmParser to accept some add/sub/cmp/cmn with
> negative immediate operand and convert them as shown:
> add Rd, Rn, -imm -> sub Rd, Rn, imm
> sub Rd, Rn, -imm -> add Rd, Rn, imm
> adds Rd, Rn, -imm -> subs Rd, Rn, imm
> subs Rd, Rn, -imm -> adds Rd, Rn, imm
> cmp Rn, -imm -> cmn Rn, imm
> cmn Rn, -imm -> cmp Rn, imm
> Those instructions are an alternate syntax available to assembly coders,
> and are needed in order to support code already compiling with some other
> OK to commit ?
> Arnaud A. de Grandmaison
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits