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

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

Issue 721513002: Fix build (gcc is happy, this must be clang complaining). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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 | « no previous file | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/cpu.h" 9 #include "vm/cpu.h"
10 #include "vm/os.h" 10 #include "vm/os.h"
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 __ LoadImmediate(T1, -1); 508 __ LoadImmediate(T1, -1);
509 __ LoadImmediate(T2, -1); 509 __ LoadImmediate(T2, -1);
510 __ multu(T1, T2); 510 __ multu(T1, T2);
511 __ mfhi(V0); 511 __ mfhi(V0);
512 __ jr(RA); 512 __ jr(RA);
513 } 513 }
514 514
515 515
516 ASSEMBLER_TEST_RUN(Multu_hi, test) { 516 ASSEMBLER_TEST_RUN(Multu_hi, test) {
517 typedef int (*SimpleCode)() DART_UNUSED; 517 typedef int (*SimpleCode)() DART_UNUSED;
518 EXPECT_EQ(0xfffffffe, EXECUTE_TEST_CODE_INT32(SimpleCode, test->entry())); 518 EXPECT_EQ(-2, EXECUTE_TEST_CODE_INT32(SimpleCode, test->entry()));
519 } 519 }
520 520
521 521
522 ASSEMBLER_TEST_GENERATE(Madd_neg, assembler) { 522 ASSEMBLER_TEST_GENERATE(Madd_neg, assembler) {
523 __ LoadImmediate(T1, -6); 523 __ LoadImmediate(T1, -6);
524 __ LoadImmediate(T2, 7); 524 __ LoadImmediate(T2, 7);
525 __ mult(T1, T2); 525 __ mult(T1, T2);
526 __ madd(T1, T2); 526 __ madd(T1, T2);
527 __ mflo(V0); 527 __ mflo(V0);
528 __ mfhi(V1); 528 __ mfhi(V1);
(...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after
2062 A1); 2062 A1);
2063 __ lw(RA, Address(SP, 0 * kWordSize)); 2063 __ lw(RA, Address(SP, 0 * kWordSize));
2064 __ lw(CTX, Address(SP, 1 * kWordSize)); 2064 __ lw(CTX, Address(SP, 1 * kWordSize));
2065 __ addiu(SP, SP, Immediate(2 * kWordSize)); 2065 __ addiu(SP, SP, Immediate(2 * kWordSize));
2066 __ Ret(); 2066 __ Ret();
2067 } 2067 }
2068 2068
2069 } // namespace dart 2069 } // namespace dart
2070 2070
2071 #endif // defined TARGET_ARCH_MIPS 2071 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698