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

Side by Side Diff: runtime/vm/assembler_ia32_test.cc

Issue 10875030: Add support for XMM registers in SSA code generation pipeline. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix a bug pointed out by Florian Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_macros_ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 #include "vm/unit_test.h" 10 #include "vm/unit_test.h"
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 __ movsd(XMM0, Address(ESP, 0)); 838 __ movsd(XMM0, Address(ESP, 0));
839 __ movsd(XMM1, XMM0); 839 __ movsd(XMM1, XMM0);
840 __ movsd(XMM2, XMM1); 840 __ movsd(XMM2, XMM1);
841 __ movsd(XMM3, XMM2); 841 __ movsd(XMM3, XMM2);
842 __ movsd(XMM4, XMM3); 842 __ movsd(XMM4, XMM3);
843 __ movsd(XMM5, XMM4); 843 __ movsd(XMM5, XMM4);
844 __ movsd(XMM6, XMM5); 844 __ movsd(XMM6, XMM5);
845 __ movsd(XMM7, XMM6); 845 __ movsd(XMM7, XMM6);
846 __ movl(Address(ESP, 0), Immediate(0)); 846 __ movl(Address(ESP, 0), Immediate(0));
847 __ movl(Address(ESP, kWordSize), Immediate(0)); 847 __ movl(Address(ESP, kWordSize), Immediate(0));
848 __ movsd(XMM0, Address(ESP, 0));
848 __ movsd(Address(ESP, 0), XMM7); 849 __ movsd(Address(ESP, 0), XMM7);
850 __ movsd(XMM7, Address(ESP, 0));
851 __ movaps(XMM6, XMM7);
852 __ movaps(XMM5, XMM6);
853 __ movaps(XMM4, XMM5);
854 __ movaps(XMM3, XMM4);
855 __ movaps(XMM2, XMM3);
856 __ movaps(XMM1, XMM2);
857 __ movaps(XMM0, XMM1);
858 __ movl(Address(ESP, 0), Immediate(0));
859 __ movl(Address(ESP, kWordSize), Immediate(0));
860 __ movsd(Address(ESP, 0), XMM0);
849 __ fldl(Address(ESP, 0)); 861 __ fldl(Address(ESP, 0));
850 __ popl(EAX); 862 __ popl(EAX);
851 __ popl(EAX); 863 __ popl(EAX);
852 __ ret(); 864 __ ret();
853 } 865 }
854 866
855 867
856 ASSEMBLER_TEST_RUN(DoubleFPMoves, entry) { 868 ASSEMBLER_TEST_RUN(DoubleFPMoves, entry) {
857 typedef double (*DoubleFPMovesCode)(); 869 typedef double (*DoubleFPMovesCode)();
858 double res = reinterpret_cast<DoubleFPMovesCode>(entry)(); 870 double res = reinterpret_cast<DoubleFPMovesCode>(entry)();
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1847 FieldAddress(ECX, GrowableObjectArray::data_offset()), 1859 FieldAddress(ECX, GrowableObjectArray::data_offset()),
1848 EAX); 1860 EAX);
1849 __ popl(CTX); 1861 __ popl(CTX);
1850 __ ret(); 1862 __ ret();
1851 } 1863 }
1852 1864
1853 1865
1854 } // namespace dart 1866 } // namespace dart
1855 1867
1856 #endif // defined TARGET_ARCH_IA32 1868 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_macros_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698