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

Unified Diff: runtime/vm/assembler_mips_test.cc

Issue 211363007: Avoids MIPS32r2 instructions on MIPS32. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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/tests/vm/vm.status ('k') | runtime/vm/cpu_mips.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips_test.cc
===================================================================
--- runtime/vm/assembler_mips_test.cc (revision 34370)
+++ runtime/vm/assembler_mips_test.cc (working copy)
@@ -1959,10 +1959,14 @@
ASSEMBLER_TEST_GENERATE(Cop1CvtDL, assembler) {
- __ LoadImmediate(T0, 0x1);
- __ mtc1(ZR, F2);
- __ mtc1(T0, F3); // D0 <- 0x100000000 = 4294967296
- __ cvtdl(D0, D1);
+ if (TargetCPUFeatures::mips_version() == MIPS32r2) {
+ __ LoadImmediate(T0, 0x1);
+ __ mtc1(ZR, F2);
+ __ mtc1(T0, F3); // D0 <- 0x100000000 = 4294967296
+ __ cvtdl(D0, D1);
+ } else {
+ __ LoadImmediate(D0, 4294967296.0);
+ }
__ Ret();
}
@@ -1976,10 +1980,14 @@
ASSEMBLER_TEST_GENERATE(Cop1CvtDL_neg, assembler) {
- __ LoadImmediate(T0, 0xffffffff);
- __ mtc1(T0, F2);
- __ mtc1(T0, F3); // D0 <- 0xffffffffffffffff = -1
- __ cvtdl(D0, D1);;
+ if (TargetCPUFeatures::mips_version() == MIPS32r2) {
+ __ LoadImmediate(T0, 0xffffffff);
+ __ mtc1(T0, F2);
+ __ mtc1(T0, F3); // D0 <- 0xffffffffffffffff = -1
+ __ cvtdl(D0, D1);
+ } else {
+ __ LoadImmediate(D0, -1.0);
+ }
__ Ret();
}
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/cpu_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698