]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/memcpy-5.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / memcpy-5.c
CommitLineData
dbf23a79 1/* { dg-options "-O -fdump-tree-optimized" } */
42d9533c 2/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
dbf23a79
RS
3
4extern void *memcpy (void *, const void *, __SIZE_TYPE__);
5
6#define TEST(NAME, TYPE) \
7 TYPE NAME##x; \
8 char NAME##y[sizeof (NAME##x)] __attribute__((aligned (__alignof__ (NAME##x)))); \
9 void NAME (void) { memcpy (&NAME##x, &NAME##y, sizeof (NAME##x)); }
10
11TEST (f, float);
12TEST (d, double);
13TEST (ld, long double);
14TEST (cf, _Complex float);
15TEST (cd, _Complex double);
16TEST (cld, _Complex long double);
17TEST (d8f, float __attribute__((vector_size (8))));
18TEST (d16f, float __attribute__((vector_size (16))));
19TEST (d32f, float __attribute__((vector_size (32))));
20TEST (d64f, float __attribute__((vector_size (64))));
21TEST (d128f, float __attribute__((vector_size (128))));
22TEST (d16d, double __attribute__((vector_size (16))));
23TEST (d32d, double __attribute__((vector_size (32))));
24TEST (d64d, double __attribute__((vector_size (64))));
25TEST (d128d, double __attribute__((vector_size (128))));
26
100a5180 27/* { dg-final { scan-tree-dump-not "memcpy" "optimized" { target i?86-*-* x86_64-*-* } } } */