public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6761] arm: Disambiguate multiple crypto patterns with the same name.
@ 2022-01-20 11:29 Richard Earnshaw
  0 siblings, 0 replies; only message in thread
From: Richard Earnshaw @ 2022-01-20 11:29 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0042ca7b770aadd6ccf8f53109fdf955f44c18c3

commit r12-6761-g0042ca7b770aadd6ccf8f53109fdf955f44c18c3
Author: Richard Earnshaw <rearnsha@arm.com>
Date:   Thu Oct 21 12:30:21 2021 +0100

    arm: Disambiguate multiple crypto patterns with the same name.
    
    No functional change, but arm/crypto.md has multiple pattenrs all
    called crypto_<crypto_pattern>, which makes references to them
    ambiguous, so add the iterator base to the pattern name so that it is
    distinct in the commit logs.
    
    gcc/ChangeLog:
    
            * config/arm/crypto.md (crypto_<CRYPTO_AESMC:crypto_pattern>): Add
            iterator to pattern name to disambiguate.
            (crypto_<CRYPTO_AES:crypto_pattern>): Likewise.
            (crypto_<CRYPTO_BINARY:crypto_pattern>): Likewise.
            (crypto_<CRYPTO_TERNARY:crypto_pattern>): Likewise.
            (crypto_<CRYPTO_SELECTING:crypto_pattern>): Likewise.
            (crypto_<CRYPTO_SELECTING:crypto_pattern>_lb): Likewise.

Diff:
---
 gcc/config/arm/crypto.md | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gcc/config/arm/crypto.md b/gcc/config/arm/crypto.md
index 2425641e33f..6071ea17eac 100644
--- a/gcc/config/arm/crypto.md
+++ b/gcc/config/arm/crypto.md
@@ -19,7 +19,7 @@
 ;; <http://www.gnu.org/licenses/>.
 
 
-(define_insn "crypto_<crypto_pattern>"
+(define_insn "crypto_<CRYPTO_AESMC:crypto_pattern>"
   [(set (match_operand:<crypto_mode> 0 "register_operand" "=w")
 	(unspec:<crypto_mode>
 		[(match_operand:<crypto_mode> 1 "register_operand" "w")]
@@ -29,7 +29,7 @@
   [(set_attr "type" "<crypto_type>")]
 )
 
-(define_insn "crypto_<crypto_pattern>"
+(define_insn "crypto_<CRYPTO_AES:crypto_pattern>"
   [(set (match_operand:V16QI 0 "register_operand" "=w")
 	(unspec:V16QI
 		[(xor:V16QI
@@ -83,7 +83,7 @@
    (set_attr "length" "8")]
 )
 
-(define_insn "crypto_<crypto_pattern>"
+(define_insn "crypto_<CRYPTO_BINARY:crypto_pattern>"
   [(set (match_operand:<crypto_mode> 0 "register_operand" "=w")
 	(unspec:<crypto_mode>
 		[(match_operand:<crypto_mode> 1 "register_operand" "0")
@@ -94,7 +94,7 @@
   [(set_attr "type" "<crypto_type>")]
 )
 
-(define_insn "crypto_<crypto_pattern>"
+(define_insn "crypto_<CRYPTO_TERNARY:crypto_pattern>"
   [(set (match_operand:<crypto_mode> 0 "register_operand" "=w")
         (unspec:<crypto_mode> [(match_operand:<crypto_mode> 1 "register_operand" "0")
                       (match_operand:<crypto_mode> 2 "register_operand" "w")
@@ -145,7 +145,7 @@
    of the V4SI, adjusted for endianness. Required due to neon_vget_lane and
    neon_set_lane that change the element ordering in memory for big-endian.  */
 
-(define_expand "crypto_<crypto_pattern>"
+(define_expand "crypto_<CRYPTO_SELECTING:crypto_pattern>"
   [(set (match_operand:V4SI 0 "register_operand")
 	(unspec:<crypto_mode>
 		[(match_operand:<crypto_mode> 1 "register_operand")
@@ -160,7 +160,7 @@
   DONE;
 })
 
-(define_insn "crypto_<crypto_pattern>_lb"
+(define_insn "crypto_<CRYPTO_SELECTING:crypto_pattern>_lb"
   [(set (match_operand:V4SI 0 "register_operand" "=w")
         (unspec:<crypto_mode>
                      [(match_operand:<crypto_mode> 1 "register_operand" "0")


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-20 11:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-20 11:29 [gcc r12-6761] arm: Disambiguate multiple crypto patterns with the same name Richard Earnshaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).