Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(897)

Unified Diff: unittest/AssemblerX8664/ControlFlow.cpp

Issue 1428443002: Enhance address mode recovery (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Streamline absolute addressing support (rip-relative on x64) Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: unittest/AssemblerX8664/ControlFlow.cpp
diff --git a/unittest/AssemblerX8664/ControlFlow.cpp b/unittest/AssemblerX8664/ControlFlow.cpp
index 704f6fdb7d1fea6c7410c7eef5c77038d603f46e..30a0a5233edf0397a69a4c2c45d7ff986e0aaa9a 100644
--- a/unittest/AssemblerX8664/ControlFlow.cpp
+++ b/unittest/AssemblerX8664/ControlFlow.cpp
@@ -158,6 +158,7 @@ TEST_F(AssemblerX8664Test, CallReg) {
TEST_F(AssemblerX8664Test, CallAddr) {
#define TestImpl(Dst, Src) \
do { \
+ static constexpr AssemblerFixup *Fixup = nullptr; \
const uint32_t T0 = allocateQword(); \
const uint64_t V0 = 0xA0C0FFEEBEEFFEEFull; \
__ call(Immediate(16)); \
@@ -169,7 +170,7 @@ TEST_F(AssemblerX8664Test, CallAddr) {
} \
__ mov(IceType_i64, Encoded_GPR_##Dst##q(), dwordAddress(T0)); \
__ mov(IceType_i64, Encoded_GPR_##Src##q(), Encoded_GPR_rsp()); \
- __ call(Address(Encoded_GPR_##Src##q(), 0)); \
+ __ call(Address(Encoded_GPR_##Src##q(), 0, Fixup)); \
__ popl(Encoded_GPR_##Src##q()); \
\
AssembledTest test = assemble(); \

Powered by Google App Engine
This is Rietveld 408576698