This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, AArch64] [4/6] Implement support for Crypto -- SHA1.
- From: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>
- To: Tejas Belagod <tbelagod at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 10 Dec 2013 10:25:40 +0000
- Subject: Re: [Patch, AArch64] [4/6] Implement support for Crypto -- SHA1.
- Authentication-results: sourceware.org; auth=none
- References: <52A20B12 dot 6020604 at arm dot com>
Same comments as previous patch:
On 6 December 2013 17:36, Tejas Belagod <tbelagod@arm.com> wrote:
> testsuite/
> * gcc.target/aarch64/sha1.c: New.
Add _1 on the test case file name (see http://gcc.gnu.org/wiki/TestCaseWriting)
> +static __inline uint32x4_t
> +vsha1cq_u32 (uint32x4_t hash_abcd, uint32_t hash_e, uint32x4_t wk)
> +{
> + return
> + (uint32x4_t) __builtin_aarch64_crypto_sha1cv4si ((int32x4_t) hash_abcd,
> + (int32_t) hash_e,
> + (int32x4_t) wk);
> +}
James G fixed the infrastructure to allow properly typed builtins, see:
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg02005.html
and
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg02880.html
> +/* { dg-final { scan-assembler "sha1c\\tq" } } */
Use scan-assembler-times 1
Cheers
/Marcus