Re: [pushed][PATCH] LoongArch: Added TLS Le Relax support.

2024-01-01 Thread chenglulu
Pushed to r14-6879 and modified this issue. 在 2023/12/19 下午8:37, Xi Ruoyao 写道: On Tue, 2023-12-19 at 19:04 +0800, Lulu Cheng wrote: +(define_insn "@add_tls_le_relax" +  [(set (match_operand:P 0 "register_operand" "=r") +   (unspec:P [(match_operand:P 1 "register_operand" "r") +

Re: [PATCH] LoongArch: Added TLS Le Relax support.

2023-12-19 Thread chenglulu
在 2023/12/19 下午8:37, Xi Ruoyao 写道: On Tue, 2023-12-19 at 19:04 +0800, Lulu Cheng wrote: +(define_insn "@add_tls_le_relax" +  [(set (match_operand:P 0 "register_operand" "=r") +   (unspec:P [(match_operand:P 1 "register_operand" "r") +  (match_operand:P 2 "register_operand"

Re: [PATCH] LoongArch: Added TLS Le Relax support.

2023-12-19 Thread Xi Ruoyao
On Tue, 2023-12-19 at 19:04 +0800, Lulu Cheng wrote: > +(define_insn "@add_tls_le_relax" > +  [(set (match_operand:P 0 "register_operand" "=r") > +   (unspec:P [(match_operand:P 1 "register_operand" "r") > +  (match_operand:P 2 "register_operand" "r") > +  

[PATCH] LoongArch: Added TLS Le Relax support.

2023-12-19 Thread Lulu Cheng
Check whether the assembler supports tls le relax. If it supports it, the assembly instruction sequence of tls le relax will be generated by default. The original way to obtain the tls le symbol address: lu12i.w $rd, %le_hi20(sym) ori $rd, $rd, %le_lo12(sym) add.{w/d} $rd, $rd, $tp