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

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

Issue 974313002: [turbofan] Support for %_DoubleHi, %_DoubleLo and %_ConstructDouble. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed Svens comment. Created 5 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 | « test/cctest/test-disasm-ia32.cc ('k') | test/mjsunit/asm/construct-double.js » ('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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 __ ucomisd(xmm0, xmm1); 439 __ ucomisd(xmm0, xmm1);
440 440
441 __ andpd(xmm0, xmm1); 441 __ andpd(xmm0, xmm1);
442 442
443 __ pslld(xmm0, 6); 443 __ pslld(xmm0, 6);
444 __ psrld(xmm0, 6); 444 __ psrld(xmm0, 6);
445 __ psllq(xmm0, 6); 445 __ psllq(xmm0, 6);
446 __ psrlq(xmm0, 6); 446 __ psrlq(xmm0, 6);
447 447
448 __ pcmpeqd(xmm1, xmm0); 448 __ pcmpeqd(xmm1, xmm0);
449
450 __ punpckldq(xmm1, xmm11);
451 __ punpckhdq(xmm8, xmm15);
449 } 452 }
450 453
451 // cmov. 454 // cmov.
452 { 455 {
453 __ cmovq(overflow, rax, Operand(rax, 0)); 456 __ cmovq(overflow, rax, Operand(rax, 0));
454 __ cmovq(no_overflow, rax, Operand(rax, 1)); 457 __ cmovq(no_overflow, rax, Operand(rax, 1));
455 __ cmovq(below, rax, Operand(rax, 2)); 458 __ cmovq(below, rax, Operand(rax, 2));
456 __ cmovq(above_equal, rax, Operand(rax, 3)); 459 __ cmovq(above_equal, rax, Operand(rax, 3));
457 __ cmovq(equal, rax, Operand(rbx, 0)); 460 __ cmovq(equal, rax, Operand(rbx, 0));
458 __ cmovq(not_equal, rax, Operand(rbx, 1)); 461 __ cmovq(not_equal, rax, Operand(rbx, 1));
459 __ cmovq(below_equal, rax, Operand(rbx, 2)); 462 __ cmovq(below_equal, rax, Operand(rbx, 2));
460 __ cmovq(above, rax, Operand(rbx, 3)); 463 __ cmovq(above, rax, Operand(rbx, 3));
461 __ cmovq(sign, rax, Operand(rcx, 0)); 464 __ cmovq(sign, rax, Operand(rcx, 0));
462 __ cmovq(not_sign, rax, Operand(rcx, 1)); 465 __ cmovq(not_sign, rax, Operand(rcx, 1));
463 __ cmovq(parity_even, rax, Operand(rcx, 2)); 466 __ cmovq(parity_even, rax, Operand(rcx, 2));
464 __ cmovq(parity_odd, rax, Operand(rcx, 3)); 467 __ cmovq(parity_odd, rax, Operand(rcx, 3));
465 __ cmovq(less, rax, Operand(rdx, 0)); 468 __ cmovq(less, rax, Operand(rdx, 0));
466 __ cmovq(greater_equal, rax, Operand(rdx, 1)); 469 __ cmovq(greater_equal, rax, Operand(rdx, 1));
467 __ cmovq(less_equal, rax, Operand(rdx, 2)); 470 __ cmovq(less_equal, rax, Operand(rdx, 2));
468 __ cmovq(greater, rax, Operand(rdx, 3)); 471 __ cmovq(greater, rax, Operand(rdx, 3));
469 } 472 }
470 473
471 { 474 {
472 if (CpuFeatures::IsSupported(SSE4_1)) { 475 if (CpuFeatures::IsSupported(SSE4_1)) {
473 CpuFeatureScope scope(&assm, SSE4_1); 476 CpuFeatureScope scope(&assm, SSE4_1);
474 __ extractps(rax, xmm1, 0); 477 __ extractps(rax, xmm1, 0);
478 __ pextrd(rbx, xmm15, 0);
479 __ pextrd(r12, xmm0, 1);
480 __ pinsrd(xmm9, r9, 0);
481 __ pinsrd(xmm5, rax, 1);
475 } 482 }
476 } 483 }
477 484
478 // AVX instruction 485 // AVX instruction
479 { 486 {
480 if (CpuFeatures::IsSupported(AVX)) { 487 if (CpuFeatures::IsSupported(AVX)) {
481 CpuFeatureScope scope(&assm, AVX); 488 CpuFeatureScope scope(&assm, AVX);
482 __ vaddsd(xmm0, xmm1, xmm2); 489 __ vaddsd(xmm0, xmm1, xmm2);
483 __ vaddsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); 490 __ vaddsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
484 __ vmulsd(xmm0, xmm1, xmm2); 491 __ vmulsd(xmm0, xmm1, xmm2);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 #ifdef OBJECT_PRINT 588 #ifdef OBJECT_PRINT
582 OFStream os(stdout); 589 OFStream os(stdout);
583 code->Print(os); 590 code->Print(os);
584 byte* begin = code->instruction_start(); 591 byte* begin = code->instruction_start();
585 byte* end = begin + code->instruction_size(); 592 byte* end = begin + code->instruction_size();
586 disasm::Disassembler::Disassemble(stdout, begin, end); 593 disasm::Disassembler::Disassemble(stdout, begin, end);
587 #endif 594 #endif
588 } 595 }
589 596
590 #undef __ 597 #undef __
OLDNEW
« no previous file with comments | « test/cctest/test-disasm-ia32.cc ('k') | test/mjsunit/asm/construct-double.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698