Skip to content

Commit

Permalink
Thumb assembly parsing and encoding for NEG.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138131 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Jim Grosbach committed Aug 19, 2011
1 parent deaa645 commit 2c3f70e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Expand Up @@ -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())) {
Expand Down
8 changes: 8 additions & 0 deletions test/MC/ARM/basic-thumb-instructions.s
Expand Up @@ -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]

0 comments on commit 2c3f70e

Please sign in to comment.