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

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

Issue 2527873003: s390: preserve src register in MovIntToFloat (Closed)
Patch Set: Created 4 years 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 | « 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 <assert.h> // For assert 5 #include <assert.h> // For assert
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #if V8_TARGET_ARCH_S390 8 #if V8_TARGET_ARCH_S390
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 3813 matching lines...) Expand 10 before | Expand all | Expand 10 after
3824 // Subtract Pointer Sized (Register - Memory) 3824 // Subtract Pointer Sized (Register - Memory)
3825 void MacroAssembler::SubP(Register dst, const MemOperand& opnd) { 3825 void MacroAssembler::SubP(Register dst, const MemOperand& opnd) {
3826 #if V8_TARGET_ARCH_S390X 3826 #if V8_TARGET_ARCH_S390X
3827 sg(dst, opnd); 3827 sg(dst, opnd);
3828 #else 3828 #else
3829 Sub32(dst, opnd); 3829 Sub32(dst, opnd);
3830 #endif 3830 #endif
3831 } 3831 }
3832 3832
3833 void MacroAssembler::MovIntToFloat(DoubleRegister dst, Register src) { 3833 void MacroAssembler::MovIntToFloat(DoubleRegister dst, Register src) {
3834 sllg(src, src, Operand(32)); 3834 sllg(r0, src, Operand(32));
3835 ldgr(dst, src); 3835 ldgr(dst, r0);
3836 } 3836 }
3837 3837
3838 void MacroAssembler::MovFloatToInt(Register dst, DoubleRegister src) { 3838 void MacroAssembler::MovFloatToInt(Register dst, DoubleRegister src) {
3839 lgdr(dst, src); 3839 lgdr(dst, src);
3840 srlg(dst, dst, Operand(32)); 3840 srlg(dst, dst, Operand(32));
3841 } 3841 }
3842 3842
3843 void MacroAssembler::SubP_ExtendSrc(Register dst, const MemOperand& opnd) { 3843 void MacroAssembler::SubP_ExtendSrc(Register dst, const MemOperand& opnd) {
3844 #if V8_TARGET_ARCH_S390X 3844 #if V8_TARGET_ARCH_S390X
3845 DCHECK(is_int20(opnd.offset())); 3845 DCHECK(is_int20(opnd.offset()));
(...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after
5183 } 5183 }
5184 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); 5184 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift));
5185 ExtractBit(r0, dividend, 31); 5185 ExtractBit(r0, dividend, 31);
5186 AddP(result, r0); 5186 AddP(result, r0);
5187 } 5187 }
5188 5188
5189 } // namespace internal 5189 } // namespace internal
5190 } // namespace v8 5190 } // namespace v8
5191 5191
5192 #endif // V8_TARGET_ARCH_S390 5192 #endif // V8_TARGET_ARCH_S390
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