mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
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:
parent
cc32efd592
commit
837fc5e9d5
@ -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;
|
||||
|
@ -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)
|
||||
@------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user