/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/ |
H A D | memcmp.c | 3 Ensure that short builtin memcmp are optimized and perform correctly. 12 extern int memcmp (const void *, const void *, size_t); 23 if ( memcmp (str, str+2, 0) != 0 ) 25 if ( memcmp (str+1, str+3, 0) != 0 ) 28 if ( memcmp (str+1, str+3, 1) != 0 ) 30 if ( memcmp (str, str+2, 1) >= 0 ) 32 if ( memcmp (str+2, str, 1) <= 0 ) 35 if (memcmp ("abcd", "efgh", 4) >= 0) 37 if (memcmp ("abcd", "abcd", 4) != 0) 39 if (memcmp ("efg [all...] |
H A D | strcpy.c | 11 extern int memcmp (const void *, const void *, size_t); 18 if (strcpy (p, "abcde") != p || memcmp (p, "abcde", 6)) 20 if (strcpy (p + 16, "vwxyz" + 1) != p + 16 || memcmp (p + 16, "wxyz", 5)) 22 if (strcpy (p + 1, "") != p + 1 || memcmp (p, "a\0cde", 6)) 24 if (strcpy (p + 3, "fghij") != p + 3 || memcmp (p, "a\0cfghij", 9)) 26 if (memcpy (p, "ABCDE", 6) != p || memcmp (p, "ABCDE", 6)) 28 if (memcpy (p + 16, "VWX" + 1, 2) != p + 16 || memcmp (p + 16, "WXyz", 5)) 30 if (memcpy (p + 1, "", 1) != p + 1 || memcmp (p, "A\0CDE", 6)) 32 if (memcpy (p + 3, "FGHI", 4) != p + 3 || memcmp (p, "A\0CFGHIj", 9)) 37 if (__builtin_strcpy (p, "abcde") != p || memcmp ( [all...] |
H A D | memmove-2.c | 11 extern int memcmp (const void *, const void *, size_t); 21 if (memmove (p + 2, p + 3, 1) != p + 2 || memcmp (p, "abddefg", 8)) 23 if (memmove (p + 1, p + 1, 1) != p + 1 || memcmp (p, "abddefg", 8)) 25 if (memmove (q, p + 4, 1) != p + 4 || memcmp (p, "abddefg", 8)) 28 if (memcmp (p, "abddeff", 8)) 31 if (memcmp (p, "abddeff", 8)) 34 if (memcmp (p, "abddeff", 8))
|
H A D | mempcpy-2.c | 10 extern int memcmp (const void *, const void *, size_t); 26 || memcmp (buf1, "ABCDEFGHI\0", 11)) 30 || memcmp (buf1, "abcdefghijklmnopq\0", 19)) 34 || memcmp (buf1, "ABCDEFghijklmnopq\0", 19)) 38 || memcmp (buf1, "aBCDEFghijklmnopq\0", 19)) 42 || memcmp (buf1, "aBcdEFghijklmnopq\0", 19) 48 || memcmp (buf1, "aBcdRSTUVWklmnopq\0", 19)) 53 || memcmp (buf1, "aBcdRSTUVWSlmnopq\0", 19) 58 || memcmp (buf1, "aBcdRSTUVWSlmnrsq\0", 19)) 62 || memcmp (buf [all...] |
H A D | strpcpy.c | 12 extern int memcmp (const void *, const void *, size_t); 33 if (stpcpy (p, "abcde") != p + 5 || memcmp (p, "abcde", 6)) 35 if (stpcpy (p + 16, "vwxyz" + 1) != p + 16 + 4 || memcmp (p + 16, "wxyz", 5)) 37 if (stpcpy (p + 1, "") != p + 1 + 0 || memcmp (p, "a\0cde", 6)) 39 if (stpcpy (p + 3, "fghij") != p + 3 + 5 || memcmp (p, "a\0cfghij", 9)) 43 || i != 9 || memcmp (p + 19, "z\0""23\0", 5)) 46 if (stpcpy (stpcpy (p, "ABCD"), "EFG") != p + 7 || memcmp (p, "ABCDEFG", 8)) 51 if (__builtin_stpcpy (p, "abcde") != p + 5 || memcmp (p, "abcde", 6)) 58 if (memcmp (p, "abcFGH", 6))
|
H A D | strncpy.c | 11 extern int memcmp (const void *, const void *, size_t); 27 if (strncpy (dst, src, 4) != dst || memcmp (dst, "hellXXX", 7)) 31 if (strncpy (dst+16, src, 4) != dst+16 || memcmp (dst+16, "hellXXX", 7)) 35 if (strncpy (dst+32, src+5, 4) != dst+32 || memcmp (dst+32, " worXXX", 7)) 40 if (strncpy (++dst2, src+5, 4) != dst+1 || memcmp (dst2, " worXXX", 7) 45 if (strncpy (dst, src, 0) != dst || memcmp (dst, "XXX", 3)) 50 if (strncpy (++dst2, ++src2, 0) != dst+1 || memcmp (dst2, "XXX", 3) 56 if (strncpy (++dst2+5, ++src2+5, 0) != dst+6 || memcmp (dst2+5, "XXX", 3) 61 if (strncpy (dst, src, 12) != dst || memcmp (dst, "hello world\0XXX", 15)) 67 if (__builtin_strncpy (dst, src, 4) != dst || memcmp (ds [all...] |
H A D | memmove.c | 11 extern int memcmp (const void *, const void *, size_t); 65 if (memmove (f1, foo, sizeof (foo)) != f1 || memcmp (f1, foo, sizeof (foo))) 67 if (memmove (b1, bar, sizeof (bar)) != b1 || memcmp (b1, bar, sizeof (bar))) 70 if (memcmp (bz, baz, sizeof (baz))) 73 if (memmove (p, "abcde", 6) != p || memcmp (p, "abcde", 6)) 76 if (memmove (p + 2, ++s, 0) != p + 2 || memcmp (p, "abcde", 6) || s != s1 + 1) 78 if (__builtin_memmove (p + 3, "", 1) != p + 3 || memcmp (p, "abc\0e", 6)) 81 if (memcmp (p, "abfghi", 7)) 85 if (memcmp (p, "abfghi", 7) || s != s1 + 2) 88 if (memcmp ( [all...] |
H A D | mempcpy.c | 12 extern int memcmp (const void *, const void *, size_t); 33 if (mempcpy (p, "ABCDE", 6) != p + 6 || memcmp (p, "ABCDE", 6)) 36 || memcmp (p + 16, "WX\0\0", 5)) 38 if (mempcpy (p + 1, "", 1) != p + 1 + 1 || memcmp (p, "A\0CDE", 6)) 40 if (mempcpy (p + 3, "FGHI", 4) != p + 3 + 4 || memcmp (p, "A\0CFGHI", 8)) 47 || memcmp (p + 25, "Q123U", 6)) 51 || memcmp (p, "abcdefg", 8)) 56 if (__builtin_mempcpy (p, "ABCDE", 6) != p + 6 || memcmp (p, "ABCDE", 6)) 63 if (memcmp (p, "ABCDEFg", 8)) 66 if (memcmp ( [all...] |
H A D | sprintf.c | 14 extern int memcmp(const void*, const void*, size_t); 47 if (memcmp(buffer, "foo", 4) || buffer[4] != 'A') 53 if (memcmp(buffer, "foo", 4) || buffer[4] != 'A') 58 if (memcmp(buffer, "bar", 4) || buffer[4] != 'A') 64 if (memcmp(buffer, "bar", 4) || buffer[4] != 'A') 69 if (memcmp(buffer, "barf", 5) || buffer[5] != 'A')
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/compile/ |
H A D | 20010525-1.c | 4 if (0 == memcmp("%_#", str, 3)) return 2;
|
H A D | pr40291.c | 6 return memcmp (x, y, z);
|
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.other/ |
H A D | std1.C | 4 extern "C" int memcmp (const void * __s1, 10 memcmp (0, 0, 0);
|
/haiku-buildtools/binutils/libiberty/ |
H A D | bcmp.c | 20 extern int memcmp(const void *, const void *, size_t); 25 return memcmp (s1, s2, count);
|
/haiku-buildtools/gcc/libiberty/ |
H A D | bcmp.c | 20 extern int memcmp(const void *, const void *, size_t); 25 return memcmp (s1, s2, count);
|
/haiku-buildtools/legacy/binutils/libiberty/ |
H A D | bcmp.c | 20 extern int memcmp(const void *, const void *, size_t); 25 return memcmp (s1, s2, count);
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/execute/ieee/ |
H A D | builtin-nan-1.c | 6 extern int memcmp(const void *, const void *, size_t); 13 if (memcmp (&n1, &n2, sizeof(double)))
|
/haiku-buildtools/gcc/gcc/testsuite/c-c++-common/asan/ |
H A D | pr62140-1.c | 4 int memcmp (const void *p, const void *q, int len); 8 return memcmp (p, q, len);
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/ |
H A D | pr39443.c | 4 /* { dg-final { scan-assembler-not "memcmp" } } */ 8 extern int memcmp (const void *s1, const void *s2, size_t n) 10 extern __typeof (memcmp) memcmp __asm__ ("memory_compare"); 16 return memcmp (s, t, cnt);
|
H A D | redecl-4.c | 22 /* Likewise, implicitly declared memcmp. */ 24 memcmp (1);
|
H A D | pr47917.c | 6 extern int memcmp (const void *, const void *, __SIZE_TYPE__); 27 if (memcmp (buf1, "abcde", 6) != 0 28 || memcmp (buf2, "abcde", 6) != 0 29 || memcmp (buf3, "abc", 4) != 0 30 || memcmp (buf4, "def", 4) != 0
|
/haiku-buildtools/binutils/ld/testsuite/ld-plugin/ |
H A D | pr12758a.s | 4 .dc.a memcmp
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/torture/ |
H A D | pr56837.C | 5 extern "C" int memcmp (const void *, const void *, __SIZE_TYPE__); 16 if (memcmp (b1, b2, 8) != 0)
|
/haiku-buildtools/legacy/gcc/gcc/config/ns32k/ |
H A D | xm-netbsd.h | 6 #undef memcmp macro
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/torture/ |
H A D | pr47917.c | 11 extern int memcmp (const void *, const void *, __SIZE_TYPE__); 32 if (memcmp (buf1, "abcde", 6) != 0 33 || memcmp (buf2, "abcde", 6) != 0 34 || memcmp (buf3, "abc", 4) != 0 35 || memcmp (buf4, "def", 4) != 0
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/atomic/ |
H A D | stdatomic-generic.c | 8 extern int memcmp (const void *, const void *, __SIZE_TYPE__); 27 if (memcmp (&a, &zero, size)) 31 if (memcmp (&c, &zero, size)) 33 if (memcmp (&a, &ones, size)) 37 if (memcmp (&b, &ones, size)) 42 if (memcmp (&a, &zero, size)) 47 if (memcmp (&b, &zero, size))
|