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

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

Issue 615223005: [turbofan] support all shift operands 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 __ movsxwq(rdx, Operand(rcx, 0)); 110 __ movsxwq(rdx, Operand(rcx, 0));
111 __ movzxbl(rdx, Operand(rcx, 0)); 111 __ movzxbl(rdx, Operand(rcx, 0));
112 __ movzxwl(rdx, Operand(rcx, 0)); 112 __ movzxwl(rdx, Operand(rcx, 0));
113 __ movzxbq(rdx, Operand(rcx, 0)); 113 __ movzxbq(rdx, Operand(rcx, 0));
114 __ movzxwq(rdx, Operand(rcx, 0)); 114 __ movzxwq(rdx, Operand(rcx, 0));
115 115
116 __ nop(); 116 __ nop();
117 __ imulq(rdx, rcx); 117 __ imulq(rdx, rcx);
118 __ shld(rdx, rcx); 118 __ shld(rdx, rcx);
119 __ shrd(rdx, rcx); 119 __ shrd(rdx, rcx);
120 __ shlq(Operand(rdi, rax, times_4, 100), Immediate(1));
121 __ shlq(Operand(rdi, rax, times_4, 100), Immediate(6));
122 __ shlq(Operand(r15, 0), Immediate(1));
123 __ shlq(Operand(r15, 0), Immediate(6));
124 __ shlq_cl(Operand(r15, 0));
125 __ shlq_cl(Operand(r15, 0));
126 __ shlq_cl(Operand(rdi, rax, times_4, 100));
127 __ shlq_cl(Operand(rdi, rax, times_4, 100));
128 __ shlq(rdx, Immediate(1));
129 __ shlq(rdx, Immediate(6));
130 __ shll(Operand(rdi, rax, times_4, 100), Immediate(1));
131 __ shll(Operand(rdi, rax, times_4, 100), Immediate(6));
132 __ shll(Operand(r15, 0), Immediate(1));
133 __ shll(Operand(r15, 0), Immediate(6));
134 __ shll_cl(Operand(r15, 0));
135 __ shll_cl(Operand(r15, 0));
136 __ shll_cl(Operand(rdi, rax, times_4, 100));
137 __ shll_cl(Operand(rdi, rax, times_4, 100));
138 __ shll(rdx, Immediate(1));
139 __ shll(rdx, Immediate(6));
120 __ bts(Operand(rdx, 0), rcx); 140 __ bts(Operand(rdx, 0), rcx);
121 __ bts(Operand(rbx, rcx, times_4, 0), rcx); 141 __ bts(Operand(rbx, rcx, times_4, 0), rcx);
122 __ nop(); 142 __ nop();
123 __ pushq(Immediate(12)); 143 __ pushq(Immediate(12));
124 __ pushq(Immediate(23456)); 144 __ pushq(Immediate(23456));
125 __ pushq(rcx); 145 __ pushq(rcx);
126 __ pushq(rsi); 146 __ pushq(rsi);
127 __ pushq(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 147 __ pushq(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
128 __ pushq(Operand(rbx, rcx, times_4, 0)); 148 __ pushq(Operand(rbx, rcx, times_4, 0));
129 __ pushq(Operand(rbx, rcx, times_4, 0)); 149 __ pushq(Operand(rbx, rcx, times_4, 0));
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 #ifdef OBJECT_PRINT 467 #ifdef OBJECT_PRINT
448 OFStream os(stdout); 468 OFStream os(stdout);
449 code->Print(os); 469 code->Print(os);
450 byte* begin = code->instruction_start(); 470 byte* begin = code->instruction_start();
451 byte* end = begin + code->instruction_size(); 471 byte* end = begin + code->instruction_size();
452 disasm::Disassembler::Disassemble(stdout, begin, end); 472 disasm::Disassembler::Disassemble(stdout, begin, end);
453 #endif 473 #endif
454 } 474 }
455 475
456 #undef __ 476 #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