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

Unified Diff: src/a64/simulator-a64.cc

Issue 170383003: Merge a few A64 utils into the CompilerIntrinsics. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes and cleaning Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/a64/utils-a64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/a64/simulator-a64.cc
diff --git a/src/a64/simulator-a64.cc b/src/a64/simulator-a64.cc
index e0a0d62a02a695128f50cbc2821c2c776e89401e..1c4f4ae7ba4da1c8d42f76c9af0b29459de82e6d 100644
--- a/src/a64/simulator-a64.cc
+++ b/src/a64/simulator-a64.cc
@@ -1615,11 +1615,11 @@ void Simulator::VisitDataProcessing1Source(Instruction* instr) {
case CLZ_w: set_wreg(dst, CountLeadingZeros(wreg(src), kWRegSize)); break;
case CLZ_x: set_xreg(dst, CountLeadingZeros(xreg(src), kXRegSize)); break;
case CLS_w: {
- set_wreg(dst, CountLeadingSignBits(wreg(src), kWRegSize));
+ set_wreg(dst, CountRedundantLeadingSignBits(wreg(src), kWRegSize));
break;
}
case CLS_x: {
- set_xreg(dst, CountLeadingSignBits(xreg(src), kXRegSize));
+ set_xreg(dst, CountRedundantLeadingSignBits(xreg(src), kXRegSize));
break;
}
default: UNIMPLEMENTED();
« no previous file with comments | « no previous file | src/a64/utils-a64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698