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 3210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3221 | 3221 |
3222 void Assembler::cmpps(XMMRegister dst, XMMRegister src, int8_t cmp) { | 3222 void Assembler::cmpps(XMMRegister dst, XMMRegister src, int8_t cmp) { |
3223 EnsureSpace ensure_space(this); | 3223 EnsureSpace ensure_space(this); |
3224 emit_optional_rex_32(dst, src); | 3224 emit_optional_rex_32(dst, src); |
3225 emit(0x0F); | 3225 emit(0x0F); |
3226 emit(0xC2); | 3226 emit(0xC2); |
3227 emit_sse_operand(dst, src); | 3227 emit_sse_operand(dst, src); |
3228 emit(cmp); | 3228 emit(cmp); |
3229 } | 3229 } |
3230 | 3230 |
3231 void Assembler::cmpeqps(XMMRegister dst, XMMRegister src) { | 3231 void Assembler::cmpps(XMMRegister dst, const Operand& src, int8_t cmp) { |
3232 cmpps(dst, src, 0x0); | 3232 EnsureSpace ensure_space(this); |
| 3233 emit_optional_rex_32(dst, src); |
| 3234 emit(0x0F); |
| 3235 emit(0xC2); |
| 3236 emit_sse_operand(dst, src); |
| 3237 emit(cmp); |
3233 } | 3238 } |
3234 | 3239 |
3235 void Assembler::cmpltps(XMMRegister dst, XMMRegister src) { | 3240 void Assembler::cmppd(XMMRegister dst, XMMRegister src, int8_t cmp) { |
3236 cmpps(dst, src, 0x1); | 3241 EnsureSpace ensure_space(this); |
| 3242 emit_optional_rex_32(dst, src); |
| 3243 emit(0x66); |
| 3244 emit(0x0F); |
| 3245 emit(0xC2); |
| 3246 emit_sse_operand(dst, src); |
| 3247 emit(cmp); |
3237 } | 3248 } |
3238 | 3249 |
3239 void Assembler::cmpleps(XMMRegister dst, XMMRegister src) { | 3250 void Assembler::cmppd(XMMRegister dst, const Operand& src, int8_t cmp) { |
3240 cmpps(dst, src, 0x2); | 3251 EnsureSpace ensure_space(this); |
3241 } | 3252 emit_optional_rex_32(dst, src); |
3242 | 3253 emit(0x66); |
3243 void Assembler::cmpneqps(XMMRegister dst, XMMRegister src) { | 3254 emit(0x0F); |
3244 cmpps(dst, src, 0x4); | 3255 emit(0xC2); |
3245 } | 3256 emit_sse_operand(dst, src); |
3246 | 3257 emit(cmp); |
3247 void Assembler::cmpnltps(XMMRegister dst, XMMRegister src) { | |
3248 cmpps(dst, src, 0x5); | |
3249 } | |
3250 | |
3251 void Assembler::cmpnleps(XMMRegister dst, XMMRegister src) { | |
3252 cmpps(dst, src, 0x6); | |
3253 } | 3258 } |
3254 | 3259 |
3255 void Assembler::cvttss2si(Register dst, const Operand& src) { | 3260 void Assembler::cvttss2si(Register dst, const Operand& src) { |
3256 DCHECK(!IsEnabled(AVX)); | 3261 DCHECK(!IsEnabled(AVX)); |
3257 EnsureSpace ensure_space(this); | 3262 EnsureSpace ensure_space(this); |
3258 emit(0xF3); | 3263 emit(0xF3); |
3259 emit_optional_rex_32(dst, src); | 3264 emit_optional_rex_32(dst, src); |
3260 emit(0x0F); | 3265 emit(0x0F); |
3261 emit(0x2C); | 3266 emit(0x2C); |
3262 emit_operand(dst, src); | 3267 emit_operand(dst, src); |
(...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4615 | 4620 |
4616 bool RelocInfo::IsInConstantPool() { | 4621 bool RelocInfo::IsInConstantPool() { |
4617 return false; | 4622 return false; |
4618 } | 4623 } |
4619 | 4624 |
4620 | 4625 |
4621 } // namespace internal | 4626 } // namespace internal |
4622 } // namespace v8 | 4627 } // namespace v8 |
4623 | 4628 |
4624 #endif // V8_TARGET_ARCH_X64 | 4629 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |