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

Side by Side Diff: src/mips64/macro-assembler-mips64.cc

Issue 980073003: MIPS: [turbofan] Support for %_DoubleHi, %_DoubleLo and %_ConstructDouble. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix shifts. Created 5 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 unified diff | Download patch
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1710 } 1710 }
1711 } 1711 }
1712 } 1712 }
1713 1713
1714 if (bd == PROTECT) { 1714 if (bd == PROTECT) {
1715 nop(); 1715 nop();
1716 } 1716 }
1717 } 1717 }
1718 1718
1719 1719
1720 void MacroAssembler::FmoveLow(FPURegister dst, Register src_low) {
1721 DCHECK(!src_low.is(at));
1722 mfhc1(at, dst);
1723 mtc1(src_low, dst);
1724 mthc1(at, dst);
1725 }
1726
1727
1720 void MacroAssembler::Move(FPURegister dst, float imm) { 1728 void MacroAssembler::Move(FPURegister dst, float imm) {
1721 li(at, Operand(bit_cast<int32_t>(imm))); 1729 li(at, Operand(bit_cast<int32_t>(imm)));
1722 mtc1(at, dst); 1730 mtc1(at, dst);
1723 } 1731 }
1724 1732
1725 1733
1726 void MacroAssembler::Move(FPURegister dst, double imm) { 1734 void MacroAssembler::Move(FPURegister dst, double imm) {
1727 static const DoubleRepresentation minus_zero(-0.0); 1735 static const DoubleRepresentation minus_zero(-0.0);
1728 static const DoubleRepresentation zero(0.0); 1736 static const DoubleRepresentation zero(0.0);
1729 DoubleRepresentation value_rep(imm); 1737 DoubleRepresentation value_rep(imm);
(...skipping 4367 matching lines...) Expand 10 before | Expand all | Expand 10 after
6097 } 6105 }
6098 if (mag.shift > 0) sra(result, result, mag.shift); 6106 if (mag.shift > 0) sra(result, result, mag.shift);
6099 srl(at, dividend, 31); 6107 srl(at, dividend, 31);
6100 Addu(result, result, Operand(at)); 6108 Addu(result, result, Operand(at));
6101 } 6109 }
6102 6110
6103 6111
6104 } } // namespace v8::internal 6112 } } // namespace v8::internal
6105 6113
6106 #endif // V8_TARGET_ARCH_MIPS64 6114 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698