gcc/testsuite/gcc.target/arm/crypto-vsha1su1q_u32.c
raw| 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 |
| 8 | foo (void) |
| 9 | { |
| 10 | uint32x4_t a = {0xd, 0xe, 0xa, 0xd}; |
| 11 | uint32x4_t b = {0, 1, 2, 3}; |
| 12 | |
| 13 | uint32x4_t res = vsha1su1q_u32 (a, b); |
| 14 | return res[0]; |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-assembler "sha1su1.32\tq\[0-9\]+, q\[0-9\]+" } } */ |