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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 1411743003: [x64] Emit vcvtss2sd & vcvtsd2ss when AVX is enabled. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('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 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 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/flags.h" 10 #include "src/base/flags.h"
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 // Macro instructions. 799 // Macro instructions.
800 800
801 // Load/store with specific representation. 801 // Load/store with specific representation.
802 void Load(Register dst, const Operand& src, Representation r); 802 void Load(Register dst, const Operand& src, Representation r);
803 void Store(const Operand& dst, Register src, Representation r); 803 void Store(const Operand& dst, Register src, Representation r);
804 804
805 // Load a register with a long value as efficiently as possible. 805 // Load a register with a long value as efficiently as possible.
806 void Set(Register dst, int64_t x); 806 void Set(Register dst, int64_t x);
807 void Set(const Operand& dst, intptr_t x); 807 void Set(const Operand& dst, intptr_t x);
808 808
809 void Cvtss2sd(XMMRegister dst, XMMRegister src);
810 void Cvtss2sd(XMMRegister dst, const Operand& src);
811 void Cvtsd2ss(XMMRegister dst, XMMRegister src);
812 void Cvtsd2ss(XMMRegister dst, const Operand& src);
813
809 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 814 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
810 // hinders register renaming and makes dependence chains longer. So we use 815 // hinders register renaming and makes dependence chains longer. So we use
811 // xorpd to clear the dst register before cvtsi2sd to solve this issue. 816 // xorpd to clear the dst register before cvtsi2sd to solve this issue.
812 void Cvtlsi2sd(XMMRegister dst, Register src); 817 void Cvtlsi2sd(XMMRegister dst, Register src);
813 void Cvtlsi2sd(XMMRegister dst, const Operand& src); 818 void Cvtlsi2sd(XMMRegister dst, const Operand& src);
814 819
815 void Cvttsd2si(Register dst, XMMRegister src); 820 void Cvttsd2si(Register dst, XMMRegister src);
816 void Cvttsd2si(Register dst, const Operand& src); 821 void Cvttsd2si(Register dst, const Operand& src);
817 void Cvttsd2siq(Register dst, XMMRegister src); 822 void Cvttsd2siq(Register dst, XMMRegister src);
818 void Cvttsd2siq(Register dst, const Operand& src); 823 void Cvttsd2siq(Register dst, const Operand& src);
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
1661 } \ 1666 } \
1662 masm-> 1667 masm->
1663 #else 1668 #else
1664 #define ACCESS_MASM(masm) masm-> 1669 #define ACCESS_MASM(masm) masm->
1665 #endif 1670 #endif
1666 1671
1667 } // namespace internal 1672 } // namespace internal
1668 } // namespace v8 1673 } // namespace v8
1669 1674
1670 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1675 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698