summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr90263.c
blob: 3222a5331c162a75fd4d91000bb75004a7eac9ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR middle-end/90263 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-require-effective-target glibc } */

int *f (int *p, int *q, long n)
{
  return __builtin_mempcpy (p, q, n);
}

/* { dg-final { scan-assembler "mempcpy" { target { i?86-*-* x86_64-*-* } } } } */
/* { dg-final { scan-assembler "memcpy" { target { ! { i?86-*-* x86_64-*-* } } } } } */