summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-01-07 13:00:39 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2015-01-07 13:00:39 -0600
commitd2eaba5cb7d528ff6c17ce979b61bf32f72d4ddb (patch)
treeec359f9abf77c5de8aba146aa2ab8902de3b5aed
parent8dba84dd7c114ba0d63b8a6fc7ed93c3c2d85cff (diff)
[AArch64] Minor MOVI2R improvement.
Use the ZR for both input arguments in the case the immediate is the maximum immediate value. This allows it to be aliased to MVN when disassembling.
-rw-r--r--Source/Core/Common/Arm64Emitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Arm64Emitter.cpp b/Source/Core/Common/Arm64Emitter.cpp
index 00ed7af5cf..98db3de011 100644
--- a/Source/Core/Common/Arm64Emitter.cpp
+++ b/Source/Core/Common/Arm64Emitter.cpp
@@ -1433,7 +1433,7 @@ void ARM64XEmitter::MOVI2R(ARM64Reg Rd, u64 imm, bool optimize)
// Max unsigned value
// Set to ~ZR
ARM64Reg ZR = Is64Bit(Rd) ? SP : WSP;
- ORN(Rd, Rd, ZR, ArithOption(ZR, ST_LSL, 0));
+ ORN(Rd, ZR, ZR, ArithOption(ZR, ST_LSL, 0));
return;
}