aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2017-06-06 16:52:39 +0200
committerYvan Roux <yvan.roux@linaro.org>2017-06-08 11:57:58 +0000
commit545dba917e5dc9a2542ce8b8647421fcac6bd9d3 (patch)
treea74a39fcdf1f56fefbe85c35c55b2f170369b03d
parentbbc15e94d2128447a5a62ea972576a99baaf1689 (diff)
gcc/
Backport from trunk r247124. 2017-04-25 Julian Brown <julian@codesourcery.com> Naveen H.S <Naveen.Hurugalawadi@cavium.com> * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation. (thunderx2t99_sha): New Reservation. Change-Id: I227fba61e51a1d48ef95e50ee90be9733d37d474
-rw-r--r--gcc/config/aarch64/thunderx2t99.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/config/aarch64/thunderx2t99.md b/gcc/config/aarch64/thunderx2t99.md
index 0dd719910dc..99a0aadd01d 100644
--- a/gcc/config/aarch64/thunderx2t99.md
+++ b/gcc/config/aarch64/thunderx2t99.md
@@ -441,3 +441,16 @@
(and (eq_attr "tune" "thunderx2t99")
(eq_attr "type" "neon_store2_one_lane,neon_store2_one_lane_q"))
"thunderx2t99_ls01,thunderx2t99_f01")
+
+;; Crypto extensions.
+
+(define_insn_reservation "thunderx2t99_aes" 5
+ (and (eq_attr "tune" "thunderx2t99")
+ (eq_attr "type" "crypto_aese,crypto_aesmc"))
+ "thunderx2t99_f1")
+
+(define_insn_reservation "thunderx2t99_sha" 7
+ (and (eq_attr "tune" "thunderx2t99")
+ (eq_attr "type" "crypto_sha1_fast,crypto_sha1_xor,crypto_sha1_slow,\
+ crypto_sha256_fast,crypto_sha256_slow"))
+ "thunderx2t99_f1")