2 /* { dg-options "-O2 -msha" } */
3 /* { dg-require-effective-target sha } */
6 #include "m128-check.h"
10 compute_sha1msg1 (int *s1
, int *s2
, int *r
)
12 int w0
, w1
, w2
, w3
, w4
, w5
;
30 union128i_d s1
, s2
, res
;
33 s1
.x
= _mm_set_epi32 (111, 222, 333, 444);
34 s2
.x
= _mm_set_epi32 (555, 666, 0, 0);
36 res
.x
= _mm_sha1msg1_epu32 (s1
.x
, s2
.x
);
38 compute_sha1msg1 (s1
.a
, s2
.a
, res_ref
);
40 if (check_union128i_d (res
, res_ref
))