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

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

Issue 619903005: fix imul(reg, op, imm) emission on x64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/disasm-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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 __ decq(rdx); 177 __ decq(rdx);
178 __ cdq(); 178 __ cdq();
179 179
180 __ nop(); 180 __ nop();
181 __ idivq(rdx); 181 __ idivq(rdx);
182 __ mul(rdx); 182 __ mul(rdx);
183 __ negq(rdx); 183 __ negq(rdx);
184 __ notq(rdx); 184 __ notq(rdx);
185 __ testq(Operand(rbx, rcx, times_4, 10000), rdx); 185 __ testq(Operand(rbx, rcx, times_4, 10000), rdx);
186 186
187 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000));
188 __ imulq(rdx, rcx, Immediate(12)); 187 __ imulq(rdx, rcx, Immediate(12));
189 __ imulq(rdx, rcx, Immediate(1000)); 188 __ imulq(rdx, rcx, Immediate(1000));
189 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000));
190 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000), Immediate(12));
190 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000), Immediate(1000)); 191 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000), Immediate(1000));
192 __ imull(r15, rcx, Immediate(12));
193 __ imull(r15, rcx, Immediate(1000));
194 __ imull(r15, Operand(rbx, rcx, times_4, 10000));
195 __ imull(r15, Operand(rbx, rcx, times_4, 10000), Immediate(12));
196 __ imull(r15, Operand(rbx, rcx, times_4, 10000), Immediate(1000));
191 197
192 __ incq(rdx); 198 __ incq(rdx);
193 __ incq(Operand(rbx, rcx, times_4, 10000)); 199 __ incq(Operand(rbx, rcx, times_4, 10000));
194 __ pushq(Operand(rbx, rcx, times_4, 10000)); 200 __ pushq(Operand(rbx, rcx, times_4, 10000));
195 __ popq(Operand(rbx, rcx, times_4, 10000)); 201 __ popq(Operand(rbx, rcx, times_4, 10000));
196 // TODO(mstarzinger): The following is protected. 202 // TODO(mstarzinger): The following is protected.
197 // __ jmp(Operand(rbx, rcx, times_4, 10000)); 203 // __ jmp(Operand(rbx, rcx, times_4, 10000));
198 204
199 __ leaq(rdx, Operand(rbx, rcx, times_4, 10000)); 205 __ leaq(rdx, Operand(rbx, rcx, times_4, 10000));
200 __ orq(rdx, Immediate(12345)); 206 __ orq(rdx, Immediate(12345));
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 #ifdef OBJECT_PRINT 473 #ifdef OBJECT_PRINT
468 OFStream os(stdout); 474 OFStream os(stdout);
469 code->Print(os); 475 code->Print(os);
470 byte* begin = code->instruction_start(); 476 byte* begin = code->instruction_start();
471 byte* end = begin + code->instruction_size(); 477 byte* end = begin + code->instruction_size();
472 disasm::Disassembler::Disassemble(stdout, begin, end); 478 disasm::Disassembler::Disassemble(stdout, begin, end);
473 #endif 479 #endif
474 } 480 }
475 481
476 #undef __ 482 #undef __
OLDNEW
« no previous file with comments | « src/x64/disasm-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698