summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/sha256rnds2-1.c
blob: 8bdf6642078cdbd10dc9ccbaeb29fa6b73bdb81b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -msha" } */
/* { dg-final { scan-assembler "sha256rnds2\[ \\t\]+\[^\n\]*%xmm0\[^\n\]*%xmm\[0-9\]" } } */

#include <immintrin.h>

volatile __m128i x;

void extern
sha_test (void)
{
  x = _mm_sha256rnds2_epu32 (x, x, x);
}