annotate gcc/testsuite/gcc.dg/memmove-2.c @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
kono
parents:
diff changeset
3 /* { dg-final { scan-tree-dump-times "memmove" 0 "optimized" } } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 char a[40];
kono
parents:
diff changeset
6 extern void bar (char *);
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 void
kono
parents:
diff changeset
9 foo (void)
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 char b[10];
kono
parents:
diff changeset
12 __builtin_memmove (&a[0], &a[20], 20);
kono
parents:
diff changeset
13 __builtin_memmove (&b[1], &a[25], 9);
kono
parents:
diff changeset
14 bar (b);
kono
parents:
diff changeset
15 }