From 6e4d3ee91ab19e4ffe8856b8315640b5c93533e5 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 9 Nov 2020 19:26:31 -0500 Subject: Use -mcpu=power9 to use DARN instruction Backport of #2480 --- src/build-data/arch/ppc64.txt | 1 + src/build-data/cc/clang.txt | 3 +++ src/build-data/cc/gcc.txt | 1 + src/lib/rng/processor_rng/info.txt | 4 ++++ 4 files changed, 9 insertions(+) diff --git a/src/build-data/arch/ppc64.txt b/src/build-data/arch/ppc64.txt index 57a363c04..4b871e85e 100644 --- a/src/build-data/arch/ppc64.txt +++ b/src/build-data/arch/ppc64.txt @@ -13,4 +13,5 @@ ppc64el altivec powercrypto +power9 diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt index ab37b33d5..2d5bfcebb 100644 --- a/src/build-data/cc/clang.txt +++ b/src/build-data/cc/clang.txt @@ -58,6 +58,9 @@ rdseed -> "-mrdseed" sha -> "-msha" altivec -> "-maltivec" +ppc64:powercrypto -> "-mcrypto" +ppc64:power9 -> "-mcpu=power9" + arm64:armv8crypto -> "-march=armv8+crypto" arm32:neon -> "-mfpu=neon" diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt index d7e019212..c433935c2 100644 --- a/src/build-data/cc/gcc.txt +++ b/src/build-data/cc/gcc.txt @@ -65,6 +65,7 @@ sha -> "-msha" altivec -> "-maltivec" powercrypto -> "-mcrypto" +ppc64:power9 -> "-mcpu=power9" arm64:armv8crypto -> "" arm64:armv8sm3 -> "-march=armv8.2-a+sm4" diff --git a/src/lib/rng/processor_rng/info.txt b/src/lib/rng/processor_rng/info.txt index ec1c7faf3..61d10f11b 100644 --- a/src/lib/rng/processor_rng/info.txt +++ b/src/lib/rng/processor_rng/info.txt @@ -14,3 +14,7 @@ x86_32 x86_64 ppc64 + + +ppc64:power9 + -- cgit v1.2.3