2 memcpy-bi.c from the execute part of the gcc torture tests.
8 #pragma disable_warning 85
11 #if !(defined(__SDCC_mcs51) && defined(__SDCC_MODEL_SMALL)) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
12 /* Test builtin-memcpy (which may emit different code for different N). */
21 check (char *test
, char *match
, int n
)
23 if (memcmp (test
, match
, n
))
28 { memset (dst, 0, n); memcpy (dst, src, n); check (dst, src, n); }
37 testTortureExecute (void)
39 #if !(defined(__SDCC_mcs51) && defined(__SDCC_MODEL_SMALL)) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
42 for (i
= 0; i
< sizeof (src
); ++i
)
43 src
[i
] = 'a' + i
% 26;