1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_crypto_ok } */
3 /* { dg-add-options arm_crypto } */
4 
5 #include "arm_neon.h"
6 
7 int
foo(void)8 foo (void)
9 {
10   uint32_t hash = 0xdeadbeef;
11   uint32x4_t a = {0, 1, 2, 3};
12   uint32x4_t b = {3, 2, 1, 0};
13 
14   uint32x4_t res = vsha1mq_u32 (a, hash, b);
15   return res[0];
16 }
17 
18 /* { dg-final { scan-assembler "sha1m.32\tq\[0-9\]+, q\[0-9\]+" } } */
19