gcc/testsuite/gcc.target/aarch64/pr97535.c
raw| 1 | /* { dg-do compile { target { ! ilp32 } } } */ |
| 2 | |
| 3 | #include <string.h> |
| 4 | |
| 5 | #define SIZE 2181038080 |
| 6 | |
| 7 | extern char raw_buffer[SIZE]; |
| 8 | |
| 9 | void setRaw(const void *raw) |
| 10 | { |
| 11 | memcpy(raw_buffer, raw, SIZE); |
| 12 | } |
| 13 | |
| 14 | /* At any optimization level this should be a function call |
| 15 | and not inlined. */ |
| 16 | /* { dg-final { scan-assembler "bl\tmemcpy" } } */ |