PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / crypto-vsha1pq_u32.c
blobff508e0dc7f683c55496be15b4bab5219a73ac66
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 = vsha1pq_u32 (a, hash, b);
15 return res[0];
18 /* { dg-final { scan-assembler "sha1p.32\tq\[0-9\]+, q\[0-9\]+" } } */