mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
McARM: Fill in GetMnemonicAcceptInfo().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123253 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e6e5fbb671
commit
eb9f3f91c0
@ -937,9 +937,24 @@ static StringRef SplitMnemonicAndCC(StringRef Mnemonic,
|
||||
// FIXME: It would be nice to autogen this.
|
||||
static void GetMnemonicAcceptInfo(StringRef Mnemonic, bool &CanAcceptCarrySet,
|
||||
bool &CanAcceptPredicationCode) {
|
||||
CanAcceptCarrySet = false;
|
||||
if (Mnemonic == "and" || Mnemonic == "lsl" || Mnemonic == "lsr" ||
|
||||
Mnemonic == "rrx" || Mnemonic == "ror" || Mnemonic == "sub" ||
|
||||
Mnemonic == "smull" || Mnemonic == "add" || Mnemonic == "adc" ||
|
||||
Mnemonic == "mul" || Mnemonic == "bic" || Mnemonic == "asr" ||
|
||||
Mnemonic == "umlal" || Mnemonic == "orr" || Mnemonic == "mov" ||
|
||||
Mnemonic == "rsb" || Mnemonic == "rsc" || Mnemonic == "orn" ||
|
||||
Mnemonic == "sbc" || Mnemonic == "mla" || Mnemonic == "umull" ||
|
||||
Mnemonic == "eor" || Mnemonic == "smlal" || Mnemonic == "mvn") {
|
||||
CanAcceptCarrySet = true;
|
||||
} else {
|
||||
CanAcceptCarrySet = false;
|
||||
}
|
||||
|
||||
if (Mnemonic == "trap") {
|
||||
if (Mnemonic == "cbnz" || Mnemonic == "setend" || Mnemonic == "dmb" ||
|
||||
Mnemonic == "cps" || Mnemonic == "mcr2" || Mnemonic == "it" ||
|
||||
Mnemonic == "mcrr2" || Mnemonic == "cbz" || Mnemonic == "cdp2" ||
|
||||
Mnemonic == "trap" || Mnemonic == "mrc2" || Mnemonic == "mrrc2" ||
|
||||
Mnemonic == "dsb" || Mnemonic == "movs") {
|
||||
CanAcceptPredicationCode = false;
|
||||
} else {
|
||||
CanAcceptPredicationCode = true;
|
||||
|
Loading…
Reference in New Issue
Block a user