glibc/sysdeps/loongarch
mengqinggang a10b6ad471 LoongArch: Fix tst-gnu2-tls2 test case
asm volatile ("movfcsr2gr $t0, $fcsr0" ::: "$t0");
asm volatile ("st.d $t0, %0" :"=m"(restore_fcsr));

generate to the following instructions with -Og flag:

movfcsr2gr      $t0, $zero
addi.d          $t0, $sp, 2047(0x7ff)
addi.d          $t0, $t0, 77(0x4d)
st.w            $t0, $t0, 0

fcsr0 register and restore_fcsr variable are both stored in t0 register.

Change to:

asm volatile ("movfcsr2gr %0, $fcsr0" :"=r"(restore_fcsr));

to avoid restore_fcsr address in t0.

Comparing float value using memcmp because float value cannot be
directly compared for equality.

Put LOAD_REGISTER_FCSR and SAVE_REGISTER_FCC after LOAD_REGISTER_FLOAT.
Some float instructions may change fcsr register.
2024-06-26 12:02:07 +08:00
..
bits
fpu
lp64 LoongArch: Update ulps 2024-06-19 21:17:19 +02:00
nofpu
nptl
sys LoongArch: Ensure sp 16-byte aligned for tlsdesc 2024-06-14 10:14:54 +08:00
__longjmp.S
abort-instr.h
bsd-_setjmp.c
bsd-setjmp.c
configure Convert to autoconf 2.72 (vanilla release, no distribution patches) 2024-06-17 21:15:28 +02:00
configure.ac LoongArch: Fix tst-gnu2-tls2 compiler error 2024-05-21 11:23:03 +08:00
cpu-tunables.c
dl-audit-check.h
dl-get-cpu-features.c
dl-irel.h
dl-link.sym
dl-machine.h LoongArch: Add support for TLS Descriptors 2024-05-15 10:31:53 +08:00
dl-tls.h LoongArch: Add support for TLS Descriptors 2024-05-15 10:31:53 +08:00
dl-tlsdesc.h LoongArch: Add support for TLS Descriptors 2024-05-15 10:31:53 +08:00
dl-tlsdesc.S LoongArch: Fix _dl_tlsdesc_dynamic in LSX case 2024-06-19 10:06:41 +08:00
dl-trampoline.h
dl-trampoline.S
dl-tunables.list
e_sqrtl.c
fpu_control.h LoongArch: Use "$fcsr0" instead of "$r0" in _FPU_{GET,SET}CW 2024-05-28 09:17:05 +08:00
hp-timing.h
Implies
jmpbuf-offsets.h
jmpbuf-unwind.h
ldsodefs.h
libc-tls.c
linkmap.h LoongArch: Add support for TLS Descriptors 2024-05-15 10:31:53 +08:00
machine-gmon.h
Makefile LoongArch: Fix tst-gnu2-tls2 compiler error 2024-05-21 11:23:03 +08:00
math_private.h
math-use-builtins-ffs.h
preconfigure LoongArch: Add support for TLS Descriptors 2024-05-15 10:31:53 +08:00
preconfigure.ac
setjmp.S
sfp-machine.h
sotruss-lib.c
stackinfo.h
start.S
tininess.h
tlsdesc.c LoongArch: Add support for TLS Descriptors 2024-05-15 10:31:53 +08:00
tlsdesc.sym LoongArch: Add support for TLS Descriptors 2024-05-15 10:31:53 +08:00
tst-audit.h
tst-gnu2-tls2.h LoongArch: Fix tst-gnu2-tls2 test case 2024-06-26 12:02:07 +08:00
tst-hwcap-tunables.c