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 3147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3158 void Assembler::cvtlsi2ss(XMMRegister dst, Register src) { | 3158 void Assembler::cvtlsi2ss(XMMRegister dst, Register src) { |
3159 EnsureSpace ensure_space(this); | 3159 EnsureSpace ensure_space(this); |
3160 emit(0xF3); | 3160 emit(0xF3); |
3161 emit_optional_rex_32(dst, src); | 3161 emit_optional_rex_32(dst, src); |
3162 emit(0x0F); | 3162 emit(0x0F); |
3163 emit(0x2A); | 3163 emit(0x2A); |
3164 emit_sse_operand(dst, src); | 3164 emit_sse_operand(dst, src); |
3165 } | 3165 } |
3166 | 3166 |
3167 | 3167 |
| 3168 void Assembler::cvtqsi2ss(XMMRegister dst, const Operand& src) { |
| 3169 DCHECK(!IsEnabled(AVX)); |
| 3170 EnsureSpace ensure_space(this); |
| 3171 emit(0xF3); |
| 3172 emit_rex_64(dst, src); |
| 3173 emit(0x0F); |
| 3174 emit(0x2A); |
| 3175 emit_sse_operand(dst, src); |
| 3176 } |
| 3177 |
| 3178 |
| 3179 void Assembler::cvtqsi2ss(XMMRegister dst, Register src) { |
| 3180 DCHECK(!IsEnabled(AVX)); |
| 3181 EnsureSpace ensure_space(this); |
| 3182 emit(0xF3); |
| 3183 emit_rex_64(dst, src); |
| 3184 emit(0x0F); |
| 3185 emit(0x2A); |
| 3186 emit_sse_operand(dst, src); |
| 3187 } |
| 3188 |
| 3189 |
3168 void Assembler::cvtqsi2sd(XMMRegister dst, const Operand& src) { | 3190 void Assembler::cvtqsi2sd(XMMRegister dst, const Operand& src) { |
3169 DCHECK(!IsEnabled(AVX)); | 3191 DCHECK(!IsEnabled(AVX)); |
3170 EnsureSpace ensure_space(this); | 3192 EnsureSpace ensure_space(this); |
3171 emit(0xF2); | 3193 emit(0xF2); |
3172 emit_rex_64(dst, src); | 3194 emit_rex_64(dst, src); |
3173 emit(0x0F); | 3195 emit(0x0F); |
3174 emit(0x2A); | 3196 emit(0x2A); |
3175 emit_sse_operand(dst, src); | 3197 emit_sse_operand(dst, src); |
3176 } | 3198 } |
3177 | 3199 |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4077 | 4099 |
4078 bool RelocInfo::IsInConstantPool() { | 4100 bool RelocInfo::IsInConstantPool() { |
4079 return false; | 4101 return false; |
4080 } | 4102 } |
4081 | 4103 |
4082 | 4104 |
4083 } // namespace internal | 4105 } // namespace internal |
4084 } // namespace v8 | 4106 } // namespace v8 |
4085 | 4107 |
4086 #endif // V8_TARGET_ARCH_X64 | 4108 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |