aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mvc17.c
blob: 2c7cc2fdaceedad461c2dccfdd50cb51f4f71e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-require-ifunc "" } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-times "rep mov" 1 } } */

__attribute__((target_clones("default","arch=icelake-server")))
void
foo (char *a, char *b, int size)
{
  __builtin_memcpy (a, b, size & 0x7F);
}