blob: 30b0cad04e61531eb9cc11d8109f52d9e555a83f (
plain)
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
|
/* { dg-do compile } */
/* { dg-options "-O2 -mno-sse -mmemset-strategy=unrolled_loop:256:noalign,libcall:-1:noalign" } */
/* Keep labels and directives ('.cfi_startproc', '.cfi_endproc'). */
/* { dg-final { check-function-bodies "**" "" "" { target lp64 } {^\t?\.} } } */
/*
**foo:
**.LFB[0-9]+:
** .cfi_startproc
** movabsq \$289360691352306692, %rax
** movq %rax, 48\(%rdi\)
** movq %rax, \(%rdi\)
** movq %rax, 8\(%rdi\)
** movq %rax, 16\(%rdi\)
** movq %rax, 24\(%rdi\)
** movq %rax, 32\(%rdi\)
** movq %rax, 40\(%rdi\)
** movq %rax, 53\(%rdi\)
** ret
**...
*/
void
foo (char *dest)
{
__builtin_memset (dest, 4, 61);
}
/* { dg-final { scan-assembler-not "rep stos" } } */
|