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 2974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2985 void Assembler::ucomisd(XMMRegister dst, const Operand& src) { | 2985 void Assembler::ucomisd(XMMRegister dst, const Operand& src) { |
2986 EnsureSpace ensure_space(this); | 2986 EnsureSpace ensure_space(this); |
2987 emit(0x66); | 2987 emit(0x66); |
2988 emit_optional_rex_32(dst, src); | 2988 emit_optional_rex_32(dst, src); |
2989 emit(0x0f); | 2989 emit(0x0f); |
2990 emit(0x2e); | 2990 emit(0x2e); |
2991 emit_sse_operand(dst, src); | 2991 emit_sse_operand(dst, src); |
2992 } | 2992 } |
2993 | 2993 |
2994 | 2994 |
| 2995 void Assembler::cmpltsd(XMMRegister dst, XMMRegister src) { |
| 2996 EnsureSpace ensure_space(this); |
| 2997 emit(0xF2); |
| 2998 emit_optional_rex_32(dst, src); |
| 2999 emit(0x0F); |
| 3000 emit(0xC2); |
| 3001 emit_sse_operand(dst, src); |
| 3002 emit(0x01); // LT == 1 |
| 3003 } |
| 3004 |
| 3005 |
2995 void Assembler::roundsd(XMMRegister dst, XMMRegister src, | 3006 void Assembler::roundsd(XMMRegister dst, XMMRegister src, |
2996 Assembler::RoundingMode mode) { | 3007 Assembler::RoundingMode mode) { |
2997 ASSERT(IsEnabled(SSE4_1)); | 3008 ASSERT(IsEnabled(SSE4_1)); |
2998 EnsureSpace ensure_space(this); | 3009 EnsureSpace ensure_space(this); |
2999 emit(0x66); | 3010 emit(0x66); |
3000 emit_optional_rex_32(dst, src); | 3011 emit_optional_rex_32(dst, src); |
3001 emit(0x0f); | 3012 emit(0x0f); |
3002 emit(0x3a); | 3013 emit(0x3a); |
3003 emit(0x0b); | 3014 emit(0x0b); |
3004 emit_sse_operand(dst, src); | 3015 emit_sse_operand(dst, src); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3110 bool RelocInfo::IsCodedSpecially() { | 3121 bool RelocInfo::IsCodedSpecially() { |
3111 // The deserializer needs to know whether a pointer is specially coded. Being | 3122 // The deserializer needs to know whether a pointer is specially coded. Being |
3112 // specially coded on x64 means that it is a relative 32 bit address, as used | 3123 // specially coded on x64 means that it is a relative 32 bit address, as used |
3113 // by branch instructions. | 3124 // by branch instructions. |
3114 return (1 << rmode_) & kApplyMask; | 3125 return (1 << rmode_) & kApplyMask; |
3115 } | 3126 } |
3116 | 3127 |
3117 } } // namespace v8::internal | 3128 } } // namespace v8::internal |
3118 | 3129 |
3119 #endif // V8_TARGET_ARCH_X64 | 3130 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |