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

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

Issue 214493002: Introduce rolp, rorp, rclp, rcrp, shlp, shrp and sarp for x64 port (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/regexp-macro-assembler-x64.cc ('k') | test/cctest/test-disasm-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 569
570 Isolate* isolate = CcTest::i_isolate(); 570 Isolate* isolate = CcTest::i_isolate();
571 Assembler assm(isolate, buffer, sizeof(buffer)); 571 Assembler assm(isolate, buffer, sizeof(buffer));
572 572
573 // Remove return address from the stack for fix stack frame alignment. 573 // Remove return address from the stack for fix stack frame alignment.
574 __ popq(rcx); 574 __ popq(rcx);
575 575
576 // Store input vector on the stack. 576 // Store input vector on the stack.
577 for (int i = 0; i < ELEMENT_COUNT; i++) { 577 for (int i = 0; i < ELEMENT_COUNT; i++) {
578 __ movl(rax, Immediate(vec->Get(i)->Int32Value())); 578 __ movl(rax, Immediate(vec->Get(i)->Int32Value()));
579 __ shl(rax, Immediate(0x20)); 579 __ shlq(rax, Immediate(0x20));
580 __ orq(rax, Immediate(vec->Get(++i)->Int32Value())); 580 __ orq(rax, Immediate(vec->Get(++i)->Int32Value()));
581 __ pushq(rax); 581 __ pushq(rax);
582 } 582 }
583 583
584 // Read vector into a xmm register. 584 // Read vector into a xmm register.
585 __ xorps(xmm0, xmm0); 585 __ xorps(xmm0, xmm0);
586 __ movdqa(xmm0, Operand(rsp, 0)); 586 __ movdqa(xmm0, Operand(rsp, 0));
587 // Create mask and store it in the return register. 587 // Create mask and store it in the return register.
588 __ movmskps(rax, xmm0); 588 __ movmskps(rax, xmm0);
589 589
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 Handle<Code>())->ToObjectChecked()); 706 Handle<Code>())->ToObjectChecked());
707 CHECK(code->IsCode()); 707 CHECK(code->IsCode());
708 #ifdef OBJECT_PRINT 708 #ifdef OBJECT_PRINT
709 Code::cast(code)->Print(); 709 Code::cast(code)->Print();
710 #endif 710 #endif
711 711
712 F6 f = FUNCTION_CAST<F6>(Code::cast(code)->entry()); 712 F6 f = FUNCTION_CAST<F6>(Code::cast(code)->entry());
713 CHECK_EQ(2, f(1.0, 2.0)); 713 CHECK_EQ(2, f(1.0, 2.0));
714 } 714 }
715 #undef __ 715 #undef __
OLDNEW
« no previous file with comments | « src/x64/regexp-macro-assembler-x64.cc ('k') | test/cctest/test-disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698