From 424d5df0bb54e840ffaba8af4e9591c98255a1e0 Mon Sep 17 00:00:00 2001 From: Julian Brown Date: Tue, 25 Apr 2017 06:55:50 +0000 Subject: [PATCH] thunderx2t99.md (thunderx2t99_aes): New Reservation. * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation. (thunderx2t99_sha): New Reservation. Co-Authored-By: Naveen H.S From-SVN: r247124 --- gcc/ChangeLog | 6 ++++++ gcc/config/aarch64/thunderx2t99.md | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5b59d793850..0e26d074f36 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -2,6 +2,12 @@ * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME. +2017-04-25 Julian Brown + Naveen H.S + + * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation. + (thunderx2t99_sha): New Reservation. + 2017-04-25 Julian Brown Naveen H.S 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") -- 2.30.2