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 5b59d793850f6cc3068095627cc3fe4366f2fb5c..0e26d074f368edad86e266049ef5fec8e43c6252 100644 (file)
@@ -2,6 +2,12 @@
 
        * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
 
+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>
 
index 0dd719910dca1e407e21d9d563315fa9e6e1f89d..99a0aadd01de64275084186fcc32e5a8ba1c5989 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")