diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 20:29:21 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 20:31:55 +0200 |
commit | 99ef2719fb3d703fe38c4113cd7f5adec516dd3a (patch) | |
tree | 2c1f77cb41b60ccbf8faa77a3640491a3546b546 /test/tls | |
parent | 543308f6c46cf2edf8a524bc9c631e472570fe72 (diff) |
test: remove test suite
The test suite is now a developed in a separate git repository.
See here:
http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng-test.git
The test suite should be just like every other software compiled
with the cross-toolchain. In the past strange problems where found
when the test suite got build in the toolchain creation step.
Diffstat (limited to 'test/tls')
64 files changed, 0 insertions, 2986 deletions
diff --git a/test/tls/Makefile b/test/tls/Makefile deleted file mode 100644 index 607fec2c9..000000000 --- a/test/tls/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# uClibc TLS tests -# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. - -top_builddir=../../ -top_srcdir=../../ -include ../Rules.mak --include Makefile.in -include ../Test.mak diff --git a/test/tls/Makefile.in b/test/tls/Makefile.in deleted file mode 100644 index 9f1037869..000000000 --- a/test/tls/Makefile.in +++ /dev/null @@ -1,161 +0,0 @@ -# uClibc TLS tests -# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. - -TESTS := tst-tls1 tst-tls2 tst-tls3 tst-tls4 tst-tls5 tst-tls6 tst-tls7 \ - tst-tls8 tst-tls9 tst-tls10 tst-tls11 tst-tls12 tst-tls13 \ - tst-tls14 tst-tls15 tst-tls16 tst-tls17 tst-tls18 tst-tls-at-ctor \ - tst-tls1-static tst-tls2-static tst-tls9-static -TESTS_DISABLED := tst-tls1-static tst-tls2-static tst-tls9-static - -# test always fails for every architecture, -# guessing some unimplemented check or feature -TESTS_DISABLED += tst-tls16 - -#all these tests require shared libraries -ifeq ($(HAVE_SHARED),) -TESTS_DISABLED := $(TESTS) -endif - -# All these tests need tls.h, which is not installed with glibc -GLIBC_TESTS_DISABLED := $(addsuffix _glibc,$(filter-out $(TESTS_DISABLED),$(TESTS))) - - -PTDIR := $(top_builddir)libpthread/nptl -SYSDEPS_DIR := $(top_srcdir)libc/sysdeps - -EXTRA_CFLAGS := -DNOT_IN_libc=1 \ - -std=gnu99 -I. \ - -I$(SYSDEPS_DIR)/linux \ - -I$(SYSDEPS_DIR)/linux/$(TARGET_ARCH) \ - -I$(PTDIR) \ - -I$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH) \ - -I$(PTDIR)/sysdeps/$(TARGET_ARCH) \ - -I$(PTDIR)/sysdeps/unix/sysv/linux \ - -I$(PTDIR)/sysdeps/pthread \ - -I$(PTDIR)/sysdeps/pthread/bits \ - -I$(PTDIR)/sysdeps/generic \ - -I$(top_builddir)ldso/include \ - -I$(top_builddir)ldso/ldso/$(TARGET_ARCH) \ - -I$(top_builddir)include \ - -include $(top_builddir)include/libc-symbols.h - -tlsmod17a-suffixes := 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 -tlsmod18a-suffixes := 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 -CFLAGS_tst-tlsmod1.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod2.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod3.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod4.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod5.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod6.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod7.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod8.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod9.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod10.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod11.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod12.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod13.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod13a.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod14a.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod14b.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod15a.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod15b.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod16a.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod16b.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod17a.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod17b.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod18a.so := -fPIC -DSHARED -shared -CFLAGS_tst-tlsmod-at-ctor.so := -fPIC -DSHARED -shared - -LDFLAGS_tst-tlsmod1.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod2.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod3.so := -shared -static-libgcc -L$(top_builddir)lib \ - tst-tlsmod2.so -LDFLAGS_tst-tlsmod4.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod5.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod6.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod7.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod8.so := -shared -static-libgcc -L$(top_builddir)lib \ - tst-tlsmod7.so -LDFLAGS_tst-tlsmod9.so := -shared -static-libgcc -L$(top_builddir)lib \ - tst-tlsmod8.so -LDFLAGS_tst-tlsmod10.so := -shared -static-libgcc -L$(top_builddir)lib \ - tst-tlsmod9.so -LDFLAGS_tst-tlsmod11.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod12.so := -shared -static-libgcc -L$(top_builddir)lib \ - tst-tlsmod11.so -LDFLAGS_tst-tlsmod13.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod13a.so := -shared -static-libgcc -L$(top_builddir)lib \ - tst-tlsmod13.so -LDFLAGS_tst-tlsmod14a.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod14b.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod15a.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod15b.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod16a.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod16b.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod17a.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod17b.so := -shared -static-libgcc -L$(top_builddir)lib \ - $(patsubst %,tst-tlsmod17a%.so,$(tlsmod17a-suffixes)) -LDFLAGS_tst-tlsmod18a.so := -shared -static-libgcc -L$(top_builddir)lib -LDFLAGS_tst-tlsmod-at-ctor.so := -shared -static-libgcc -L$(top_builddir)lib - -LDFLAGS_tst-tls3 := tst-tlsmod1.so tst-tlsmod4.so -LDFLAGS_tst-tls4 := -ldl -LDFLAGS_tst-tls5 := -ldl -LDFLAGS_tst-tls6 := -ldl -LDFLAGS_tst-tls7 := -ldl -LDFLAGS_tst-tls8 := -ldl -LDFLAGS_tst-tls9 := -ldl -LDFLAGS_tst-tls10 := -Wl,-rpath-link=. tst-tlsmod8.so tst-tlsmod7.so -LDFLAGS_tst-tls11 := -Wl,-rpath-link=. tst-tlsmod9.so tst-tlsmod10.so -LDFLAGS_tst-tls12 := -Wl,-rpath-link=. tst-tlsmod11.so tst-tlsmod12.so -LDFLAGS_tst-tls13 := -ldl -Wl,-rpath-link=. -LDFLAGS_tst-tls14 := -ldl -Wl,-rpath-link=. tst-tlsmod14a.so -LDFLAGS_tst-tls15 := -ldl -Wl,-rpath-link=. -LDFLAGS_tst-tls16 := -ldl -Wl,-rpath-link=. -LDFLAGS_tst-tls17 := -ldl -Wl,-rpath-link=. -LDFLAGS_tst-tls18 := -ldl -Wl,-rpath-link=. -LDFLAGS_tst-tls-at-ctor := tst-tlsmod-at-ctor.so - -tst-tlsmod3.so: tst-tlsmod2.so -tst-tlsmod4.so: tst-tlsmod3.so -tst-tlsmod6.so: tst-tlsmod5.so -tst-tlsmod8.so: tst-tlsmod7.so -tst-tlsmod9.so: tst-tlsmod8.so -tst-tlsmod10.so: tst-tlsmod9.so -tst-tlsmod12.so: tst-tlsmod11.so -tst-tlsmod13a.so: tst-tlsmod13.so -tst-tlsmod14b.so: tst-tlsmod14a.so -tst-tlsmod16b.so: tst-tlsmod16a.so - -tst-tls3: tst-tlsmod1.so tst-tlsmod4.so -tst-tls4: tst-tlsmod2.so -tst-tls5: tst-tlsmod2.so -tst-tls6: tst-tlsmod2.so -tst-tls7: tst-tlsmod2.so tst-tlsmod3.so -tst-tls8: tst-tlsmod2.so tst-tlsmod3.so tst-tlsmod4.so -tst-tls9: tst-tlsmod5.so tst-tlsmod6.so -tst-tls10: tst-tlsmod7.so tst-tlsmod8.so -tst-tls11: tst-tlsmod9.so tst-tlsmod10.so -tst-tls12: tst-tlsmod11.so tst-tlsmod12.so -tst-tls13: tst-tlsmod13.so tst-tlsmod13a.so -tst-tls14: tst-tlsmod14a.so tst-tlsmod14b.so -tst-tls15: tst-tlsmod15b.so -tst-tls16: tst-tlsmod16a.so tst-tlsmod16b.so -tst-tls17: tst-tlsmod17b.so -tst-tlsmod17b.so: $(patsubst %,tst-tlsmod17a%.so,$(tlsmod17a-suffixes)) -tst-tlsmod17a%.so: tst-tlsmod17a.c - $(Q)$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_tst-tlsmod17a.so) $< -o $@ \ - -DN=$* -Wl,-soname,$@ $(LDFLAGS) $(EXTRA_LIBS) \ - $(LDFLAGS_tst-tlsmod17a.so) -tst-tls18: $(patsubst %,tst-tlsmod18a%.so,$(tlsmod18a-suffixes)) -tst-tlsmod18a%.so: tst-tlsmod18a.c - $(Q)$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_tst-tlsmod18a.so) $< -o $@ \ - -DN=$* -Wl,-soname,$@ $(LDFLAGS) $(EXTRA_LIBS) \ - $(LDFLAGS_tst-tlsmod18a.so) -tst-tls-at-ctor: tst-tlsmod-at-ctor.so - -ifeq ($(TARGET_ARCH),mips) -RET_tst-tls15 := 1 -endif - -WRAPPER := env LD_LIBRARY_PATH="$$PWD:.:$(LD_LIBRARY_PATH)" diff --git a/test/tls/README b/test/tls/README deleted file mode 100644 index 06c9eb743..000000000 --- a/test/tls/README +++ /dev/null @@ -1,8 +0,0 @@ -These tests were imported from 'glibc/elf' and are responsible for testing -the TLS functionality of the dynamic loader. The file 'tls-macros-mips.h' -is a copy of 'glibc/sysdeps/mips/tls-macros.h'. Dependency and link orders -are critical and should NOT be changed. Even if you think you know what -you are doing, do not touch the Makefile without posting to the uClibc -development mailing list. - --Steve <sjhill@uclibc.org> diff --git a/test/tls/tls-macros-alpha.h b/test/tls/tls-macros-alpha.h deleted file mode 100644 index 78820ecac..000000000 --- a/test/tls/tls-macros-alpha.h +++ /dev/null @@ -1,25 +0,0 @@ -register void *__gp __asm__("$29"); - -# define TLS_LE(x) \ - ({ int *__l; \ - __asm__ ("call_pal 158\n\tlda $0," #x "($0)\t\t!tprel" : "=v"(__l)); \ - __l; }) - -# define TLS_IE(x) \ - ({ char *__tp; unsigned long __o; \ - __asm__ ("call_pal 158\n\tldq %1," #x "($gp)\t\t!gottprel" \ - : "=v"(__tp), "=r"(__o) : "r"(__gp)); \ - (int *)(__tp + __o); }) - -# define TLS_LD(x) \ - ({ extern void *__tls_get_addr(void *); int *__l; void *__i; \ - __asm__ ("lda %0," #x "($gp)\t\t!tlsldm" : "=r" (__i) : "r"(__gp)); \ - __i = __tls_get_addr(__i); \ - __asm__ ("lda %0, " #x "(%1)\t\t!dtprel" : "=r"(__l) : "r"(__i)); \ - __l; }) - -# define TLS_GD(x) \ - ({ extern void *__tls_get_addr(void *); void *__i; \ - __asm__ ("lda %0," #x "($gp)\t\t!tlsgd" : "=r" (__i) : "r"(__gp)); \ - (int *) __tls_get_addr(__i); }) - diff --git a/test/tls/tls-macros-arc.h b/test/tls/tls-macros-arc.h deleted file mode 100644 index 4b2d6f8ad..000000000 --- a/test/tls/tls-macros-arc.h +++ /dev/null @@ -1,28 +0,0 @@ -/* For now */ -#define TLS_LD(x) TLS_IE(x) - -#define TLS_GD(x) \ - ({ int *__result; \ - __asm__ ("add r0, pcl, @" #x "@tlsgd \n" \ - ".tls_gd_ld " #x "`bl __tls_get_addr@plt \n" \ - "mov %0, r0 \n" \ - : "=&r" (__result) \ - ::"r0","r1","r2","r3","r4","r5","r6","r7", \ - "r8","r9","r10","r11","r12"); \ - __result; }) - -#define TLS_LE(x) \ - ({ int *__result; \ - void *tp = __builtin_thread_pointer(); \ - __asm__ ("add %0, %1, @" #x "@tpoff \n" \ - : "=r" (__result) : "r"(tp)); \ - __result; }) - -#define TLS_IE(x) \ - ({ int *__result; \ - void *tp = __builtin_thread_pointer(); \ - __asm__ ("ld %0, [pcl, @" #x "@tlsie] \n" \ - "add %0, %1, %0 \n" \ - : "=&r" (__result) : "r" (tp)); \ - __result; }) - diff --git a/test/tls/tls-macros-arm.h b/test/tls/tls-macros-arm.h deleted file mode 100644 index 13d0f9752..000000000 --- a/test/tls/tls-macros-arm.h +++ /dev/null @@ -1,51 +0,0 @@ -#define TLS_LE(x) \ - ({ int *__result; \ - void *tp = __builtin_thread_pointer (); \ - __asm__ ("ldr %0, 1f; " \ - "add %0, %1, %0; " \ - "b 2f; " \ - "1: .word " #x "(tpoff); " \ - "2: " \ - : "=&r" (__result) : "r" (tp)); \ - __result; }) - -#define TLS_IE(x) \ - ({ int *__result; \ - void *tp = __builtin_thread_pointer (); \ - __asm__ ("ldr %0, 1f; " \ - "3: ldr %0, [pc, %0];" \ - "add %0, %1, %0; " \ - "b 2f; " \ - "1: .word " #x "(gottpoff) + (. - 3b - 8); " \ - "2: " \ - : "=&r" (__result) : "r" (tp)); \ - __result; }) - -#define TLS_LD(x) \ - ({ char *__result; \ - int __offset; \ - extern void *__tls_get_addr (void *); \ - __asm__ ("ldr %0, 2f; " \ - "1: add %0, pc, %0; " \ - "b 3f; " \ - "2: .word " #x "(tlsldm) + (. - 1b - 8); " \ - "3: " \ - : "=r" (__result)); \ - __result = (char *)__tls_get_addr (__result); \ - __asm__ ("ldr %0, 1f; " \ - "b 2f; " \ - "1: .word " #x "(tlsldo); " \ - "2: " \ - : "=r" (__offset)); \ - (int *) (__result + __offset); }) - -#define TLS_GD(x) \ - ({ int *__result; \ - extern void *__tls_get_addr (void *); \ - __asm__ ("ldr %0, 2f; " \ - "1: add %0, pc, %0; " \ - "b 3f; " \ - "2: .word " #x "(tlsgd) + (. - 1b - 8); " \ - "3: " \ - : "=r" (__result)); \ - (int *)__tls_get_addr (__result); }) diff --git a/test/tls/tls-macros-i386.h b/test/tls/tls-macros-i386.h deleted file mode 100644 index 6690753a7..000000000 --- a/test/tls/tls-macros-i386.h +++ /dev/null @@ -1,76 +0,0 @@ -#define TLS_LE(x) \ - ({ int *__l; \ - __asm__ ("movl %%gs:0,%0\n\t" \ - "subl $" #x "@tpoff,%0" \ - : "=r" (__l)); \ - __l; }) - -#ifdef __PIC__ -# define TLS_IE(x) \ - ({ int *__l; \ - __asm__ ("movl %%gs:0,%0\n\t" \ - "subl " #x "@gottpoff(%%ebx),%0" \ - : "=r" (__l)); \ - __l; }) -#else -# define TLS_IE(x) \ - ({ int *__l; \ - __asm__ ("call 1f\n\t" \ - ".subsection 1\n" \ - "1:\tmovl (%%esp), %%ebx\n\t" \ - "ret\n\t" \ - ".previous\n\t" \ - "addl $_GLOBAL_OFFSET_TABLE_, %%ebx\n\t" \ - "movl %%gs:0,%0\n\t" \ - "subl " #x "@gottpoff(%%ebx),%0" \ - : "=r" (__l)); \ - __l; }) -#endif - -#ifdef __PIC__ -# define TLS_LD(x) \ - ({ int *__l, __c, __d; \ - __asm__ ("leal " #x "@tlsldm(%%ebx),%%eax\n\t" \ - "call ___tls_get_addr@plt\n\t" \ - "leal " #x "@dtpoff(%%eax), %%eax" \ - : "=a" (__l), "=&c" (__c), "=&d" (__d)); \ - __l; }) -#else -# define TLS_LD(x) \ - ({ int *__l, __b, __c, __d; \ - __asm__ ("call 1f\n\t" \ - ".subsection 1\n" \ - "1:\tmovl (%%esp), %%ebx\n\t" \ - "ret\n\t" \ - ".previous\n\t" \ - "addl $_GLOBAL_OFFSET_TABLE_, %%ebx\n\t" \ - "leal " #x "@tlsldm(%%ebx),%%eax\n\t" \ - "call ___tls_get_addr@plt\n\t" \ - "leal " #x "@dtpoff(%%eax), %%eax" \ - : "=a" (__l), "=&b" (__b), "=&c" (__c), "=&d" (__d)); \ - __l; }) -#endif - -#ifdef __PIC__ -# define TLS_GD(x) \ - ({ int *__l, __c, __d; \ - __asm__ ("leal " #x "@tlsgd(%%ebx),%%eax\n\t" \ - "call ___tls_get_addr@plt\n\t" \ - "nop" \ - : "=a" (__l), "=&c" (__c), "=&d" (__d)); \ - __l; }) -#else -# define TLS_GD(x) \ - ({ int *__l, __c, __d; \ - __asm__ ("call 1f\n\t" \ - ".subsection 1\n" \ - "1:\tmovl (%%esp), %%ebx\n\t" \ - "ret\n\t" \ - ".previous\n\t" \ - "addl $_GLOBAL_OFFSET_TABLE_, %%ebx\n\t" \ - "leal " #x "@tlsgd(%%ebx),%%eax\n\t" \ - "call ___tls_get_addr@plt\n\t" \ - "nop" \ - : "=a" (__l), "=&c" (__c), "=&d" (__d)); \ - __l; }) -#endif diff --git a/test/tls/tls-macros-ia64.h b/test/tls/tls-macros-ia64.h deleted file mode 100644 index 2584020a7..000000000 --- a/test/tls/tls-macros-ia64.h +++ /dev/null @@ -1,63 +0,0 @@ -#define TLS_LE(x) \ - ({ void *__l; \ - __asm__ ("mov r2=r13\n\t" \ - ";;\n\t" \ - "addl %0=@tprel(" #x "),r2\n\t" \ - : "=r" (__l) : : "r2" ); __l; }) - -#define TLS_IE(x) \ - ({ void *__l; \ - register long __gp __asm__ ("gp"); \ - __asm__ (";;\n\t" \ - "addl r16=@ltoff(@tprel(" #x ")),gp\n\t" \ - ";;\n\t" \ - "ld8 r17=[r16]\n\t" \ - ";;\n\t" \ - "add %0=r13,r17\n\t" \ - ";;\n\t" \ - : "=r" (__l) : "r" (__gp) : "r16", "r17" ); __l; }) - -#define __TLS_CALL_CLOBBERS \ - "r2", "r3", "r8", "r9", "r10", "r11", "r14", "r15", "r16", "r17", \ - "r18", "r19", "r20", "r21", "r22", "r23", "r24", "r25", "r26", \ - "r27", "r28", "r29", "r30", "r31", \ - "p6", "p7", "p8", "p9", "p10", "p11", "p12", "p13", "p14", "p15", \ - "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", \ - "b6", "b7", \ - "out0", "out1", "out2", "out3", "out4", "out5", "out6", "out7" - -#define TLS_LD(x) \ - ({ void *__l; \ - register long __gp __asm__ ("gp"); \ - __asm__ (";;\n\t" \ - "mov loc0=gp\n\t" \ - "addl r16=@ltoff(@dtpmod(" #x ")),gp\n\t" \ - "addl out1=@dtprel(" #x "),r0\n\t" \ - ";;\n\t" \ - "ld8 out0=[r16]\n\t" \ - "br.call.sptk.many b0=__tls_get_addr" \ - ";;\n\t" \ - "mov gp=loc0\n\t" \ - "mov %0=r8\n\t" \ - ";;\n\t" \ - : "=r" (__l) : "r" (__gp) : "loc0", __TLS_CALL_CLOBBERS); \ - __l; }) - -#define TLS_GD(x) \ - ({ void *__l; \ - register long __gp __asm__ ("gp"); \ - __asm__ (";;\n\t" \ - "mov loc0=gp\n\t" \ - "addl r16=@ltoff(@dtpmod(" #x ")),gp\n\t" \ - "addl r17=@ltoff(@dtprel(" #x ")),gp\n\t" \ - ";;\n\t" \ - "ld8 out0=[r16]\n\t" \ - "ld8 out1=[r17]\n\t" \ - "br.call.sptk.many b0=__tls_get_addr" \ - ";;\n\t" \ - "mov gp=loc0\n\t" \ - "mov %0=r8\n\t" \ - ";;\n\t" \ - : "=r" (__l) : "r" (__gp) : "loc0", __TLS_CALL_CLOBBERS); \ - __l; }) - diff --git a/test/tls/tls-macros-metag.h b/test/tls/tls-macros-metag.h deleted file mode 100644 index 5533ecd76..000000000 --- a/test/tls/tls-macros-metag.h +++ /dev/null @@ -1,38 +0,0 @@ -#define TLS_GD(x) \ - ({ void *__result; \ - extern void *__tls_get_addr (void *); \ - __asm__ ("MOV %0, A1LbP\n\t" \ - "ADD %0, %0, #(" #x "@TLSGD)" \ - : "=d" (__result)); \ - (int *)__tls_get_addr (__result); }) - -#define TLS_LD(x) \ - ({ void *__result; \ - extern void *__tls_get_addr (void *); \ - __asm__ ("MOV %0, A1LbP\n\t" \ - "ADD %0, %0, #(" #x "@TLSLDM)" \ - : "=d" (__result)); \ - __result = __tls_get_addr (__result); \ - __asm__ ("ADDT %0,%0,#HI(" #x "@TLSLDO)\n\t" \ - "ADD %0,%0,#LO(" #x "@TLSLDO)" \ - : "+d" (__result)); \ - __result; }) - -#define TLS_IE(x) \ - ({ void *__result; \ - unsigned long __rel; \ - extern void *__metag_load_tp (void); \ - __asm__ ("GETD %0,[A1LbP+#(" #x "@TLSIE)]" \ - : "=d" (__rel)); \ - __result = __metag_load_tp(); \ - __result + __rel; }) - -#define TLS_LE(x) \ - ({ void *__result; \ - extern void *__metag_load_tp (void); \ - __result = __metag_load_tp(); \ - __asm__ ("ADDT %0,%0,#HI(" #x "@TLSLE)\n\t" \ - "ADD %0,%0,#LO(" #x "@TLSLE)" \ - : "+d" (__result)); \ - __result; }) - diff --git a/test/tls/tls-macros-mips.h b/test/tls/tls-macros-mips.h deleted file mode 100644 index eed0938f2..000000000 --- a/test/tls/tls-macros-mips.h +++ /dev/null @@ -1,64 +0,0 @@ -/* Macros to support TLS testing in times of missing compiler support. */ - -#include <sys/cdefs.h> -#include <sys/asm.h> - -#define __STRING2(X) __STRING(X) -#define ADDU __STRING2(PTR_ADDU) -#define ADDIU __STRING2(PTR_ADDIU) -#define LW __STRING2(PTR_L) - -/* Load the GOT pointer, which may not be in $28 in a non-PIC - (abicalls pic0) function. */ -#ifndef __PIC__ -# if _MIPS_SIM != _ABI64 -# define LOAD_GP "move %[tmp], $28\n\tla $28, __gnu_local_gp\n\t" -# else -# define LOAD_GP "move %[tmp], $28\n\tdla $28, __gnu_local_gp\n\t" -# endif -# define UNLOAD_GP "\n\tmove $28, %[tmp]" -#else -# define LOAD_GP -# define UNLOAD_GP -#endif - -# define TLS_GD(x) \ - ({ void *__result, *__tmp; \ - extern void *__tls_get_addr (void *); \ - __asm__ (LOA |