OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2623 matching lines...) Loading... |
2634 EnsureSpace ensure_space(this); | 2634 EnsureSpace ensure_space(this); |
2635 last_pc_ = pc_; | 2635 last_pc_ = pc_; |
2636 emit(0x66); | 2636 emit(0x66); |
2637 emit_rex_64(src, dst); | 2637 emit_rex_64(src, dst); |
2638 emit(0x0F); | 2638 emit(0x0F); |
2639 emit(0x7E); | 2639 emit(0x7E); |
2640 emit_sse_operand(src, dst); | 2640 emit_sse_operand(src, dst); |
2641 } | 2641 } |
2642 | 2642 |
2643 | 2643 |
| 2644 void Assembler::movdqa(const Operand& dst, XMMRegister src) { |
| 2645 ASSERT(CpuFeatures::IsEnabled(SSE2)); |
| 2646 EnsureSpace ensure_space(this); |
| 2647 last_pc_ = pc_; |
| 2648 emit(0x66); |
| 2649 emit_rex_64(src, dst); |
| 2650 emit(0x0F); |
| 2651 emit(0x7F); |
| 2652 emit_sse_operand(src, dst); |
| 2653 } |
| 2654 |
| 2655 |
| 2656 void Assembler::movdqa(XMMRegister dst, const Operand& src) { |
| 2657 ASSERT(CpuFeatures::IsEnabled(SSE2)); |
| 2658 EnsureSpace ensure_space(this); |
| 2659 last_pc_ = pc_; |
| 2660 emit(0x66); |
| 2661 emit_rex_64(dst, src); |
| 2662 emit(0x0F); |
| 2663 emit(0x6F); |
| 2664 emit_sse_operand(dst, src); |
| 2665 } |
| 2666 |
| 2667 |
2644 void Assembler::extractps(Register dst, XMMRegister src, byte imm8) { | 2668 void Assembler::extractps(Register dst, XMMRegister src, byte imm8) { |
2645 ASSERT(is_uint2(imm8)); | 2669 ASSERT(is_uint2(imm8)); |
2646 EnsureSpace ensure_space(this); | 2670 EnsureSpace ensure_space(this); |
2647 last_pc_ = pc_; | 2671 last_pc_ = pc_; |
2648 emit(0x66); | 2672 emit(0x66); |
2649 emit_optional_rex_32(dst, src); | 2673 emit_optional_rex_32(dst, src); |
2650 emit(0x0F); | 2674 emit(0x0F); |
2651 emit(0x3A); | 2675 emit(0x3A); |
2652 emit(0x17); | 2676 emit(0x17); |
2653 emit_sse_operand(dst, src); | 2677 emit_sse_operand(dst, src); |
(...skipping 375 matching lines...) Loading... |
3029 // specially coded on x64 means that it is a relative 32 bit address, as used | 3053 // specially coded on x64 means that it is a relative 32 bit address, as used |
3030 // by branch instructions. | 3054 // by branch instructions. |
3031 return (1 << rmode_) & kApplyMask; | 3055 return (1 << rmode_) & kApplyMask; |
3032 } | 3056 } |
3033 | 3057 |
3034 | 3058 |
3035 | 3059 |
3036 } } // namespace v8::internal | 3060 } } // namespace v8::internal |
3037 | 3061 |
3038 #endif // V8_TARGET_ARCH_X64 | 3062 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |