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

Unified Diff: runtime/vm/assembler_ia32_test.cc

Issue 11085004: Faster 64-bit left-shift for ia32. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed comments. Created 8 years, 2 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 | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_ia32_test.cc
===================================================================
--- runtime/vm/assembler_ia32_test.cc (revision 13352)
+++ runtime/vm/assembler_ia32_test.cc (working copy)
@@ -507,6 +507,19 @@
__ Bind(&donetest14);
__ addl(ESP, Immediate(kWordSize));
+ Label donetest15;
+ __ subl(ESP, Immediate(kWordSize));
+ __ movl(Address(ESP, 0), Immediate(0xFF000000));
+ __ movl(EAX, Immediate(-1));
+ __ movl(ECX, Immediate(2));
+ __ shll(Address(ESP, 0), ECX);
+ __ shld(Address(ESP, 0), EAX);
+ __ cmpl(Address(ESP, 0), Immediate(0xF0000003));
+ __ j(EQUAL, &donetest15);
+ __ int3();
+ __ Bind(&donetest15);
+ __ addl(ESP, Immediate(kWordSize));
+
__ movl(EAX, Immediate(0));
__ ret();
}
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698