Commit 1866b69c authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[ia32] Merge some macro-assembler functions into macro lists

Bug: v8:11384
Change-Id: I5da5cc11c69844833ab703bd2fb439e4f51db501
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2750727Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73387}
parent c929b7a9
...@@ -628,28 +628,6 @@ void TurboAssembler::Cvttsd2ui(Register dst, Operand src, XMMRegister tmp) { ...@@ -628,28 +628,6 @@ void TurboAssembler::Cvttsd2ui(Register dst, Operand src, XMMRegister tmp) {
add(dst, Immediate(0x80000000)); add(dst, Immediate(0x80000000));
} }
void TurboAssembler::Roundps(XMMRegister dst, XMMRegister src,
RoundingMode mode) {
if (CpuFeatures::IsSupported(AVX)) {
CpuFeatureScope scope(this, AVX);
vroundps(dst, src, mode);
} else {
CpuFeatureScope scope(this, SSE4_1);
roundps(dst, src, mode);
}
}
void TurboAssembler::Roundpd(XMMRegister dst, XMMRegister src,
RoundingMode mode) {
if (CpuFeatures::IsSupported(AVX)) {
CpuFeatureScope scope(this, AVX);
vroundpd(dst, src, mode);
} else {
CpuFeatureScope scope(this, SSE4_1);
roundpd(dst, src, mode);
}
}
void TurboAssembler::Pmulhrsw(XMMRegister dst, XMMRegister src1, void TurboAssembler::Pmulhrsw(XMMRegister dst, XMMRegister src1,
XMMRegister src2) { XMMRegister src2) {
if (CpuFeatures::IsSupported(AVX)) { if (CpuFeatures::IsSupported(AVX)) {
......
...@@ -338,6 +338,10 @@ class V8_EXPORT_PRIVATE TurboAssembler : public TurboAssemblerBase { ...@@ -338,6 +338,10 @@ class V8_EXPORT_PRIVATE TurboAssembler : public TurboAssemblerBase {
SSE4_1) SSE4_1)
AVX_OP3_WITH_TYPE_SCOPE(Extractps, extractps, Operand, XMMRegister, uint8_t, AVX_OP3_WITH_TYPE_SCOPE(Extractps, extractps, Operand, XMMRegister, uint8_t,
SSE4_1) SSE4_1)
AVX_OP3_WITH_TYPE_SCOPE(Roundps, roundps, XMMRegister, XMMRegister,
RoundingMode, SSE4_1)
AVX_OP3_WITH_TYPE_SCOPE(Roundpd, roundpd, XMMRegister, XMMRegister,
RoundingMode, SSE4_1)
#undef AVX_OP3_WITH_TYPE_SCOPE #undef AVX_OP3_WITH_TYPE_SCOPE
// SSE/SSE2 instructions with AVX version. // SSE/SSE2 instructions with AVX version.
...@@ -701,9 +705,6 @@ class V8_EXPORT_PRIVATE TurboAssembler : public TurboAssemblerBase { ...@@ -701,9 +705,6 @@ class V8_EXPORT_PRIVATE TurboAssembler : public TurboAssemblerBase {
} }
void Cvttsd2ui(Register dst, Operand src, XMMRegister tmp); void Cvttsd2ui(Register dst, Operand src, XMMRegister tmp);
void Roundps(XMMRegister dst, XMMRegister src, RoundingMode mode);
void Roundpd(XMMRegister dst, XMMRegister src, RoundingMode mode);
// Handles SSE and AVX. On SSE, moves src to dst if they are not equal. // Handles SSE and AVX. On SSE, moves src to dst if they are not equal.
void Pmulhrsw(XMMRegister dst, XMMRegister src1, XMMRegister src2); void Pmulhrsw(XMMRegister dst, XMMRegister src1, XMMRegister src2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment