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

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

Issue 391073: Changes to Intel shift functions... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | Annotate | Revision Log
« src/ia32/assembler-ia32.cc ('K') | « src/x64/stub-cache-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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 __ lea(edx, Operand(ebx, ecx, times_4, 10000)); 187 __ lea(edx, Operand(ebx, ecx, times_4, 10000));
188 __ or_(edx, 12345); 188 __ or_(edx, 12345);
189 __ or_(edx, Operand(ebx, ecx, times_4, 10000)); 189 __ or_(edx, Operand(ebx, ecx, times_4, 10000));
190 190
191 __ nop(); 191 __ nop();
192 192
193 __ rcl(edx, 1); 193 __ rcl(edx, 1);
194 __ rcl(edx, 7); 194 __ rcl(edx, 7);
195 __ sar(edx, 1); 195 __ sar(edx, 1);
196 __ sar(edx, 6); 196 __ sar(edx, 6);
197 __ sar(edx); 197 __ sar_cl(edx);
198 __ sbb(edx, Operand(ebx, ecx, times_4, 10000)); 198 __ sbb(edx, Operand(ebx, ecx, times_4, 10000));
199 __ shld(edx, Operand(ebx, ecx, times_4, 10000)); 199 __ shld(edx, Operand(ebx, ecx, times_4, 10000));
200 __ shl(edx, 1); 200 __ shl(edx, 1);
201 __ shl(edx, 6); 201 __ shl(edx, 6);
202 __ shl(edx); 202 __ shl_cl(edx);
203 __ shrd(edx, Operand(ebx, ecx, times_4, 10000)); 203 __ shrd(edx, Operand(ebx, ecx, times_4, 10000));
204 __ shr(edx, 7); 204 __ shr(edx, 7);
205 __ shr(edx); 205 __ shr_cl(edx);
206 206
207 207
208 // Immediates 208 // Immediates
209 209
210 __ adc(edx, 12345); 210 __ adc(edx, 12345);
211 211
212 __ add(Operand(ebx), Immediate(12)); 212 __ add(Operand(ebx), Immediate(12));
213 __ add(Operand(edx, ecx, times_4, 10000), Immediate(12)); 213 __ add(Operand(edx, ecx, times_4, 10000), Immediate(12));
214 214
215 __ and_(ebx, 12345); 215 __ and_(ebx, 12345);
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 CHECK(code->IsCode()); 399 CHECK(code->IsCode());
400 #ifdef DEBUG 400 #ifdef DEBUG
401 Code::cast(code)->Print(); 401 Code::cast(code)->Print();
402 byte* begin = Code::cast(code)->instruction_start(); 402 byte* begin = Code::cast(code)->instruction_start();
403 byte* end = begin + Code::cast(code)->instruction_size(); 403 byte* end = begin + Code::cast(code)->instruction_size();
404 disasm::Disassembler::Disassemble(stdout, begin, end); 404 disasm::Disassembler::Disassemble(stdout, begin, end);
405 #endif 405 #endif
406 } 406 }
407 407
408 #undef __ 408 #undef __
OLDNEW
« src/ia32/assembler-ia32.cc ('K') | « src/x64/stub-cache-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698