mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
simplify the hacks around jrcxz.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -622,9 +622,6 @@ ParseInstruction(StringRef Name, SMLoc NameLoc,
|
|||||||
// FIXME: We can do jcxz/jecxz, we just don't have the encoding right yet.
|
// FIXME: We can do jcxz/jecxz, we just don't have the encoding right yet.
|
||||||
if (Name == "jcxz" || Name == "jecxz")
|
if (Name == "jcxz" || Name == "jecxz")
|
||||||
return Error(NameLoc, Name + " cannot be encoded in 64-bit mode");
|
return Error(NameLoc, Name + " cannot be encoded in 64-bit mode");
|
||||||
} else {
|
|
||||||
if (Name == "jrcxz")
|
|
||||||
return Error(NameLoc, "jrcxz cannot be encoded in 32-bit mode");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Hack to recognize "sal..." and "rep..." for now. We need a way to
|
// FIXME: Hack to recognize "sal..." and "rep..." for now. We need a way to
|
||||||
@@ -652,7 +649,7 @@ ParseInstruction(StringRef Name, SMLoc NameLoc,
|
|||||||
// jecxz requires an AdSize prefix but jecxz does not have a prefix in
|
// jecxz requires an AdSize prefix but jecxz does not have a prefix in
|
||||||
// 32-bit mode.
|
// 32-bit mode.
|
||||||
.Case("jecxz", "jcxz")
|
.Case("jecxz", "jcxz")
|
||||||
.Case("jrcxz", "jcxz")
|
.Case("jrcxz", Is64Bit ? "jcxz" : "jrcxz")
|
||||||
.Case("jna", "jbe")
|
.Case("jna", "jbe")
|
||||||
.Case("jnae", "jb")
|
.Case("jnae", "jb")
|
||||||
.Case("jnb", "jae")
|
.Case("jnb", "jae")
|
||||||
|
Reference in New Issue
Block a user