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

Unified Diff: runtime/vm/assembler_ia32_test.cc

Issue 387733002: Specialize mint shift code on ia32 for a constant shift amount. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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/disassembler_ia32.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 38138)
+++ runtime/vm/assembler_ia32_test.cc (working copy)
@@ -553,7 +553,28 @@
__ Bind(&donetest15);
__ addl(ESP, Immediate(kWordSize));
+ Label donetest16;
+ __ movl(EDX, Immediate(0x80000000));
__ movl(EAX, Immediate(0));
+ __ movl(ECX, Immediate(3));
+ __ sarl(EDX, Immediate(3));
+ __ shrd(EDX, EAX, Immediate(3));
+ __ cmpl(EDX, Immediate(0x1e000000));
+ __ j(EQUAL, &donetest16);
+ __ int3();
+ __ Bind(&donetest16);
+
+ Label donetest17;
+ __ movl(EDX, Immediate(0xFF000000));
+ __ movl(EAX, Immediate(-1));
+ __ shll(EDX, Immediate(2));
+ __ shld(EDX, EAX, Immediate(2));
+ __ cmpl(EDX, Immediate(0xF0000003));
+ __ j(EQUAL, &donetest17);
+ __ int3();
+ __ Bind(&donetest17);
+
+ __ movl(EAX, Immediate(0));
__ ret();
}
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/disassembler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698