Debian Codegraph @

gcc/testsuite/gcc.target/mips/expand-block-move-r6-no-unaligned.c

raw
1 /* { dg-options "isa_rev>=6 -mno-unaligned-access" } */
2 /* { dg-final { scan-assembler "memcpy" } } */
3
4 char a[4097], b[4097];
5 #ifdef __mips64
6 #define MAX_SIZE 128
7 #else
8 #define MAX_SIZE 64
9 #endif
10
11 NOCOMPRESSION void
12 foo ()
13 {
14 __builtin_memcpy(&a[1], &b[1], MAX_SIZE-16);
15 }