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

Unified Diff: src/compiler/x64/code-generator-x64.cc

Issue 2220483003: [x64] Zero/sign-extend loads to 64-bit registers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed a couple of wrong assertions. Created 4 years, 4 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/compiler/x64/instruction-codes-x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/x64/code-generator-x64.cc
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc
index f8cad769d3f00080aa136cfd6766095fd454cc2b..970f85d8d3dcc40cf63327d64c30ce0b816bb151 100644
--- a/src/compiler/x64/code-generator-x64.cc
+++ b/src/compiler/x64/code-generator-x64.cc
@@ -1754,6 +1754,13 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
ASSEMBLE_MOVX(movzxbl);
__ AssertZeroExtended(i.OutputRegister());
break;
+ case kX64Movsxbq:
+ ASSEMBLE_MOVX(movsxbq);
+ break;
+ case kX64Movzxbq:
+ ASSEMBLE_MOVX(movzxbq);
+ __ AssertZeroExtended(i.OutputRegister());
+ break;
case kX64Movb: {
size_t index = 0;
Operand operand = i.MemoryOperand(&index);
@@ -1772,6 +1779,13 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
ASSEMBLE_MOVX(movzxwl);
__ AssertZeroExtended(i.OutputRegister());
break;
+ case kX64Movsxwq:
+ ASSEMBLE_MOVX(movsxwq);
+ break;
+ case kX64Movzxwq:
+ ASSEMBLE_MOVX(movzxwq);
+ __ AssertZeroExtended(i.OutputRegister());
+ break;
case kX64Movw: {
size_t index = 0;
Operand operand = i.MemoryOperand(&index);
« no previous file with comments | « no previous file | src/compiler/x64/instruction-codes-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698