annotate gcc/testsuite/gcc.dg/memcpy-5.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-options "-O -fdump-tree-optimized" } */
kono
parents:
diff changeset
2 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 extern void *memcpy (void *, const void *, __SIZE_TYPE__);
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 #define TEST(NAME, TYPE) \
kono
parents:
diff changeset
7 TYPE NAME##x; \
kono
parents:
diff changeset
8 char NAME##y[sizeof (NAME##x)] __attribute__((aligned (__alignof__ (NAME##x)))); \
kono
parents:
diff changeset
9 void NAME (void) { memcpy (&NAME##x, &NAME##y, sizeof (NAME##x)); }
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 TEST (f, float);
kono
parents:
diff changeset
12 TEST (d, double);
kono
parents:
diff changeset
13 TEST (ld, long double);
kono
parents:
diff changeset
14 TEST (cf, _Complex float);
kono
parents:
diff changeset
15 TEST (cd, _Complex double);
kono
parents:
diff changeset
16 TEST (cld, _Complex long double);
kono
parents:
diff changeset
17 TEST (d8f, float __attribute__((vector_size (8))));
kono
parents:
diff changeset
18 TEST (d16f, float __attribute__((vector_size (16))));
kono
parents:
diff changeset
19 TEST (d32f, float __attribute__((vector_size (32))));
kono
parents:
diff changeset
20 TEST (d64f, float __attribute__((vector_size (64))));
kono
parents:
diff changeset
21 TEST (d128f, float __attribute__((vector_size (128))));
kono
parents:
diff changeset
22 TEST (d16d, double __attribute__((vector_size (16))));
kono
parents:
diff changeset
23 TEST (d32d, double __attribute__((vector_size (32))));
kono
parents:
diff changeset
24 TEST (d64d, double __attribute__((vector_size (64))));
kono
parents:
diff changeset
25 TEST (d128d, double __attribute__((vector_size (128))));
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 /* { dg-final { scan-tree-dump-not "memcpy" "optimized" { target i?86-*-* x86_64-*-* } } } */