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

Unified Diff: runtime/vm/assembler_ia32_test.cc

Issue 11043020: Add fast 64-bit bitwise negation to the IA32 optimizing compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed bug in the optimizer that prevented optimization 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
Index: runtime/vm/assembler_ia32_test.cc
===================================================================
--- runtime/vm/assembler_ia32_test.cc (revision 13214)
+++ runtime/vm/assembler_ia32_test.cc (working copy)
@@ -1721,6 +1721,26 @@
}
+ASSEMBLER_TEST_GENERATE(Pxor, assembler) {
+ __ movsd(XMM0, Address(ESP, kWordSize));
+ __ pxor(XMM0, XMM0);
+ __ pushl(EAX);
+ __ pushl(EAX);
+ __ movsd(Address(ESP, 0), XMM0);
+ __ fldl(Address(ESP, 0));
+ __ popl(EAX);
+ __ popl(EAX);
+ __ ret();
+}
+
+
+ASSEMBLER_TEST_RUN(Pxor, entry) {
+ typedef double (*PxorCode)(double d);
+ double res = reinterpret_cast<PxorCode>(entry)(12.3456e3);
+ EXPECT_FLOAT_EQ(0.0, res, 0.0);
+}
+
+
ASSEMBLER_TEST_GENERATE(Orpd, assembler) {
__ movsd(XMM0, Address(ESP, kWordSize));
__ xorpd(XMM1, XMM1);

Powered by Google App Engine
This is Rietveld 408576698