Commit 8981ecbb authored by Deepti Gandluri's avatar Deepti Gandluri Committed by Commit Bot

[ia32] Use Wasm SSSE3 codegen flag for checking SIMD support

Bug: v8:11154
Change-Id: I71d524bb33dbc2f7583da9a7d9dc2c350b57bf51
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2686680
Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
Reviewed-by: 's avatarZhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72645}
parent 51fcfd58
......@@ -49,7 +49,11 @@ namespace internal {
bool CpuFeatures::SupportsOptimizer() { return true; }
bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(SSE4_1); }
bool CpuFeatures::SupportsWasmSimd128() {
if (IsSupported(SSE4_1)) return true;
if (FLAG_wasm_simd_ssse3_codegen && IsSupported(SSSE3)) return true;
return false;
}
// The modes possibly affected by apply must be in kApplyMask.
void RelocInfo::apply(intptr_t delta) {
......
......@@ -19,7 +19,7 @@ bool CpuFeatures::SupportsOptimizer() { return true; }
bool CpuFeatures::SupportsWasmSimd128() {
if (IsSupported(SSE4_1)) return true;
if (FLAG_wasm_simd_ssse3_codegen) return true;
if (FLAG_wasm_simd_ssse3_codegen && IsSupported(SSSE3)) return true;
return false;
}
......
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