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

Unified Diff: runtime/vm/assembler_ia32_test.cc

Issue 11027060: Faster 64-bit right-shift for the ia32 compiler. (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/code_generator.h » ('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 13286)
+++ runtime/vm/assembler_ia32_test.cc (working copy)
@@ -494,7 +494,20 @@
__ movl(Address(EAX, 0), EAX);
__ Bind(&donetest13);
+ Label donetest14;
+ __ subl(ESP, Immediate(kWordSize));
+ __ movl(Address(ESP, 0), Immediate(0x80000000));
__ movl(EAX, Immediate(0));
+ __ movl(ECX, Immediate(3));
+ __ sarl(Address(ESP, 0), ECX);
+ __ shrd(Address(ESP, 0), EAX);
+ __ cmpl(Address(ESP, 0), Immediate(0x1e000000));
+ __ j(EQUAL, &donetest14);
+ __ int3();
+ __ Bind(&donetest14);
+ __ addl(ESP, Immediate(kWordSize));
+
+ __ movl(EAX, Immediate(0));
__ ret();
}
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/code_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698