thunderx2t99.md (thunderx2t99_aes): New Reservation.
authorJulian Brown <julian@codesourcery.com>
Tue, 25 Apr 2017 06:55:50 +0000 (06:55 +0000)
committerNaveen H.S <naveenh@gcc.gnu.org>
Tue, 25 Apr 2017 06:55:50 +0000 (06:55 +0000)
* 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

gcc/ChangeLog
gcc/config/aarch64/thunderx2t99.md

index 5b59d79..0e26d07 100644 (file)
@@ -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.
 
index 0dd7199..99a0aad 100644 (file)
   (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")