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

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

Issue 2717423003: Revert of Add several SIMD opcodes to IA32 (Closed)
Patch Set: Created 3 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/v8.gyp ('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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 __ psllq(xmm0, 17); 461 __ psllq(xmm0, 17);
462 __ psllq(xmm0, xmm1); 462 __ psllq(xmm0, xmm1);
463 __ psrlq(xmm0, 17); 463 __ psrlq(xmm0, 17);
464 __ psrlq(xmm0, xmm1); 464 __ psrlq(xmm0, xmm1);
465 __ por(xmm0, xmm1); 465 __ por(xmm0, xmm1);
466 466
467 __ pcmpeqd(xmm1, xmm0); 467 __ pcmpeqd(xmm1, xmm0);
468 468
469 __ punpckldq(xmm1, xmm6); 469 __ punpckldq(xmm1, xmm6);
470 __ punpckhdq(xmm7, xmm5); 470 __ punpckhdq(xmm7, xmm5);
471
472 #define EMIT_SSE2_INSTR(instruction, notUsed1, notUsed2, notUsed3) \
473 __ instruction(xmm5, xmm1); \
474 __ instruction(xmm5, Operand(edx, 4));
475
476 SSE2_INSTRUCTION_LIST(EMIT_SSE2_INSTR)
477 #undef EMIT_SSE2_INSTR
478 } 471 }
479 472
480 // cmov. 473 // cmov.
481 { 474 {
482 __ cmov(overflow, eax, Operand(eax, 0)); 475 __ cmov(overflow, eax, Operand(eax, 0));
483 __ cmov(no_overflow, eax, Operand(eax, 1)); 476 __ cmov(no_overflow, eax, Operand(eax, 1));
484 __ cmov(below, eax, Operand(eax, 2)); 477 __ cmov(below, eax, Operand(eax, 2));
485 __ cmov(above_equal, eax, Operand(eax, 3)); 478 __ cmov(above_equal, eax, Operand(eax, 3));
486 __ cmov(equal, eax, Operand(ebx, 0)); 479 __ cmov(equal, eax, Operand(ebx, 0));
487 __ cmov(not_equal, eax, Operand(ebx, 1)); 480 __ cmov(not_equal, eax, Operand(ebx, 1));
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 531
539 __ vandps(xmm0, xmm1, xmm2); 532 __ vandps(xmm0, xmm1, xmm2);
540 __ vandps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 533 __ vandps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
541 __ vxorps(xmm0, xmm1, xmm2); 534 __ vxorps(xmm0, xmm1, xmm2);
542 __ vxorps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 535 __ vxorps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
543 536
544 __ vandpd(xmm0, xmm1, xmm2); 537 __ vandpd(xmm0, xmm1, xmm2);
545 __ vandpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 538 __ vandpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
546 __ vxorpd(xmm0, xmm1, xmm2); 539 __ vxorpd(xmm0, xmm1, xmm2);
547 __ vxorpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 540 __ vxorpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
548
549 #define EMIT_SSE2_AVXINSTR(instruction, notUsed1, notUsed2, notUsed3) \
550 __ v##instruction(xmm7, xmm5, xmm1); \
551 __ v##instruction(xmm7, xmm5, Operand(edx, 4));
552
553 SSE2_INSTRUCTION_LIST(EMIT_SSE2_AVXINSTR)
554 #undef EMIT_SSE2_AVXINSTR
555 } 541 }
556 } 542 }
557 543
558 // FMA3 instruction 544 // FMA3 instruction
559 { 545 {
560 if (CpuFeatures::IsSupported(FMA3)) { 546 if (CpuFeatures::IsSupported(FMA3)) {
561 CpuFeatureScope scope(&assm, FMA3); 547 CpuFeatureScope scope(&assm, FMA3);
562 __ vfmadd132sd(xmm0, xmm1, xmm2); 548 __ vfmadd132sd(xmm0, xmm1, xmm2);
563 __ vfmadd132sd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 549 __ vfmadd132sd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
564 __ vfmadd213sd(xmm0, xmm1, xmm2); 550 __ vfmadd213sd(xmm0, xmm1, xmm2);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 #ifdef OBJECT_PRINT 704 #ifdef OBJECT_PRINT
719 OFStream os(stdout); 705 OFStream os(stdout);
720 code->Print(os); 706 code->Print(os);
721 byte* begin = code->instruction_start(); 707 byte* begin = code->instruction_start();
722 byte* end = begin + code->instruction_size(); 708 byte* end = begin + code->instruction_size();
723 disasm::Disassembler::Disassemble(stdout, begin, end); 709 disasm::Disassembler::Disassemble(stdout, begin, end);
724 #endif 710 #endif
725 } 711 }
726 712
727 #undef __ 713 #undef __
OLDNEW
« no previous file with comments | « src/v8.gyp ('k') | test/cctest/wasm/test-run-wasm-simd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698