Thumb assembly parsing and encoding for NEG.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138131 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2011-08-19 22:51:03 +00:00
parent deaa64546e
commit 2c3f70e5d4
2 changed files with 9 additions and 1 deletions

View File

@ -2831,7 +2831,7 @@ getMnemonicAcceptInfo(StringRef Mnemonic, bool &CanAcceptCarrySet,
Mnemonic == "umlal" || Mnemonic == "orr" || Mnemonic == "mvn" ||
Mnemonic == "rsb" || Mnemonic == "rsc" || Mnemonic == "orn" ||
Mnemonic == "sbc" || Mnemonic == "mla" || Mnemonic == "umull" ||
Mnemonic == "eor" || Mnemonic == "smlal" ||
Mnemonic == "eor" || Mnemonic == "smlal" || Mnemonic == "neg" ||
// FIXME: We need a better way. This really confused Thumb2
// parsing for 'mov'.
(Mnemonic == "mov" && !isThumbOne())) {

View File

@ -339,3 +339,11 @@ _func:
mvns r6, r3
@ CHECK: mvns r6, r3 @ encoding: [0xde,0x43]
@------------------------------------------------------------------------------
@ NEG
@------------------------------------------------------------------------------
negs r3, r4
@ CHECK: rsbs r3, r4, #0 @ encoding: [0x63,0x42]