Commit eff32ae8 authored by Milad Fa's avatar Milad Fa Committed by Commit Bot

PPC [simd]: Add Simd as a feature to PowerPC

Simd implementations on Power need P9 at a minimum.
Feature is enabled on the simulator regardless of the host.

Change-Id: I06bbfea11615457f5d837fe00c3dfe36b277d82b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2787490Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
Reviewed-by: 's avatarZhi An Ng <zhin@chromium.org>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#73726}
parent c9063b7e
......@@ -58,6 +58,7 @@ enum CpuFeature {
ISELECT,
VSX,
MODULO,
SIMD,
#elif V8_TARGET_ARCH_S390X
FPU,
......
......@@ -77,6 +77,10 @@ void CpuFeatures::ProbeImpl(bool cross_compile) {
cpu.part() == base::CPU::PPC_POWER9) {
supported_ |= (1u << FPR_GPR_MOV);
}
// V8 PPC Simd implementations need P9 at a minimum.
if (cpu.part() == base::CPU::PPC_POWER9) {
supported_ |= (1u << SIMD);
}
#endif
if (cpu.part() == base::CPU::PPC_POWER6 ||
cpu.part() == base::CPU::PPC_POWER7 ||
......@@ -108,6 +112,7 @@ void CpuFeatures::ProbeImpl(bool cross_compile) {
supported_ |= (1u << ISELECT);
supported_ |= (1u << VSX);
supported_ |= (1u << MODULO);
supported_ |= (1u << SIMD);
#if V8_TARGET_ARCH_PPC64
supported_ |= (1u << FPR_GPR_MOV);
#endif
......
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