| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-Os" } */ |
| 3 |
/* { dg-require-effective-target lp64 } */ |
| 4 |
|
| 5 |
#include <stdint.h> |
| 6 |
|
| 7 |
/* 127 bytes should use libcall for size. |
| 8 |
**set127byte: |
| 9 |
** mov x2, 127 |
| 10 |
** b memset |
| 11 |
*/ |
| 12 |
void __attribute__((__noinline__)) |
| 13 |
set127byte (int64_t *src, int c) |
| 14 |
{ |
| 15 |
__builtin_memset (src, c, 127); |
| 16 |
} |
| 17 |
|
| 18 |
/* 128 bytes should use libcall for size. |
| 19 |
**set128byte: |
| 20 |
** mov x2, 128 |
| 21 |
** b memset |
| 22 |
*/ |
| 23 |
void __attribute__((__noinline__)) |
| 24 |
set128byte (int64_t *src, int c) |
| 25 |
{ |
| 26 |
__builtin_memset (src, c, 128); |
| 27 |
} |
| 28 |
|
| 29 |
/* { dg-final { check-function-bodies "**" "" "" } } */ |
| 30 |
|