aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-11-09 19:26:31 -0500
committerJack Lloyd <[email protected]>2020-11-09 19:26:31 -0500
commit6e4d3ee91ab19e4ffe8856b8315640b5c93533e5 (patch)
tree738cb52f52303a0d11a4f793a0f13c4384e51ab4
parentd2b0032b21aae993535b4e8cc97109bb5771d8c1 (diff)
Use -mcpu=power9 to use DARN instruction
Backport of #2480
-rw-r--r--src/build-data/arch/ppc64.txt1
-rw-r--r--src/build-data/cc/clang.txt3
-rw-r--r--src/build-data/cc/gcc.txt1
-rw-r--r--src/lib/rng/processor_rng/info.txt4
4 files changed, 9 insertions, 0 deletions
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
<isa_extensions>
altivec
powercrypto
+power9
</isa_extensions>
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
</arch>
+
+<isa>
+ppc64:power9
+</isa>