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

Side by Side Diff: test/cctest/test-disasm-x64.cc

Issue 196893003: Introduce addp, idivp, imulp and subp for x64 port (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« src/x64/assembler-x64.h ('K') | « test/cctest/test-assembler-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 __ nop(); 105 __ nop();
106 __ cpuid(); 106 __ cpuid();
107 __ movsxbq(rdx, Operand(rcx, 0)); 107 __ movsxbq(rdx, Operand(rcx, 0));
108 __ movsxwq(rdx, Operand(rcx, 0)); 108 __ movsxwq(rdx, Operand(rcx, 0));
109 __ movzxbl(rdx, Operand(rcx, 0)); 109 __ movzxbl(rdx, Operand(rcx, 0));
110 __ movzxwl(rdx, Operand(rcx, 0)); 110 __ movzxwl(rdx, Operand(rcx, 0));
111 __ movzxbq(rdx, Operand(rcx, 0)); 111 __ movzxbq(rdx, Operand(rcx, 0));
112 __ movzxwq(rdx, Operand(rcx, 0)); 112 __ movzxwq(rdx, Operand(rcx, 0));
113 113
114 __ nop(); 114 __ nop();
115 __ imul(rdx, rcx); 115 __ imulq(rdx, rcx);
116 __ shld(rdx, rcx); 116 __ shld(rdx, rcx);
117 __ shrd(rdx, rcx); 117 __ shrd(rdx, rcx);
118 __ bts(Operand(rdx, 0), rcx); 118 __ bts(Operand(rdx, 0), rcx);
119 __ bts(Operand(rbx, rcx, times_4, 0), rcx); 119 __ bts(Operand(rbx, rcx, times_4, 0), rcx);
120 __ nop(); 120 __ nop();
121 __ pushq(Immediate(12)); 121 __ pushq(Immediate(12));
122 __ pushq(Immediate(23456)); 122 __ pushq(Immediate(23456));
123 __ pushq(rcx); 123 __ pushq(rcx);
124 __ pushq(rsi); 124 __ pushq(rsi);
125 __ pushq(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 125 __ pushq(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
(...skipping 29 matching lines...) Expand all
155 __ decq(rdx); 155 __ decq(rdx);
156 __ cdq(); 156 __ cdq();
157 157
158 __ nop(); 158 __ nop();
159 __ idivq(rdx); 159 __ idivq(rdx);
160 __ mul(rdx); 160 __ mul(rdx);
161 __ neg(rdx); 161 __ neg(rdx);
162 __ not_(rdx); 162 __ not_(rdx);
163 __ testq(Operand(rbx, rcx, times_4, 10000), rdx); 163 __ testq(Operand(rbx, rcx, times_4, 10000), rdx);
164 164
165 __ imul(rdx, Operand(rbx, rcx, times_4, 10000)); 165 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000));
166 __ imul(rdx, rcx, Immediate(12)); 166 __ imulq(rdx, rcx, Immediate(12));
167 __ imul(rdx, rcx, Immediate(1000)); 167 __ imulq(rdx, rcx, Immediate(1000));
168 168
169 __ incq(rdx); 169 __ incq(rdx);
170 __ incq(Operand(rbx, rcx, times_4, 10000)); 170 __ incq(Operand(rbx, rcx, times_4, 10000));
171 __ pushq(Operand(rbx, rcx, times_4, 10000)); 171 __ pushq(Operand(rbx, rcx, times_4, 10000));
172 __ popq(Operand(rbx, rcx, times_4, 10000)); 172 __ popq(Operand(rbx, rcx, times_4, 10000));
173 // TODO(mstarzinger): The following is protected. 173 // TODO(mstarzinger): The following is protected.
174 // __ jmp(Operand(rbx, rcx, times_4, 10000)); 174 // __ jmp(Operand(rbx, rcx, times_4, 10000));
175 175
176 __ lea(rdx, Operand(rbx, rcx, times_4, 10000)); 176 __ lea(rdx, Operand(rbx, rcx, times_4, 10000));
177 __ or_(rdx, Immediate(12345)); 177 __ or_(rdx, Immediate(12345));
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 __ cmpq(Operand(rdx, rcx, times_4, 10000), Immediate(12)); 209 __ cmpq(Operand(rdx, rcx, times_4, 10000), Immediate(12));
210 __ cmpb(rax, Immediate(100)); 210 __ cmpb(rax, Immediate(100));
211 211
212 __ or_(rbx, Immediate(12345)); 212 __ or_(rbx, Immediate(12345));
213 213
214 __ subq(rbx, Immediate(12)); 214 __ subq(rbx, Immediate(12));
215 __ subq(Operand(rdx, rcx, times_4, 10000), Immediate(12)); 215 __ subq(Operand(rdx, rcx, times_4, 10000), Immediate(12));
216 216
217 __ xor_(rbx, Immediate(12345)); 217 __ xor_(rbx, Immediate(12345));
218 218
219 __ imul(rdx, rcx, Immediate(12)); 219 __ imulq(rdx, rcx, Immediate(12));
220 __ imul(rdx, rcx, Immediate(1000)); 220 __ imulq(rdx, rcx, Immediate(1000));
221 221
222 __ cld(); 222 __ cld();
223 223
224 __ subq(rdx, Operand(rbx, rcx, times_4, 10000)); 224 __ subq(rdx, Operand(rbx, rcx, times_4, 10000));
225 __ subq(rdx, rbx); 225 __ subq(rdx, rbx);
226 226
227 __ testq(rdx, Immediate(12345)); 227 __ testq(rdx, Immediate(12345));
228 __ testq(Operand(rbx, rcx, times_8, 10000), rdx); 228 __ testq(Operand(rbx, rcx, times_8, 10000), rdx);
229 __ testb(Operand(rcx, rbx, times_2, 1000), rdx); 229 __ testb(Operand(rcx, rbx, times_2, 1000), rdx);
230 __ testb(Operand(rax, -20), Immediate(0x9A)); 230 __ testb(Operand(rax, -20), Immediate(0x9A));
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 CHECK(code->IsCode()); 436 CHECK(code->IsCode());
437 #ifdef OBJECT_PRINT 437 #ifdef OBJECT_PRINT
438 Code::cast(code)->Print(); 438 Code::cast(code)->Print();
439 byte* begin = Code::cast(code)->instruction_start(); 439 byte* begin = Code::cast(code)->instruction_start();
440 byte* end = begin + Code::cast(code)->instruction_size(); 440 byte* end = begin + Code::cast(code)->instruction_size();
441 disasm::Disassembler::Disassemble(stdout, begin, end); 441 disasm::Disassembler::Disassemble(stdout, begin, end);
442 #endif 442 #endif
443 } 443 }
444 444
445 #undef __ 445 #undef __
OLDNEW
« src/x64/assembler-x64.h ('K') | « test/cctest/test-assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698