1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_crypto_ok } */
3 /* { dg-add-options arm_crypto } */
4 /* { dg-additional-options "-O3" } */
11 uint32_t hash
= 0xdeadbeef;
12 uint32x4_t a
= {0, 1, 2, 3};
13 uint32x4_t b
= {3, 2, 1, 0};
15 uint32x4_t res
= vsha1mq_u32 (a
, hash
, b
);
19 #define GET_LANE(lane) \
20 uint32x4_t foo_lane##lane (uint32x4_t val,uint32x4_t a, uint32x4_t b)\
22 return vsha1mq_u32 (a, vgetq_lane_u32 (val, lane), b); \
25 #define TEST_SHA1M_VEC_SELECT(FUNC) \
31 TEST_SHA1M_VEC_SELECT (GET_LANE)
33 /* { dg-final { scan-assembler-times {sha1m.32\tq[0-9]+, q[0-9]+} 5 } } */
34 /* { dg-final { scan-assembler-times {vdup.32\tq[0-9]+, r[0-9]+} 3 } } */
35 /* { dg-final { scan-assembler-times {vmov.32\tr[0-9]+, d[0-9]+\[[0-9]+\]+} 4 } } */