OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3022 | 3022 |
3023 void Assembler::movmskps(Register dst, XMMRegister src) { | 3023 void Assembler::movmskps(Register dst, XMMRegister src) { |
3024 EnsureSpace ensure_space(this); | 3024 EnsureSpace ensure_space(this); |
3025 emit_optional_rex_32(dst, src); | 3025 emit_optional_rex_32(dst, src); |
3026 emit(0x0f); | 3026 emit(0x0f); |
3027 emit(0x50); | 3027 emit(0x50); |
3028 emit_sse_operand(dst, src); | 3028 emit_sse_operand(dst, src); |
3029 } | 3029 } |
3030 | 3030 |
3031 | 3031 |
| 3032 void Assembler::pcmpeqd(XMMRegister dst, XMMRegister src) { |
| 3033 EnsureSpace ensure_space(this); |
| 3034 emit(0x66); |
| 3035 emit(0x0f); |
| 3036 emit(0x76); |
| 3037 emit_sse_operand(dst, src); |
| 3038 } |
| 3039 |
| 3040 |
3032 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { | 3041 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { |
3033 Register ireg = { reg.code() }; | 3042 Register ireg = { reg.code() }; |
3034 emit_operand(ireg, adr); | 3043 emit_operand(ireg, adr); |
3035 } | 3044 } |
3036 | 3045 |
3037 | 3046 |
3038 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { | 3047 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { |
3039 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); | 3048 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); |
3040 } | 3049 } |
3041 | 3050 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3113 bool RelocInfo::IsCodedSpecially() { | 3122 bool RelocInfo::IsCodedSpecially() { |
3114 // The deserializer needs to know whether a pointer is specially coded. Being | 3123 // The deserializer needs to know whether a pointer is specially coded. Being |
3115 // specially coded on x64 means that it is a relative 32 bit address, as used | 3124 // specially coded on x64 means that it is a relative 32 bit address, as used |
3116 // by branch instructions. | 3125 // by branch instructions. |
3117 return (1 << rmode_) & kApplyMask; | 3126 return (1 << rmode_) & kApplyMask; |
3118 } | 3127 } |
3119 | 3128 |
3120 } } // namespace v8::internal | 3129 } } // namespace v8::internal |
3121 | 3130 |
3122 #endif // V8_TARGET_ARCH_X64 | 3131 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |