ARM assembler should prefer non-aliases encoding of cmp.
authorJim Grosbach <grosbach@apple.com>
Fri, 30 Mar 2012 19:59:02 +0000 (19:59 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 30 Mar 2012 19:59:02 +0000 (19:59 +0000)
commitad353c630359d285018a250d72c80b7022d8e67e
treeb510e91ea548bf5892736b389c434786c9791ae8
parenta45e3747e612c00ca4933087d883db77f4547571
ARM assembler should prefer non-aliases encoding of cmp.

When an immediate is both a value [t2_]so_imm and a [t2_]so_imm_neg,
we want to use the non-negated form to make sure we prefer the normal
encoding, not the aliased encoding via the negation of, e.g., 'cmp.w'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153770 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/basic-thumb2-instructions.s