Thumb2 assembly parsing and encoding for SMLAL.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139902 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2011-09-16 16:38:00 +00:00
parent cc32efd592
commit 837fc5e9d5
2 changed files with 16 additions and 3 deletions

View File

@ -3217,9 +3217,10 @@ getMnemonicAcceptInfo(StringRef Mnemonic, bool &CanAcceptCarrySet,
Mnemonic == "mul" || Mnemonic == "bic" || Mnemonic == "asr" ||
Mnemonic == "umlal" || Mnemonic == "orr" || Mnemonic == "mvn" ||
Mnemonic == "rsb" || Mnemonic == "rsc" || Mnemonic == "orn" ||
Mnemonic == "sbc" || Mnemonic == "umull" ||
Mnemonic == "eor" || Mnemonic == "smlal" || Mnemonic == "neg" ||
((Mnemonic == "mov" || Mnemonic == "mla") && !isThumb())) {
Mnemonic == "sbc" || Mnemonic == "umull" || Mnemonic == "eor" ||
Mnemonic == "neg" ||
(!isThumb() && (Mnemonic == "mov" || Mnemonic == "mla" ||
Mnemonic == "smlal"))) {
CanAcceptCarrySet = true;
} else {
CanAcceptCarrySet = false;

View File

@ -1786,6 +1786,18 @@ _func:
@ CHECK: smladxhi r2, r3, r5, r8 @ encoding: [0x23,0xfb,0x15,0x82]
@------------------------------------------------------------------------------
@ SMLAL
@------------------------------------------------------------------------------
smlal r2, r3, r5, r8
it eq
smlaleq r2, r3, r5, r8
@ CHECK: smlal r2, r3, r5, r8 @ encoding: [0xc5,0xfb,0x08,0x23]
@ CHECK: it eq @ encoding: [0x08,0xbf]
@ CHECK: smlaleq r2, r3, r5, r8 @ encoding: [0xc5,0xfb,0x08,0x23]
@------------------------------------------------------------------------------
@ SUB (register)
@------------------------------------------------------------------------------