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

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

Issue 2161513002: [x64] add Absps/d and Negps/d macro (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add Abspd and Negpd, and move constants to external reference Created 4 years, 5 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/disasm-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 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 #define AVX_OP2_O(macro_name, name) \ 950 #define AVX_OP2_O(macro_name, name) \
951 AVX_OP2_WITH_TYPE(macro_name, name, const Operand&) 951 AVX_OP2_WITH_TYPE(macro_name, name, const Operand&)
952 #define AVX_OP2_XO(macro_name, name) \ 952 #define AVX_OP2_XO(macro_name, name) \
953 AVX_OP2_X(macro_name, name) \ 953 AVX_OP2_X(macro_name, name) \
954 AVX_OP2_O(macro_name, name) 954 AVX_OP2_O(macro_name, name)
955 955
956 AVX_OP2_XO(Addsd, addsd) 956 AVX_OP2_XO(Addsd, addsd)
957 AVX_OP2_XO(Subsd, subsd) 957 AVX_OP2_XO(Subsd, subsd)
958 AVX_OP2_XO(Mulsd, mulsd) 958 AVX_OP2_XO(Mulsd, mulsd)
959 AVX_OP2_XO(Divsd, divsd) 959 AVX_OP2_XO(Divsd, divsd)
960 AVX_OP2_X(Andpd, andpd) 960 AVX_OP2_XO(Andps, andps)
961 AVX_OP2_X(Orpd, orpd) 961 AVX_OP2_XO(Andpd, andpd)
962 AVX_OP2_X(Xorpd, xorpd) 962 AVX_OP2_XO(Orpd, orpd)
963 AVX_OP2_XO(Xorpd, xorpd)
963 AVX_OP2_X(Pcmpeqd, pcmpeqd) 964 AVX_OP2_X(Pcmpeqd, pcmpeqd)
964 AVX_OP2_WITH_TYPE(Psllq, psllq, byte) 965 AVX_OP2_WITH_TYPE(Psllq, psllq, byte)
965 AVX_OP2_WITH_TYPE(Psrlq, psrlq, byte) 966 AVX_OP2_WITH_TYPE(Psrlq, psrlq, byte)
966 967
967 #undef AVX_OP2_O 968 #undef AVX_OP2_O
968 #undef AVX_OP2_X 969 #undef AVX_OP2_X
969 #undef AVX_OP2_XO 970 #undef AVX_OP2_XO
970 #undef AVX_OP2_WITH_TYPE 971 #undef AVX_OP2_WITH_TYPE
971 972
972 void Movsd(XMMRegister dst, XMMRegister src); 973 void Movsd(XMMRegister dst, XMMRegister src);
973 void Movsd(XMMRegister dst, const Operand& src); 974 void Movsd(XMMRegister dst, const Operand& src);
974 void Movsd(const Operand& dst, XMMRegister src); 975 void Movsd(const Operand& dst, XMMRegister src);
975 void Movss(XMMRegister dst, XMMRegister src); 976 void Movss(XMMRegister dst, XMMRegister src);
976 void Movss(XMMRegister dst, const Operand& src); 977 void Movss(XMMRegister dst, const Operand& src);
977 void Movss(const Operand& dst, XMMRegister src); 978 void Movss(const Operand& dst, XMMRegister src);
978 979
979 void Movd(XMMRegister dst, Register src); 980 void Movd(XMMRegister dst, Register src);
980 void Movd(XMMRegister dst, const Operand& src); 981 void Movd(XMMRegister dst, const Operand& src);
981 void Movd(Register dst, XMMRegister src); 982 void Movd(Register dst, XMMRegister src);
982 void Movq(XMMRegister dst, Register src); 983 void Movq(XMMRegister dst, Register src);
983 void Movq(Register dst, XMMRegister src); 984 void Movq(Register dst, XMMRegister src);
984 985
985 void Movaps(XMMRegister dst, XMMRegister src); 986 void Movaps(XMMRegister dst, XMMRegister src);
986 void Movups(XMMRegister dst, XMMRegister src); 987 void Movups(XMMRegister dst, XMMRegister src);
987 void Movups(XMMRegister dst, const Operand& src); 988 void Movups(XMMRegister dst, const Operand& src);
988 void Movups(const Operand& dst, XMMRegister src); 989 void Movups(const Operand& dst, XMMRegister src);
989 void Movapd(XMMRegister dst, XMMRegister src); 990 void Movapd(XMMRegister dst, XMMRegister src);
991 void Movupd(XMMRegister dst, const Operand& src);
992 void Movupd(const Operand& dst, XMMRegister src);
990 void Movmskpd(Register dst, XMMRegister src); 993 void Movmskpd(Register dst, XMMRegister src);
991 994
992 void Xorps(XMMRegister dst, XMMRegister src); 995 void Xorps(XMMRegister dst, XMMRegister src);
993 void Xorps(XMMRegister dst, const Operand& src); 996 void Xorps(XMMRegister dst, const Operand& src);
994 997
995 void Roundss(XMMRegister dst, XMMRegister src, RoundingMode mode); 998 void Roundss(XMMRegister dst, XMMRegister src, RoundingMode mode);
996 void Roundsd(XMMRegister dst, XMMRegister src, RoundingMode mode); 999 void Roundsd(XMMRegister dst, XMMRegister src, RoundingMode mode);
997 void Sqrtsd(XMMRegister dst, XMMRegister src); 1000 void Sqrtsd(XMMRegister dst, XMMRegister src);
998 void Sqrtsd(XMMRegister dst, const Operand& src); 1001 void Sqrtsd(XMMRegister dst, const Operand& src);
999 1002
1000 void Ucomiss(XMMRegister src1, XMMRegister src2); 1003 void Ucomiss(XMMRegister src1, XMMRegister src2);
1001 void Ucomiss(XMMRegister src1, const Operand& src2); 1004 void Ucomiss(XMMRegister src1, const Operand& src2);
1002 void Ucomisd(XMMRegister src1, XMMRegister src2); 1005 void Ucomisd(XMMRegister src1, XMMRegister src2);
1003 void Ucomisd(XMMRegister src1, const Operand& src2); 1006 void Ucomisd(XMMRegister src1, const Operand& src2);
1004 1007
1008 // ---------------------------------------------------------------------------
1009 // SIMD macros.
1010 void Absps(XMMRegister dst);
1011 void Negps(XMMRegister dst);
1012 void Abspd(XMMRegister dst);
1013 void Negpd(XMMRegister dst);
1014
1005 // Control Flow 1015 // Control Flow
1006 void Jump(Address destination, RelocInfo::Mode rmode); 1016 void Jump(Address destination, RelocInfo::Mode rmode);
1007 void Jump(ExternalReference ext); 1017 void Jump(ExternalReference ext);
1008 void Jump(const Operand& op); 1018 void Jump(const Operand& op);
1009 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); 1019 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode);
1010 1020
1011 void Call(Address destination, RelocInfo::Mode rmode); 1021 void Call(Address destination, RelocInfo::Mode rmode);
1012 void Call(ExternalReference ext); 1022 void Call(ExternalReference ext);
1013 void Call(const Operand& op); 1023 void Call(const Operand& op);
1014 void Call(Handle<Code> code_object, 1024 void Call(Handle<Code> code_object,
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 } \ 1794 } \
1785 masm-> 1795 masm->
1786 #else 1796 #else
1787 #define ACCESS_MASM(masm) masm-> 1797 #define ACCESS_MASM(masm) masm->
1788 #endif 1798 #endif
1789 1799
1790 } // namespace internal 1800 } // namespace internal
1791 } // namespace v8 1801 } // namespace v8
1792 1802
1793 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1803 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/disasm-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698