aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2017-04-25 06:55:50 +0000
committerNaveen H.S <naveenh@gcc.gnu.org>2017-04-25 06:55:50 +0000
commit424d5df0bb54e840ffaba8af4e9591c98255a1e0 (patch)
tree35dddfcf94bbe799ea464e554621643820830359
parentbb0249cbb7500772af1bfcc68f8929d60f6cb51f (diff)
downloadgcc-424d5df0bb54e840ffaba8af4e9591c98255a1e0.zip
gcc-424d5df0bb54e840ffaba8af4e9591c98255a1e0.tar.gz
gcc-424d5df0bb54e840ffaba8af4e9591c98255a1e0.tar.bz2
thunderx2t99.md (thunderx2t99_aes): New Reservation.
* config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation. (thunderx2t99_sha): New Reservation. Co-Authored-By: Naveen H.S <Naveen.Hurugalawadi@cavium.com> From-SVN: r247124
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/aarch64/thunderx2t99.md13
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5b59d79..0e26d07 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -5,6 +5,12 @@
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.
+
+2017-04-25 Julian Brown <julian@codesourcery.com>
+ Naveen H.S <Naveen.Hurugalawadi@cavium.com>
+
* config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
type for 1-element load.
diff --git a/gcc/config/aarch64/thunderx2t99.md b/gcc/config/aarch64/thunderx2t99.md
index 0dd7199..99a0aad 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")