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

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

Issue 6529032: Merge 6168:6800 from bleeding_edge to experimental/gc branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 10 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 | « test/cctest/test-disasm-arm.cc ('k') | test/cctest/test-dtoa.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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 __ cmov(not_sign, eax, Operand(ecx, 1)); 409 __ cmov(not_sign, eax, Operand(ecx, 1));
410 __ cmov(parity_even, eax, Operand(ecx, 2)); 410 __ cmov(parity_even, eax, Operand(ecx, 2));
411 __ cmov(parity_odd, eax, Operand(ecx, 3)); 411 __ cmov(parity_odd, eax, Operand(ecx, 3));
412 __ cmov(less, eax, Operand(edx, 0)); 412 __ cmov(less, eax, Operand(edx, 0));
413 __ cmov(greater_equal, eax, Operand(edx, 1)); 413 __ cmov(greater_equal, eax, Operand(edx, 1));
414 __ cmov(less_equal, eax, Operand(edx, 2)); 414 __ cmov(less_equal, eax, Operand(edx, 2));
415 __ cmov(greater, eax, Operand(edx, 3)); 415 __ cmov(greater, eax, Operand(edx, 3));
416 } 416 }
417 } 417 }
418 418
419 // andpd, cmpltsd, movaps, psllq. 419 // andpd, cmpltsd, movaps, psllq, psrlq, por.
420 { 420 {
421 if (CpuFeatures::IsSupported(SSE2)) { 421 if (CpuFeatures::IsSupported(SSE2)) {
422 CpuFeatures::Scope fscope(SSE2); 422 CpuFeatures::Scope fscope(SSE2);
423 __ andpd(xmm0, xmm1); 423 __ andpd(xmm0, xmm1);
424 __ andpd(xmm1, xmm2); 424 __ andpd(xmm1, xmm2);
425 425
426 __ cmpltsd(xmm0, xmm1); 426 __ cmpltsd(xmm0, xmm1);
427 __ cmpltsd(xmm1, xmm2); 427 __ cmpltsd(xmm1, xmm2);
428 428
429 __ movaps(xmm0, xmm1); 429 __ movaps(xmm0, xmm1);
430 __ movaps(xmm1, xmm2); 430 __ movaps(xmm1, xmm2);
431 431
432 __ psllq(xmm0, 17); 432 __ psllq(xmm0, 17);
433 __ psllq(xmm1, 42); 433 __ psllq(xmm1, 42);
434
435 __ psllq(xmm0, xmm1);
436 __ psllq(xmm1, xmm2);
437
438 __ psrlq(xmm0, 17);
439 __ psrlq(xmm1, 42);
440
441 __ psrlq(xmm0, xmm1);
442 __ psrlq(xmm1, xmm2);
443
444 __ por(xmm0, xmm1);
445 __ por(xmm1, xmm2);
446 }
447 }
448
449 {
450 if (CpuFeatures::IsSupported(SSE4_1)) {
451 CpuFeatures::Scope scope(SSE4_1);
452 __ pextrd(Operand(eax), xmm0, 1);
453 __ pinsrd(xmm1, Operand(eax), 0);
434 } 454 }
435 } 455 }
436 456
437 __ ret(0); 457 __ ret(0);
438 458
439 CodeDesc desc; 459 CodeDesc desc;
440 assm.GetCode(&desc); 460 assm.GetCode(&desc);
441 Object* code = Heap::CreateCode( 461 Object* code = Heap::CreateCode(
442 desc, 462 desc,
443 Code::ComputeFlags(Code::STUB), 463 Code::ComputeFlags(Code::STUB),
444 Handle<Object>(Heap::undefined_value()))->ToObjectChecked(); 464 Handle<Object>(Heap::undefined_value()))->ToObjectChecked();
445 CHECK(code->IsCode()); 465 CHECK(code->IsCode());
446 #ifdef OBJECT_PRINT 466 #ifdef OBJECT_PRINT
447 Code::cast(code)->Print(); 467 Code::cast(code)->Print();
448 byte* begin = Code::cast(code)->instruction_start(); 468 byte* begin = Code::cast(code)->instruction_start();
449 byte* end = begin + Code::cast(code)->instruction_size(); 469 byte* end = begin + Code::cast(code)->instruction_size();
450 disasm::Disassembler::Disassemble(stdout, begin, end); 470 disasm::Disassembler::Disassemble(stdout, begin, end);
451 #endif 471 #endif
452 } 472 }
453 473
454 #undef __ 474 #undef __
OLDNEW
« no previous file with comments | « test/cctest/test-disasm-arm.cc ('k') | test/cctest/test-dtoa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698