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

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

Issue 1768233002: [wasm] Int64Lowering of I64ShrU and I64ShrS on ia32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 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
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | test/cctest/wasm/test-run-wasm-64.cc » ('j') | 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 __ cpuid(); 114 __ cpuid();
115 __ movsx_b(edx, ecx); 115 __ movsx_b(edx, ecx);
116 __ movsx_w(edx, ecx); 116 __ movsx_w(edx, ecx);
117 __ movzx_b(edx, ecx); 117 __ movzx_b(edx, ecx);
118 __ movzx_w(edx, ecx); 118 __ movzx_w(edx, ecx);
119 119
120 __ nop(); 120 __ nop();
121 __ imul(edx, ecx); 121 __ imul(edx, ecx);
122 __ shld(edx, ecx, 10); 122 __ shld(edx, ecx, 10);
123 __ shld_cl(edx, ecx); 123 __ shld_cl(edx, ecx);
124 __ shrd(edx, ecx); 124 __ shrd(edx, ecx, 10);
125 __ shrd_cl(edx, ecx);
125 __ bts(edx, ecx); 126 __ bts(edx, ecx);
126 __ bts(Operand(ebx, ecx, times_4, 0), ecx); 127 __ bts(Operand(ebx, ecx, times_4, 0), ecx);
127 __ nop(); 128 __ nop();
128 __ pushad(); 129 __ pushad();
129 __ popad(); 130 __ popad();
130 __ pushfd(); 131 __ pushfd();
131 __ popfd(); 132 __ popfd();
132 __ push(Immediate(12)); 133 __ push(Immediate(12));
133 __ push(Immediate(23456)); 134 __ push(Immediate(23456));
134 __ push(ecx); 135 __ push(ecx);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 __ sar(Operand(ebx, ecx, times_4, 10000), 1); 215 __ sar(Operand(ebx, ecx, times_4, 10000), 1);
215 __ sar(Operand(ebx, ecx, times_4, 10000), 6); 216 __ sar(Operand(ebx, ecx, times_4, 10000), 6);
216 __ sar_cl(Operand(ebx, ecx, times_4, 10000)); 217 __ sar_cl(Operand(ebx, ecx, times_4, 10000));
217 __ sbb(edx, Operand(ebx, ecx, times_4, 10000)); 218 __ sbb(edx, Operand(ebx, ecx, times_4, 10000));
218 __ shl(edx, 1); 219 __ shl(edx, 1);
219 __ shl(edx, 6); 220 __ shl(edx, 6);
220 __ shl_cl(edx); 221 __ shl_cl(edx);
221 __ shl(Operand(ebx, ecx, times_4, 10000), 1); 222 __ shl(Operand(ebx, ecx, times_4, 10000), 1);
222 __ shl(Operand(ebx, ecx, times_4, 10000), 6); 223 __ shl(Operand(ebx, ecx, times_4, 10000), 6);
223 __ shl_cl(Operand(ebx, ecx, times_4, 10000)); 224 __ shl_cl(Operand(ebx, ecx, times_4, 10000));
224 __ shrd(edx, Operand(ebx, ecx, times_4, 10000)); 225 __ shrd_cl(Operand(ebx, ecx, times_4, 10000), edx);
225 __ shr(edx, 1); 226 __ shr(edx, 1);
226 __ shr(edx, 7); 227 __ shr(edx, 7);
227 __ shr_cl(edx); 228 __ shr_cl(edx);
228 __ shr(Operand(ebx, ecx, times_4, 10000), 1); 229 __ shr(Operand(ebx, ecx, times_4, 10000), 1);
229 __ shr(Operand(ebx, ecx, times_4, 10000), 6); 230 __ shr(Operand(ebx, ecx, times_4, 10000), 6);
230 __ shr_cl(Operand(ebx, ecx, times_4, 10000)); 231 __ shr_cl(Operand(ebx, ecx, times_4, 10000));
231 232
232 233
233 // Immediates 234 // Immediates
234 235
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 #ifdef OBJECT_PRINT 685 #ifdef OBJECT_PRINT
685 OFStream os(stdout); 686 OFStream os(stdout);
686 code->Print(os); 687 code->Print(os);
687 byte* begin = code->instruction_start(); 688 byte* begin = code->instruction_start();
688 byte* end = begin + code->instruction_size(); 689 byte* end = begin + code->instruction_size();
689 disasm::Disassembler::Disassemble(stdout, begin, end); 690 disasm::Disassembler::Disassemble(stdout, begin, end);
690 #endif 691 #endif
691 } 692 }
692 693
693 #undef __ 694 #undef __
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | test/cctest/wasm/test-run-wasm-64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698