1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* { dg-do compile } */
/* { dg-options "-O2 -mtune=generic -mno-sse -fasynchronous-unwind-tables -fdwarf2-cfi-asm" } */
/* Keep labels and directives ('.cfi_startproc', '.cfi_endproc'). */
/* { dg-final { check-function-bodies "**" "" "" { target lp64 } {^\t?\.} } } */
/*
**foo:
**...
**.LFB[0-9]+:
** .cfi_startproc
** movq \$0, 63\(%rdi\)
** xorl %eax, %eax
** movq \$0, 71\(%rdi\)
** movq \$0, 79\(%rdi\)
** movq \$0, 87\(%rdi\)
**.L[0-9]+:
** movl %eax, %edx
** addl \$32, %eax
** movq \$0, \(%rdi,%rdx\)
** movq \$0, 8\(%rdi,%rdx\)
** movq \$0, 16\(%rdi,%rdx\)
** movq \$0, 24\(%rdi,%rdx\)
** cmpl \$64, %eax
** jb .L[0-9]+
** ret
**...
*/
void
foo (char *dest)
{
__builtin_memset (dest, 0, 95);
}
/* { dg-final { scan-assembler-not "rep stos" } } */
|