Commit ba908f17 authored by Luca Barbato's avatar Luca Barbato Committed by Tom Finegan

cmake: PowerPC VSX support

Change-Id: Icf9563de286156647082fd557f70688664c87f0c
parent 3a57a5be
......@@ -36,6 +36,9 @@ option(ENABLE_NEON_ASM "Enables NEON ASM optimizations on ARM targets." ON)
option(ENABLE_DSPR2 "Enables DSPR2 optimizations on MIPS targets." OFF)
option(ENABLE_MSA "Enables MSA optimizations on MIPS targets." OFF)
# VSX intrinsics flags.
option(ENABLE_VSX "Enables VSX optimizations on PowerPC targets." ON)
# x86/x86_64 assembly/intrinsics flags.
option(ENABLE_MMX "Enables MMX optimizations on x86/x86_64 targets." ON)
option(ENABLE_SSE "Enables SSE optimizations on x86/x86_64 targets." ON)
......
......@@ -587,6 +587,15 @@ function (setup_av1_targets)
endif ()
endif ()
if (HAVE_VSX)
if (AOM_AV1_COMMON_INTRIN_VSX)
add_intrinsics_object_library("-mvsx -maltivec"
"vsx"
"aom_av1_common"
"AOM_AV1_COMMON_INTRIN_VSX" "aom")
endif ()
endif ()
if (HAVE_MSA)
add_intrinsics_object_library("" "msa" "aom_av1_common"
"AOM_AV1_COMMON_INTRIN_MSA" "aom")
......
......@@ -67,6 +67,17 @@ elseif ("${AOM_TARGET_CPU}" MATCHES "^mips")
set(HAVE_MSA 0)
set(AOM_RTCD_FLAGS ${AOM_RTCD_FLAGS} --disable-msa)
endif ()
elseif ("${AOM_TARGET_CPU}" MATCHES "ppc")
set(ARCH_PPC 1)
set(RTCD_ARCH_PPC "yes")
if (ENABLE_VSX)
set(HAVE_VSX 1)
set(RTCD_HAVE_VSX "yes")
else ()
set(HAVE_VSX 0)
set(AOM_RTCD_FLAGS ${AOM_RTCD_FLAGS} --disable-vsx)
endif ()
elseif ("${AOM_TARGET_CPU}" MATCHES "^x86")
if ("${AOM_TARGET_CPU}" STREQUAL "x86")
set(ARCH_X86 1)
......
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