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

Side by Side Diff: src/ppc/assembler-ppc.cc

Issue 1413833013: PPC64: Implemented the Word64Popcnt TurboFan operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/ppc/assembler-ppc.h ('k') | src/ppc/constants-ppc.h » ('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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 void Assembler::rotrdi(Register ra, Register rs, int sh, RCBit r) { 1469 void Assembler::rotrdi(Register ra, Register rs, int sh, RCBit r) {
1470 rldicl(ra, rs, 64 - sh, 0, r); 1470 rldicl(ra, rs, 64 - sh, 0, r);
1471 } 1471 }
1472 1472
1473 1473
1474 void Assembler::cntlzd_(Register ra, Register rs, RCBit rc) { 1474 void Assembler::cntlzd_(Register ra, Register rs, RCBit rc) {
1475 x_form(EXT2 | CNTLZDX, ra, rs, r0, rc); 1475 x_form(EXT2 | CNTLZDX, ra, rs, r0, rc);
1476 } 1476 }
1477 1477
1478 1478
1479 void Assembler::popcntd(Register ra, Register rs) {
1480 emit(EXT2 | POPCNTD | rs.code() * B21 | ra.code() * B16);
1481 }
1482
1483
1479 void Assembler::mulld(Register dst, Register src1, Register src2, OEBit o, 1484 void Assembler::mulld(Register dst, Register src1, Register src2, OEBit o,
1480 RCBit r) { 1485 RCBit r) {
1481 xo_form(EXT2 | MULLD, dst, src1, src2, o, r); 1486 xo_form(EXT2 | MULLD, dst, src1, src2, o, r);
1482 } 1487 }
1483 1488
1484 1489
1485 void Assembler::divd(Register dst, Register src1, Register src2, OEBit o, 1490 void Assembler::divd(Register dst, Register src1, Register src2, OEBit o,
1486 RCBit r) { 1491 RCBit r) {
1487 xo_form(EXT2 | DIVD, dst, src1, src2, o, r); 1492 xo_form(EXT2 | DIVD, dst, src1, src2, o, r);
1488 } 1493 }
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
2420 2425
2421 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_); 2426 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_);
2422 } 2427 }
2423 } 2428 }
2424 2429
2425 2430
2426 } // namespace internal 2431 } // namespace internal
2427 } // namespace v8 2432 } // namespace v8
2428 2433
2429 #endif // V8_TARGET_ARCH_PPC 2434 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/assembler-ppc.h ('k') | src/ppc/constants-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698