| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -mno-avx -msse2 -mtune=generic -mno-stackrealign" } */ |
| 3 |
/* Cope with --enable-frame-pointer. */ |
| 4 |
/* { dg-additional-options "-fomit-frame-pointer" } */ |
| 5 |
|
| 6 |
extern char *dst; |
| 7 |
|
| 8 |
void |
| 9 |
foo (int x) |
| 10 |
{ |
| 11 |
__builtin_memset (dst, x, 64); |
| 12 |
} |
| 13 |
|
| 14 |
/* { dg-final { scan-assembler-times "movups\[ \\t\]+\[^\n\]*%xmm" 4 } } */ |
| 15 |
/* No need to dynamically realign the stack here. */ |
| 16 |
/* { dg-final { scan-assembler-not "and\[^\n\r]*%\[re\]sp" } } */ |
| 17 |
/* Nor use a frame pointer. */ |
| 18 |
/* { dg-final { scan-assembler-not "%\[re\]bp" } } */ |