From 0b33968b311e9d7ae8e80804d869ffd338d85741 Mon Sep 17 00:00:00 2001 From: Shalini Salomi Bodapati Date: Mon, 19 Nov 2018 09:57:56 +0530 Subject: [PATCH] Add x86 AVX2 and AVX512 supported architectures Bug: 123376719 Test: m checkbuild Change-Id: I74c7a63bbaba993eeb8bdd8c663ffa142c908279 Signed-off-by: Shalini Salomi Bodapati (cherry picked from commit f327f5f3f5d03471d69e757fe33899a7fd653f18) --- core/combo/arch/x86/amberlake.mk | 13 +++++++++++++ core/combo/arch/x86/broadwell.mk | 13 +++++++++++++ core/combo/arch/x86/icelake.mk | 14 ++++++++++++++ core/combo/arch/x86/kabylake.mk | 13 +++++++++++++ core/combo/arch/x86/skylake.mk | 15 +++++++++++++++ core/combo/arch/x86/tigerlake.mk | 14 ++++++++++++++ core/combo/arch/x86/whiskeylake.mk | 13 +++++++++++++ core/combo/arch/x86/x86.mk | 3 +++ core/combo/arch/x86_64/amberlake.mk | 13 +++++++++++++ core/combo/arch/x86_64/broadwell.mk | 13 +++++++++++++ core/combo/arch/x86_64/icelake.mk | 14 ++++++++++++++ core/combo/arch/x86_64/kabylake.mk | 13 +++++++++++++ core/combo/arch/x86_64/skylake.mk | 14 ++++++++++++++ core/combo/arch/x86_64/tigerlake.mk | 14 ++++++++++++++ core/combo/arch/x86_64/whiskeylake.mk | 13 +++++++++++++ core/combo/arch/x86_64/x86_64.mk | 3 +++ 16 files changed, 195 insertions(+) create mode 100644 core/combo/arch/x86/amberlake.mk create mode 100644 core/combo/arch/x86/broadwell.mk create mode 100644 core/combo/arch/x86/icelake.mk create mode 100644 core/combo/arch/x86/kabylake.mk create mode 100644 core/combo/arch/x86/skylake.mk create mode 100644 core/combo/arch/x86/tigerlake.mk create mode 100644 core/combo/arch/x86/whiskeylake.mk create mode 100644 core/combo/arch/x86_64/amberlake.mk create mode 100644 core/combo/arch/x86_64/broadwell.mk create mode 100644 core/combo/arch/x86_64/icelake.mk create mode 100644 core/combo/arch/x86_64/kabylake.mk create mode 100644 core/combo/arch/x86_64/skylake.mk create mode 100644 core/combo/arch/x86_64/tigerlake.mk create mode 100644 core/combo/arch/x86_64/whiskeylake.mk diff --git a/core/combo/arch/x86/amberlake.mk b/core/combo/arch/x86/amberlake.mk new file mode 100644 index 0000000000..37100a40ef --- /dev/null +++ b/core/combo/arch/x86/amberlake.mk @@ -0,0 +1,13 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86/broadwell.mk b/core/combo/arch/x86/broadwell.mk new file mode 100644 index 0000000000..37100a40ef --- /dev/null +++ b/core/combo/arch/x86/broadwell.mk @@ -0,0 +1,13 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86/icelake.mk b/core/combo/arch/x86/icelake.mk new file mode 100644 index 0000000000..76fe212969 --- /dev/null +++ b/core/combo/arch/x86/icelake.mk @@ -0,0 +1,14 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_AVX512 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86/kabylake.mk b/core/combo/arch/x86/kabylake.mk new file mode 100644 index 0000000000..50518d6859 --- /dev/null +++ b/core/combo/arch/x86/kabylake.mk @@ -0,0 +1,13 @@ +# Configuration for Linux on x86. +# Generating binaries for processors. +# that support AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86/skylake.mk b/core/combo/arch/x86/skylake.mk new file mode 100644 index 0000000000..03705c0d79 --- /dev/null +++ b/core/combo/arch/x86/skylake.mk @@ -0,0 +1,15 @@ +# Configuration for Linux on x86. +# Generating binaries for processors. +# that support AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_AVX512 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true + diff --git a/core/combo/arch/x86/tigerlake.mk b/core/combo/arch/x86/tigerlake.mk new file mode 100644 index 0000000000..76fe212969 --- /dev/null +++ b/core/combo/arch/x86/tigerlake.mk @@ -0,0 +1,14 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_AVX512 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86/whiskeylake.mk b/core/combo/arch/x86/whiskeylake.mk new file mode 100644 index 0000000000..37100a40ef --- /dev/null +++ b/core/combo/arch/x86/whiskeylake.mk @@ -0,0 +1,13 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86/x86.mk b/core/combo/arch/x86/x86.mk index a55cc7aa59..db55ff813c 100644 --- a/core/combo/arch/x86/x86.mk +++ b/core/combo/arch/x86/x86.mk @@ -11,3 +11,6 @@ ARCH_X86_HAVE_SSSE3 := false ARCH_X86_HAVE_MOVBE := false ARCH_X86_HAVE_POPCNT := false +ARCH_X86_HAVE_AVX := false +ARCH_X86_HAVE_AVX2 := false +ARCH_X86_HAVE_AVX512 := false diff --git a/core/combo/arch/x86_64/amberlake.mk b/core/combo/arch/x86_64/amberlake.mk new file mode 100644 index 0000000000..37100a40ef --- /dev/null +++ b/core/combo/arch/x86_64/amberlake.mk @@ -0,0 +1,13 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86_64/broadwell.mk b/core/combo/arch/x86_64/broadwell.mk new file mode 100644 index 0000000000..37100a40ef --- /dev/null +++ b/core/combo/arch/x86_64/broadwell.mk @@ -0,0 +1,13 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86_64/icelake.mk b/core/combo/arch/x86_64/icelake.mk new file mode 100644 index 0000000000..76fe212969 --- /dev/null +++ b/core/combo/arch/x86_64/icelake.mk @@ -0,0 +1,14 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_AVX512 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86_64/kabylake.mk b/core/combo/arch/x86_64/kabylake.mk new file mode 100644 index 0000000000..37100a40ef --- /dev/null +++ b/core/combo/arch/x86_64/kabylake.mk @@ -0,0 +1,13 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86_64/skylake.mk b/core/combo/arch/x86_64/skylake.mk new file mode 100644 index 0000000000..76fe212969 --- /dev/null +++ b/core/combo/arch/x86_64/skylake.mk @@ -0,0 +1,14 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_AVX512 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86_64/tigerlake.mk b/core/combo/arch/x86_64/tigerlake.mk new file mode 100644 index 0000000000..76fe212969 --- /dev/null +++ b/core/combo/arch/x86_64/tigerlake.mk @@ -0,0 +1,14 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_AVX512 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86_64/whiskeylake.mk b/core/combo/arch/x86_64/whiskeylake.mk new file mode 100644 index 0000000000..37100a40ef --- /dev/null +++ b/core/combo/arch/x86_64/whiskeylake.mk @@ -0,0 +1,13 @@ +# Configuration for Linux on x86. +# Generating binaries for processors +# that have AVX2 feature flag +# + +ARCH_X86_HAVE_SSSE3 := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := true +ARCH_X86_HAVE_AVX2 := true +ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_MOVBE := true diff --git a/core/combo/arch/x86_64/x86_64.mk b/core/combo/arch/x86_64/x86_64.mk index 26a9d0f45a..e7c89283a3 100755 --- a/core/combo/arch/x86_64/x86_64.mk +++ b/core/combo/arch/x86_64/x86_64.mk @@ -11,3 +11,6 @@ ARCH_X86_HAVE_POPCNT := true ARCH_X86_HAVE_SSE4 := true ARCH_X86_HAVE_SSE4_1 := true ARCH_X86_HAVE_SSE4_2 := true +ARCH_X86_HAVE_AVX := false +ARCH_X86_HAVE_AVX2 := false +ARCH_X86_HAVE_AVX512 := false