mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Add support for encoding the HLE XACQUIRE and XRELEASE prefixes.
For decoding, keep the current behavior of always decoding these as their REP versions. In the future, this could be improved to recognize the cases where these behave as XACQUIRE and XRELEASE and decode them as such. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184207 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -461,6 +461,12 @@ RecognizableInstr::filter_ret RecognizableInstr::filter() const {
|
||||
Name == "VMOVQs64rr")
|
||||
return FILTER_WEAK;
|
||||
|
||||
// XACQUIRE and XRELEASE reuse REPNE and REP respectively.
|
||||
// For now, just prefer the REP versions.
|
||||
if (Name == "XACQUIRE_PREFIX" ||
|
||||
Name == "XRELEASE_PREFIX")
|
||||
return FILTER_WEAK;
|
||||
|
||||
if (HasFROperands && Name.find("MOV") != Name.npos &&
|
||||
((Name.find("2") != Name.npos && Name.find("32") == Name.npos) ||
|
||||
(Name.find("to") != Name.npos)))
|
||||
|
Reference in New Issue
Block a user