gcc/testsuite/gcc.target/aarch64/cpymem-size.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Os" } */ |
| 3 | |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | /* |
| 7 | ** cpy_127: |
| 8 | ** mov (w|x)2, 127 |
| 9 | ** b memcpy |
| 10 | */ |
| 11 | void |
| 12 | cpy_127 (char *out, char *in) |
| 13 | { |
| 14 | __builtin_memcpy (out, in, 127); |
| 15 | } |
| 16 | |
| 17 | /* |
| 18 | ** cpy_128: |
| 19 | ** mov (w|x)2, 128 |
| 20 | ** b memcpy |
| 21 | */ |
| 22 | void |
| 23 | cpy_128 (char *out, char *in) |
| 24 | { |
| 25 | __builtin_memcpy (out, in, 128); |
| 26 | } |
| 27 | |
| 28 | /* { dg-final { check-function-bodies "**" "" "" } } */ |
| 29 |