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 2994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3005 EnsureSpace ensure_space(this); | 3005 EnsureSpace ensure_space(this); |
3006 last_pc_ = pc_; | 3006 last_pc_ = pc_; |
3007 emit(0x66); | 3007 emit(0x66); |
3008 emit_optional_rex_32(dst, src); | 3008 emit_optional_rex_32(dst, src); |
3009 emit(0x0f); | 3009 emit(0x0f); |
3010 emit(0x2e); | 3010 emit(0x2e); |
3011 emit_sse_operand(dst, src); | 3011 emit_sse_operand(dst, src); |
3012 } | 3012 } |
3013 | 3013 |
3014 | 3014 |
| 3015 void Assembler::movmskpd(Register dst, XMMRegister src) { |
| 3016 EnsureSpace ensure_space(this); |
| 3017 last_pc_ = pc_; |
| 3018 emit(0x66); |
| 3019 emit_optional_rex_32(dst, src); |
| 3020 emit(0x0f); |
| 3021 emit(0x50); |
| 3022 emit_sse_operand(dst, src); |
| 3023 } |
| 3024 |
3015 | 3025 |
3016 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { | 3026 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { |
3017 Register ireg = { reg.code() }; | 3027 Register ireg = { reg.code() }; |
3018 emit_operand(ireg, adr); | 3028 emit_operand(ireg, adr); |
3019 } | 3029 } |
3020 | 3030 |
3021 | 3031 |
3022 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { | 3032 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { |
3023 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); | 3033 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); |
3024 } | 3034 } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3089 // specially coded on x64 means that it is a relative 32 bit address, as used | 3099 // specially coded on x64 means that it is a relative 32 bit address, as used |
3090 // by branch instructions. | 3100 // by branch instructions. |
3091 return (1 << rmode_) & kApplyMask; | 3101 return (1 << rmode_) & kApplyMask; |
3092 } | 3102 } |
3093 | 3103 |
3094 | 3104 |
3095 | 3105 |
3096 } } // namespace v8::internal | 3106 } } // namespace v8::internal |
3097 | 3107 |
3098 #endif // V8_TARGET_ARCH_X64 | 3108 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |