| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -mtune=generic" } */ |
| 3 |
/* { dg-additional-options "-mno-avx -msse2" { target { ! ia32 } } } */ |
| 4 |
/* { dg-additional-options "-mno-sse" { target ia32 } } */ |
| 5 |
|
| 6 |
extern char *dst, *src; |
| 7 |
|
| 8 |
void |
| 9 |
foo (void) |
| 10 |
{ |
| 11 |
__builtin_memcpy (dst, src, 31); |
| 12 |
} |
| 13 |
|
| 14 |
/* { dg-final { scan-assembler-times "movdqu\[\\t \]+\\(%\[\^,\]+\\)," 1 { target { ! ia32 } } } } */ |
| 15 |
/* { dg-final { scan-assembler-times "movdqu\[\\t \]+15\\(%\[\^,\]+\\)," 1 { target { ! ia32 } } } } */ |
| 16 |
/* PIC gets one extra match in get_pc_thunk, and two extra matches to load |
| 17 |
dst's and src's values after loading their addresses from the GOT. */ |
| 18 |
/* { dg-final { scan-assembler-times "movl\[\\t \]+\\(%\[\^,\]+\\)," 1 { target { ia32 && nonpic } } } } */ |
| 19 |
/* { dg-final { scan-assembler-times "movl\[\\t \]+\\(%\[\^,\]+\\)," 4 { target { ia32 && { ! nonpic } } } } } */ |
| 20 |
/* { dg-final { scan-assembler-times "movl\[\\t \]+4\\(%\[\^,\]+\\)," 1 { target ia32 } } } */ |
| 21 |
/* { dg-final { scan-assembler-times "movl\[\\t \]+8\\(%\[\^,\]+\\)," 1 { target ia32 } } } */ |
| 22 |
/* { dg-final { scan-assembler-times "movl\[\\t \]+12\\(%\[\^,\]+\\)," 1 { target ia32 } } } */ |
| 23 |
/* { dg-final { scan-assembler-times "movl\[\\t \]+16\\(%\[\^,\]+\\)," 1 { target ia32 } } } */ |
| 24 |
/* { dg-final { scan-assembler-times "movl\[\\t \]+20\\(%\[\^,\]+\\)," 1 { target ia32 } } } */ |
| 25 |
/* { dg-final { scan-assembler-times "movl\[\\t \]+24\\(%\[\^,\]+\\)," 1 { target ia32 } } } */ |
| 26 |
/* { dg-final { scan-assembler-times "movl\[\\t \]+27\\(%\[\^,\]+\\)," 1 { target ia32 } } } */ |