mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
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:
parent
deaa64546e
commit
2c3f70e5d4
@ -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())) {
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user