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

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

Issue 2767983002: [wasm] Implement wasm x64 I16x8 Ops (Closed)
Patch Set: Bill's review Created 3 years, 8 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/x64/disasm-x64.cc ('k') | test/cctest/wasm/test-run-wasm-simd.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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 __ psrld(xmm0, 6); 462 __ psrld(xmm0, 6);
463 __ psllq(xmm0, 6); 463 __ psllq(xmm0, 6);
464 __ psrlq(xmm0, 6); 464 __ psrlq(xmm0, 6);
465 465
466 __ pcmpeqd(xmm1, xmm0); 466 __ pcmpeqd(xmm1, xmm0);
467 467
468 __ punpckldq(xmm1, xmm11); 468 __ punpckldq(xmm1, xmm11);
469 __ punpckldq(xmm5, Operand(rdx, 4)); 469 __ punpckldq(xmm5, Operand(rdx, 4));
470 __ punpckhdq(xmm8, xmm15); 470 __ punpckhdq(xmm8, xmm15);
471 471
472 __ pshuflw(xmm2, xmm4, 3);
473 __ pshufhw(xmm1, xmm9, 6);
474
472 #define EMIT_SSE2_INSTR(instruction, notUsed1, notUsed2, notUsed3) \ 475 #define EMIT_SSE2_INSTR(instruction, notUsed1, notUsed2, notUsed3) \
473 __ instruction(xmm5, xmm1); \ 476 __ instruction(xmm5, xmm1); \
474 __ instruction(xmm5, Operand(rdx, 4)); 477 __ instruction(xmm5, Operand(rdx, 4));
475 478
476 SSE2_INSTRUCTION_LIST(EMIT_SSE2_INSTR) 479 SSE2_INSTRUCTION_LIST(EMIT_SSE2_INSTR)
477 #undef EMIT_SSE2_INSTR 480 #undef EMIT_SSE2_INSTR
478 } 481 }
479 482
480 // cmov. 483 // cmov.
481 { 484 {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 SSSE3_INSTRUCTION_LIST(EMIT_SSE34_INSTR) 517 SSSE3_INSTRUCTION_LIST(EMIT_SSE34_INSTR)
515 } 518 }
516 } 519 }
517 520
518 { 521 {
519 if (CpuFeatures::IsSupported(SSE4_1)) { 522 if (CpuFeatures::IsSupported(SSE4_1)) {
520 CpuFeatureScope scope(&assm, SSE4_1); 523 CpuFeatureScope scope(&assm, SSE4_1);
521 __ insertps(xmm5, xmm1, 123); 524 __ insertps(xmm5, xmm1, 123);
522 __ extractps(rax, xmm1, 0); 525 __ extractps(rax, xmm1, 0);
523 __ pextrw(rbx, xmm2, 1); 526 __ pextrw(rbx, xmm2, 1);
527 __ pinsrw(xmm2, rcx, 1);
524 __ pextrd(rbx, xmm15, 0); 528 __ pextrd(rbx, xmm15, 0);
525 __ pextrd(r12, xmm0, 1); 529 __ pextrd(r12, xmm0, 1);
526 __ pinsrd(xmm9, r9, 0); 530 __ pinsrd(xmm9, r9, 0);
527 __ pinsrd(xmm5, Operand(rax, 4), 1); 531 __ pinsrd(xmm5, Operand(rax, 4), 1);
528 532
529 __ cmpps(xmm5, xmm1, 1); 533 __ cmpps(xmm5, xmm1, 1);
530 __ cmpps(xmm5, Operand(rbx, rcx, times_4, 10000), 1); 534 __ cmpps(xmm5, Operand(rbx, rcx, times_4, 10000), 1);
531 __ cmpeqps(xmm5, xmm1); 535 __ cmpeqps(xmm5, xmm1);
532 __ cmpeqps(xmm5, Operand(rbx, rcx, times_4, 10000)); 536 __ cmpeqps(xmm5, Operand(rbx, rcx, times_4, 10000));
533 __ cmpltps(xmm5, xmm1); 537 __ cmpltps(xmm5, xmm1);
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 #ifdef OBJECT_PRINT 951 #ifdef OBJECT_PRINT
948 OFStream os(stdout); 952 OFStream os(stdout);
949 code->Print(os); 953 code->Print(os);
950 byte* begin = code->instruction_start(); 954 byte* begin = code->instruction_start();
951 byte* end = begin + code->instruction_size(); 955 byte* end = begin + code->instruction_size();
952 disasm::Disassembler::Disassemble(stdout, begin, end); 956 disasm::Disassembler::Disassemble(stdout, begin, end);
953 #endif 957 #endif
954 } 958 }
955 959
956 #undef __ 960 #undef __
OLDNEW
« no previous file with comments | « src/x64/disasm-x64.cc ('k') | test/cctest/wasm/test-run-wasm-simd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698