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 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 AVX_3(instr##pd, opcode, vpd) | 1311 AVX_3(instr##pd, opcode, vpd) |
1312 | 1312 |
1313 #define AVX_3(instr, opcode, impl) \ | 1313 #define AVX_3(instr, opcode, impl) \ |
1314 void instr(XMMRegister dst, XMMRegister src1, XMMRegister src2) { \ | 1314 void instr(XMMRegister dst, XMMRegister src1, XMMRegister src2) { \ |
1315 impl(opcode, dst, src1, src2); \ | 1315 impl(opcode, dst, src1, src2); \ |
1316 } \ | 1316 } \ |
1317 void instr(XMMRegister dst, XMMRegister src1, const Operand& src2) { \ | 1317 void instr(XMMRegister dst, XMMRegister src1, const Operand& src2) { \ |
1318 impl(opcode, dst, src1, src2); \ | 1318 impl(opcode, dst, src1, src2); \ |
1319 } | 1319 } |
1320 | 1320 |
| 1321 AVX_SP_3(vsqrt, 0x51); |
1321 AVX_SP_3(vadd, 0x58); | 1322 AVX_SP_3(vadd, 0x58); |
1322 AVX_SP_3(vsub, 0x5c); | 1323 AVX_SP_3(vsub, 0x5c); |
1323 AVX_SP_3(vmul, 0x59); | 1324 AVX_SP_3(vmul, 0x59); |
1324 AVX_SP_3(vdiv, 0x5e); | 1325 AVX_SP_3(vdiv, 0x5e); |
1325 AVX_SP_3(vmin, 0x5d); | 1326 AVX_SP_3(vmin, 0x5d); |
1326 AVX_SP_3(vmax, 0x5f); | 1327 AVX_SP_3(vmax, 0x5f); |
1327 AVX_P_3(vand, 0x54); | 1328 AVX_P_3(vand, 0x54); |
1328 AVX_P_3(vor, 0x56); | 1329 AVX_P_3(vor, 0x56); |
1329 AVX_P_3(vxor, 0x57); | 1330 AVX_P_3(vxor, 0x57); |
1330 AVX_3(vpcmpeqd, 0x76, vpd); | 1331 AVX_3(vpcmpeqd, 0x76, vpd); |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2144 Assembler* assembler_; | 2145 Assembler* assembler_; |
2145 #ifdef DEBUG | 2146 #ifdef DEBUG |
2146 int space_before_; | 2147 int space_before_; |
2147 #endif | 2148 #endif |
2148 }; | 2149 }; |
2149 | 2150 |
2150 } // namespace internal | 2151 } // namespace internal |
2151 } // namespace v8 | 2152 } // namespace v8 |
2152 | 2153 |
2153 #endif // V8_X64_ASSEMBLER_X64_H_ | 2154 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |