Merge from trunk
[official-gcc.git] / gcc / testsuite / gcc.target / arm / crypto-vsha1mq_u32.c
blob672b93a97475fd7caec67611cf074b32fe2d6860
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_crypto_ok } */
3 /* { dg-add-options arm_crypto } */
5 #include "arm_neon.h"
7 int
8 foo (void)
10 uint32_t hash = 0xdeadbeef;
11 uint32x4_t a = {0, 1, 2, 3};
12 uint32x4_t b = {3, 2, 1, 0};
14 uint32x4_t res = vsha1mq_u32 (a, hash, b);
15 return res[0];
18 /* { dg-final { scan-assembler "sha1m.32\tq\[0-9\]+, q\[0-9\]+" } } */