string-asm-1.c: Take __USER_LABEL_PREFIX__ into account.
* gcc.c-torture/execute/builtins/string-asm-1.c: Take __USER_LABEL_PREFIX__ into account. * gcc.c-torture/execute/builtins/string-asm-2.c: Likewise. From-SVN: r66827
This commit is contained in:
parent
ce000d1eec
commit
ae4f397b88
3 changed files with 19 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-05-15 J"orn Rennecke <joern.rennecke@superh.com>
|
||||
|
||||
* gcc.c-torture/execute/builtins/string-asm-1.c: Take
|
||||
__USER_LABEL_PREFIX__ into account.
|
||||
* gcc.c-torture/execute/builtins/string-asm-2.c: Likewise.
|
||||
|
||||
2003-05-14 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* gcc.dg/builtins-15.c: New test case.
|
||||
|
|
|
@ -3,10 +3,14 @@
|
|||
Ensure all expected transformations of builtin strstr occur and
|
||||
perform correctly in presence of redirect. */
|
||||
|
||||
#define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
|
||||
#define ASMNAME2(prefix, cname) STRING (prefix) cname
|
||||
#define STRING(x) #x
|
||||
|
||||
typedef __SIZE_TYPE__ size_t;
|
||||
extern void abort (void);
|
||||
extern char *strstr (const char *, const char *)
|
||||
__asm ("my_strstr");
|
||||
__asm (ASMNAME ("my_strstr"));
|
||||
|
||||
const char *p = "rld", *q = "hello world";
|
||||
|
||||
|
|
|
@ -2,16 +2,20 @@
|
|||
|
||||
Test memcpy and memset in presence of redirect. */
|
||||
|
||||
#define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
|
||||
#define ASMNAME2(prefix, cname) STRING (prefix) cname
|
||||
#define STRING(x) #x
|
||||
|
||||
typedef __SIZE_TYPE__ size_t;
|
||||
extern void abort (void);
|
||||
extern void *memcpy (void *, const void *, size_t)
|
||||
__asm ("my_memcpy");
|
||||
__asm (ASMNAME ("my_memcpy"));
|
||||
extern void bcopy (const void *, void *, size_t)
|
||||
__asm ("my_bcopy");
|
||||
__asm (ASMNAME ("my_bcopy"));
|
||||
extern void *memset (void *, int, size_t)
|
||||
__asm ("my_memset");
|
||||
__asm (ASMNAME ("my_memset"));
|
||||
extern void bzero (void *, size_t)
|
||||
__asm ("my_bzero");
|
||||
__asm (ASMNAME ("my_bzero"));
|
||||
extern int memcmp (const void *, const void *, size_t);
|
||||
|
||||
struct A { char c[32]; } a = { "foobar" };
|
||||
|
|
Loading…
Add table
Reference in a new issue