PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / crypto-vsha256hq_u32.c
blob49577f2b7248ea89ac7cb5030909903d725c4ecb
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 uint32x4_t a = {0xd, 0xe, 0xa, 0xd};
11 uint32x4_t b = {0, 1, 2, 3};
12 uint32x4_t c = {3, 2, 1, 0};
14 uint32x4_t res = vsha256hq_u32 (a, b, c);
15 return res[0];
18 /* { dg-final { scan-assembler "sha256h.32\tq\[0-9\]+, q\[0-9\]+, q\[0-9\]" } } */