| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 void ucomisd(XMMRegister dst, const Operand& src); | 1150 void ucomisd(XMMRegister dst, const Operand& src); |
| 1151 void cmpltsd(XMMRegister dst, XMMRegister src); | 1151 void cmpltsd(XMMRegister dst, XMMRegister src); |
| 1152 void pcmpeqd(XMMRegister dst, XMMRegister src); | 1152 void pcmpeqd(XMMRegister dst, XMMRegister src); |
| 1153 | 1153 |
| 1154 void movmskpd(Register dst, XMMRegister src); | 1154 void movmskpd(Register dst, XMMRegister src); |
| 1155 | 1155 |
| 1156 void punpckldq(XMMRegister dst, XMMRegister src); | 1156 void punpckldq(XMMRegister dst, XMMRegister src); |
| 1157 void punpckhdq(XMMRegister dst, XMMRegister src); | 1157 void punpckhdq(XMMRegister dst, XMMRegister src); |
| 1158 | 1158 |
| 1159 // SSE 4.1 instruction | 1159 // SSE 4.1 instruction |
| 1160 void insertps(XMMRegister dst, XMMRegister src, byte imm8); |
| 1160 void extractps(Register dst, XMMRegister src, byte imm8); | 1161 void extractps(Register dst, XMMRegister src, byte imm8); |
| 1161 | |
| 1162 void pextrd(Register dst, XMMRegister src, int8_t imm8); | 1162 void pextrd(Register dst, XMMRegister src, int8_t imm8); |
| 1163 | |
| 1164 void pinsrd(XMMRegister dst, Register src, int8_t imm8); | 1163 void pinsrd(XMMRegister dst, Register src, int8_t imm8); |
| 1165 void pinsrd(XMMRegister dst, const Operand& src, int8_t imm8); | 1164 void pinsrd(XMMRegister dst, const Operand& src, int8_t imm8); |
| 1166 | 1165 |
| 1167 void roundss(XMMRegister dst, XMMRegister src, RoundingMode mode); | 1166 void roundss(XMMRegister dst, XMMRegister src, RoundingMode mode); |
| 1168 void roundsd(XMMRegister dst, XMMRegister src, RoundingMode mode); | 1167 void roundsd(XMMRegister dst, XMMRegister src, RoundingMode mode); |
| 1169 | 1168 |
| 1169 void cmpps(XMMRegister dst, XMMRegister src, int8_t cmp); |
| 1170 void cmpeqps(XMMRegister dst, XMMRegister src); |
| 1171 void cmpltps(XMMRegister dst, XMMRegister src); |
| 1172 void cmpleps(XMMRegister dst, XMMRegister src); |
| 1173 void cmpneqps(XMMRegister dst, XMMRegister src); |
| 1174 void cmpnltps(XMMRegister dst, XMMRegister src); |
| 1175 void cmpnleps(XMMRegister dst, XMMRegister src); |
| 1176 |
| 1177 void minps(XMMRegister dst, XMMRegister src); |
| 1178 void minps(XMMRegister dst, const Operand& src); |
| 1179 void maxps(XMMRegister dst, XMMRegister src); |
| 1180 void maxps(XMMRegister dst, const Operand& src); |
| 1181 void rcpps(XMMRegister dst, XMMRegister src); |
| 1182 void rcpps(XMMRegister dst, const Operand& src); |
| 1183 void rsqrtps(XMMRegister dst, XMMRegister src); |
| 1184 void rsqrtps(XMMRegister dst, const Operand& src); |
| 1185 void sqrtps(XMMRegister dst, XMMRegister src); |
| 1186 void sqrtps(XMMRegister dst, const Operand& src); |
| 1187 void movups(XMMRegister dst, XMMRegister src); |
| 1188 void movups(XMMRegister dst, const Operand& src); |
| 1189 void movups(const Operand& dst, XMMRegister src); |
| 1190 void paddd(XMMRegister dst, XMMRegister src); |
| 1191 void paddd(XMMRegister dst, const Operand& src); |
| 1192 void psubd(XMMRegister dst, XMMRegister src); |
| 1193 void psubd(XMMRegister dst, const Operand& src); |
| 1194 void pmulld(XMMRegister dst, XMMRegister src); |
| 1195 void pmulld(XMMRegister dst, const Operand& src); |
| 1196 void pmuludq(XMMRegister dst, XMMRegister src); |
| 1197 void pmuludq(XMMRegister dst, const Operand& src); |
| 1198 void punpackldq(XMMRegister dst, XMMRegister src); |
| 1199 void punpackldq(XMMRegister dst, const Operand& src); |
| 1200 void psrldq(XMMRegister dst, uint8_t shift); |
| 1201 void pshufd(XMMRegister dst, XMMRegister src, uint8_t shuffle); |
| 1202 void cvtps2dq(XMMRegister dst, XMMRegister src); |
| 1203 void cvtps2dq(XMMRegister dst, const Operand& src); |
| 1204 void cvtdq2ps(XMMRegister dst, XMMRegister src); |
| 1205 void cvtdq2ps(XMMRegister dst, const Operand& src); |
| 1206 |
| 1170 // AVX instruction | 1207 // AVX instruction |
| 1171 void vfmadd132sd(XMMRegister dst, XMMRegister src1, XMMRegister src2) { | 1208 void vfmadd132sd(XMMRegister dst, XMMRegister src1, XMMRegister src2) { |
| 1172 vfmasd(0x99, dst, src1, src2); | 1209 vfmasd(0x99, dst, src1, src2); |
| 1173 } | 1210 } |
| 1174 void vfmadd213sd(XMMRegister dst, XMMRegister src1, XMMRegister src2) { | 1211 void vfmadd213sd(XMMRegister dst, XMMRegister src1, XMMRegister src2) { |
| 1175 vfmasd(0xa9, dst, src1, src2); | 1212 vfmasd(0xa9, dst, src1, src2); |
| 1176 } | 1213 } |
| 1177 void vfmadd231sd(XMMRegister dst, XMMRegister src1, XMMRegister src2) { | 1214 void vfmadd231sd(XMMRegister dst, XMMRegister src1, XMMRegister src2) { |
| 1178 vfmasd(0xb9, dst, src1, src2); | 1215 vfmasd(0xb9, dst, src1, src2); |
| 1179 } | 1216 } |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1936 | 1973 |
| 1937 // Emit the code-object-relative offset of the label's position | 1974 // Emit the code-object-relative offset of the label's position |
| 1938 inline void emit_code_relative_offset(Label* label); | 1975 inline void emit_code_relative_offset(Label* label); |
| 1939 | 1976 |
| 1940 // The first argument is the reg field, the second argument is the r/m field. | 1977 // The first argument is the reg field, the second argument is the r/m field. |
| 1941 void emit_sse_operand(XMMRegister dst, XMMRegister src); | 1978 void emit_sse_operand(XMMRegister dst, XMMRegister src); |
| 1942 void emit_sse_operand(XMMRegister reg, const Operand& adr); | 1979 void emit_sse_operand(XMMRegister reg, const Operand& adr); |
| 1943 void emit_sse_operand(Register reg, const Operand& adr); | 1980 void emit_sse_operand(Register reg, const Operand& adr); |
| 1944 void emit_sse_operand(XMMRegister dst, Register src); | 1981 void emit_sse_operand(XMMRegister dst, Register src); |
| 1945 void emit_sse_operand(Register dst, XMMRegister src); | 1982 void emit_sse_operand(Register dst, XMMRegister src); |
| 1983 void emit_sse_operand(XMMRegister dst); |
| 1946 | 1984 |
| 1947 // Emit machine code for one of the operations ADD, ADC, SUB, SBC, | 1985 // Emit machine code for one of the operations ADD, ADC, SUB, SBC, |
| 1948 // AND, OR, XOR, or CMP. The encodings of these operations are all | 1986 // AND, OR, XOR, or CMP. The encodings of these operations are all |
| 1949 // similar, differing just in the opcode or in the reg field of the | 1987 // similar, differing just in the opcode or in the reg field of the |
| 1950 // ModR/M byte. | 1988 // ModR/M byte. |
| 1951 void arithmetic_op_8(byte opcode, Register reg, Register rm_reg); | 1989 void arithmetic_op_8(byte opcode, Register reg, Register rm_reg); |
| 1952 void arithmetic_op_8(byte opcode, Register reg, const Operand& rm_reg); | 1990 void arithmetic_op_8(byte opcode, Register reg, const Operand& rm_reg); |
| 1953 void arithmetic_op_16(byte opcode, Register reg, Register rm_reg); | 1991 void arithmetic_op_16(byte opcode, Register reg, Register rm_reg); |
| 1954 void arithmetic_op_16(byte opcode, Register reg, const Operand& rm_reg); | 1992 void arithmetic_op_16(byte opcode, Register reg, const Operand& rm_reg); |
| 1955 // Operate on operands/registers with pointer size, 32-bit or 64-bit size. | 1993 // Operate on operands/registers with pointer size, 32-bit or 64-bit size. |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2242 Assembler* assembler_; | 2280 Assembler* assembler_; |
| 2243 #ifdef DEBUG | 2281 #ifdef DEBUG |
| 2244 int space_before_; | 2282 int space_before_; |
| 2245 #endif | 2283 #endif |
| 2246 }; | 2284 }; |
| 2247 | 2285 |
| 2248 } // namespace internal | 2286 } // namespace internal |
| 2249 } // namespace v8 | 2287 } // namespace v8 |
| 2250 | 2288 |
| 2251 #endif // V8_X64_ASSEMBLER_X64_H_ | 2289 #endif // V8_X64_ASSEMBLER_X64_H_ |
| OLD | NEW |