]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr39443.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr39443.c
CommitLineData
6b2b8871
JJ
1/* PR middle-end/39443 */
2/* { dg-do compile } */
3/* { dg-options "-O2" } */
4/* { dg-final { scan-assembler-not "memcmp" } } */
5
6typedef __SIZE_TYPE__ size_t;
7
8extern int memcmp (const void *s1, const void *s2, size_t n)
9 __attribute__ ((__nothrow__, __pure__));
10extern __typeof (memcmp) memcmp __asm__ ("memory_compare");
11
12int
13test (char *s, char *t, int cnt)
14{
15 if (__builtin_expect (cnt, 0))
16 return memcmp (s, t, cnt);
17 return 0;
18}