diff options
author | mengqinggang <mengqinggang@loongson.cn> | 2024-07-05 10:40:33 +0800 |
---|---|---|
committer | caiyinyu <caiyinyu@loongson.cn> | 2024-08-09 09:06:17 +0800 |
commit | 5662433c38c1925bd937cd50232fe4251bc20d04 (patch) | |
tree | 9174165f8bc3fa9ebc36db7938cd433d7e214902 /sysdeps/ieee754/ldbl-64-128/s_atanl.c | |
parent | d5f1da2a8a889e4868615f9b155ca67f10d46b5b (diff) | |
download | glibc-5662433c38c1925bd937cd50232fe4251bc20d04.tar.gz glibc-5662433c38c1925bd937cd50232fe4251bc20d04.tar.xz glibc-5662433c38c1925bd937cd50232fe4251bc20d04.zip |
LoongArch: Add cfi instructions for _dl_tlsdesc_dynamic
In _dl_tlsdesc_dynamic, there are three 'addi.d sp, sp, -size' instructions to allocate stack size for Float/LSX/LASX registers. Every 'addi.d sp, sp, -size' needs a cfi_adjust_cfa_offset because of sp is used to compute CFA. But only one 'addi.d sp, sp, -size' will be run according to HWCAP value. And all cfi_adjust_cfa_offset will be executed in stack unwinding, it result in incorrect CFA. Change _dl_tlsdesc_dynamic to _dl_tlsdesc_dynamic, _dl_tlsdesc_dynamic_lsx and _dl_tlsdesc_dynamic_lasx. Conflicting cfi instructions can be distributed to the three functions. And cfi instructions can correspond to stack down instructions.
Diffstat (limited to 'sysdeps/ieee754/ldbl-64-128/s_atanl.c')
0 files changed, 0 insertions, 0 deletions