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

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

Issue 2765001: Add test_b(Operand, imm8) to ia32 disassembler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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
« no previous file with comments | « src/ia32/disasm-ia32.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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 __ cld(); 237 __ cld();
238 __ rep_movs(); 238 __ rep_movs();
239 __ rep_stos(); 239 __ rep_stos();
240 __ stos(); 240 __ stos();
241 241
242 __ sub(edx, Operand(ebx, ecx, times_4, 10000)); 242 __ sub(edx, Operand(ebx, ecx, times_4, 10000));
243 __ sub(edx, Operand(ebx)); 243 __ sub(edx, Operand(ebx));
244 244
245 __ test(edx, Immediate(12345)); 245 __ test(edx, Immediate(12345));
246 __ test(edx, Operand(ebx, ecx, times_8, 10000)); 246 __ test(edx, Operand(ebx, ecx, times_8, 10000));
247 __ test(Operand(esi, edi, times_1, -20000000), Immediate(300000000));
248 __ test_b(edx, Operand(ecx, ebx, times_2, 1000));
249 __ test_b(Operand(eax, -20), 0x9A);
247 __ nop(); 250 __ nop();
248 251
249 __ xor_(edx, 12345); 252 __ xor_(edx, 12345);
250 __ xor_(edx, Operand(ebx, ecx, times_8, 10000)); 253 __ xor_(edx, Operand(ebx, ecx, times_8, 10000));
251 __ bts(Operand(ebx, ecx, times_8, 10000), edx); 254 __ bts(Operand(ebx, ecx, times_8, 10000), edx);
252 __ hlt(); 255 __ hlt();
253 __ int3(); 256 __ int3();
254 __ ret(0); 257 __ ret(0);
255 __ ret(8); 258 __ ret(8);
256 259
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 CHECK(code->IsCode()); 419 CHECK(code->IsCode());
417 #ifdef DEBUG 420 #ifdef DEBUG
418 Code::cast(code)->Print(); 421 Code::cast(code)->Print();
419 byte* begin = Code::cast(code)->instruction_start(); 422 byte* begin = Code::cast(code)->instruction_start();
420 byte* end = begin + Code::cast(code)->instruction_size(); 423 byte* end = begin + Code::cast(code)->instruction_size();
421 disasm::Disassembler::Disassemble(stdout, begin, end); 424 disasm::Disassembler::Disassemble(stdout, begin, end);
422 #endif 425 #endif
423 } 426 }
424 427
425 #undef __ 428 #undef __
OLDNEW
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698