aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2021-10-21 12:30:21 +0100
committerRichard Earnshaw <rearnsha@arm.com>2022-01-20 11:14:43 +0000
commit0042ca7b770aadd6ccf8f53109fdf955f44c18c3 (patch)
tree42a3fefa7335e901dc0a0c445bfcae2d97306bc4
parent6d51a27fb17d9dc4e583c119fd976d39e575180f (diff)
downloadgcc-0042ca7b770aadd6ccf8f53109fdf955f44c18c3.zip
gcc-0042ca7b770aadd6ccf8f53109fdf955f44c18c3.tar.gz
gcc-0042ca7b770aadd6ccf8f53109fdf955f44c18c3.tar.bz2
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.
-rw-r--r--gcc/config/arm/crypto.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/arm/crypto.md b/gcc/config/arm/crypto.md
index 2425641..6071ea1 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")