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

Side by Side Diff: unittest/AssemblerX8632/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, 1 month 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 unified diff | Download patch
OLDNEW
1 //===- subzero/unittest/AssemblerX8632/ControleFlow.cpp -------------------===// 1 //===- subzero/unittest/AssemblerX8632/ControleFlow.cpp -------------------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 #include "IceAssemblerX8632.h" 9 #include "IceAssemblerX8632.h"
10 #include "AssemblerX8632/TestUtil.h" 10 #include "AssemblerX8632/TestUtil.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 __ hlt(); 126 __ hlt();
127 __ hlt(); 127 __ hlt();
128 __ hlt(); 128 __ hlt();
129 __ hlt(); 129 __ hlt();
130 __ hlt(); 130 __ hlt();
131 __ hlt(); 131 __ hlt();
132 __ hlt(); 132 __ hlt();
133 __ hlt(); 133 __ hlt();
134 __ hlt(); 134 __ hlt();
135 __ mov(IceType_i32, GPRRegister::Encoded_Reg_eax, Immediate(0xf1f2f300)); 135 __ mov(IceType_i32, GPRRegister::Encoded_Reg_eax, Immediate(0xf1f2f300));
136 __ call(Address(GPRRegister::Encoded_Reg_esp, 0)); 136 static constexpr AssemblerFixup *Fixup = nullptr;
Jim Stichnoth 2015/10/27 22:19:52 Is there some place you could put a single instanc
sehr 2015/10/27 23:24:05 Added a NoFixup constexpr to the interface of Asse
137 __ call(Address(GPRRegister::Encoded_Reg_esp, 0, Fixup));
137 __ popl(GPRRegister::Encoded_Reg_edx); 138 __ popl(GPRRegister::Encoded_Reg_edx);
138 139
139 AssembledTest test = assemble(); 140 AssembledTest test = assemble();
140 141
141 test.run(); 142 test.run();
142 143
143 EXPECT_EQ(0xf1f2f3f4, test.eax()); 144 EXPECT_EQ(0xf1f2f3f4, test.eax());
144 } 145 }
145 146
146 TEST_F(AssemblerX8632Test, Jmp) { 147 TEST_F(AssemblerX8632Test, Jmp) {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 TestImplReg(edi); 236 TestImplReg(edi);
236 237
237 #undef TestImplReg 238 #undef TestImplReg
238 #undef TestImplAddr 239 #undef TestImplAddr
239 } 240 }
240 241
241 } // end of anonymous namespace 242 } // end of anonymous namespace
242 } // end of namespace Test 243 } // end of namespace Test
243 } // end of namespace X8632 244 } // end of namespace X8632
244 } // end of namespace Ice 245 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698