OLD | NEW |
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 #include "src/x64/assembler-x64.h" | 5 #include "src/x64/assembler-x64.h" |
6 | 6 |
7 #include <cstring> | 7 #include <cstring> |
8 | 8 |
9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
10 | 10 |
(...skipping 3296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3307 void Assembler::punpckhdq(XMMRegister dst, XMMRegister src) { | 3307 void Assembler::punpckhdq(XMMRegister dst, XMMRegister src) { |
3308 EnsureSpace ensure_space(this); | 3308 EnsureSpace ensure_space(this); |
3309 emit(0x66); | 3309 emit(0x66); |
3310 emit_optional_rex_32(dst, src); | 3310 emit_optional_rex_32(dst, src); |
3311 emit(0x0F); | 3311 emit(0x0F); |
3312 emit(0x6A); | 3312 emit(0x6A); |
3313 emit_sse_operand(dst, src); | 3313 emit_sse_operand(dst, src); |
3314 } | 3314 } |
3315 | 3315 |
3316 | 3316 |
| 3317 void Assembler::maxsd(XMMRegister dst, XMMRegister src) { |
| 3318 EnsureSpace ensure_space(this); |
| 3319 emit(0xF2); |
| 3320 emit_optional_rex_32(dst, src); |
| 3321 emit(0x0F); |
| 3322 emit(0x5F); |
| 3323 emit_sse_operand(dst, src); |
| 3324 } |
| 3325 |
| 3326 |
| 3327 void Assembler::maxsd(XMMRegister dst, const Operand& src) { |
| 3328 EnsureSpace ensure_space(this); |
| 3329 emit(0xF2); |
| 3330 emit_optional_rex_32(dst, src); |
| 3331 emit(0x0F); |
| 3332 emit(0x5F); |
| 3333 emit_sse_operand(dst, src); |
| 3334 } |
| 3335 |
| 3336 |
| 3337 void Assembler::minsd(XMMRegister dst, XMMRegister src) { |
| 3338 EnsureSpace ensure_space(this); |
| 3339 emit(0xF2); |
| 3340 emit_optional_rex_32(dst, src); |
| 3341 emit(0x0F); |
| 3342 emit(0x5D); |
| 3343 emit_sse_operand(dst, src); |
| 3344 } |
| 3345 |
| 3346 |
| 3347 void Assembler::minsd(XMMRegister dst, const Operand& src) { |
| 3348 EnsureSpace ensure_space(this); |
| 3349 emit(0xF2); |
| 3350 emit_optional_rex_32(dst, src); |
| 3351 emit(0x0F); |
| 3352 emit(0x5D); |
| 3353 emit_sse_operand(dst, src); |
| 3354 } |
| 3355 |
| 3356 |
3317 // AVX instructions | 3357 // AVX instructions |
3318 void Assembler::vfmasd(byte op, XMMRegister dst, XMMRegister src1, | 3358 void Assembler::vfmasd(byte op, XMMRegister dst, XMMRegister src1, |
3319 XMMRegister src2) { | 3359 XMMRegister src2) { |
3320 DCHECK(IsEnabled(FMA3)); | 3360 DCHECK(IsEnabled(FMA3)); |
3321 EnsureSpace ensure_space(this); | 3361 EnsureSpace ensure_space(this); |
3322 emit_vex_prefix(dst, src1, src2, kLIG, k66, k0F38, kW1); | 3362 emit_vex_prefix(dst, src1, src2, kLIG, k66, k0F38, kW1); |
3323 emit(op); | 3363 emit(op); |
3324 emit_sse_operand(dst, src2); | 3364 emit_sse_operand(dst, src2); |
3325 } | 3365 } |
3326 | 3366 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3481 | 3521 |
3482 | 3522 |
3483 bool RelocInfo::IsInConstantPool() { | 3523 bool RelocInfo::IsInConstantPool() { |
3484 return false; | 3524 return false; |
3485 } | 3525 } |
3486 | 3526 |
3487 | 3527 |
3488 } } // namespace v8::internal | 3528 } } // namespace v8::internal |
3489 | 3529 |
3490 #endif // V8_TARGET_ARCH_X64 | 3530 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |