arm: Disambiguate multiple crypto patterns with the same name.
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 21 Oct 2021 11:30:21 +0000 (12:30 +0100)
committerRichard Earnshaw <rearnsha@arm.com>
Thu, 20 Jan 2022 11:14:43 +0000 (11:14 +0000)
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.

gcc/config/arm/crypto.md

index 2425641..6071ea1 100644 (file)
@@ -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")
    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")
   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")