On Thu, 2024-02-29 at 14:08 +0800, Xi Ruoyao wrote: > > + "TARGET_TLS_DESC" > > + "la.tls.desc\t%0,%1" > > With -mexplicit-relocs=always we should emit %desc_pc_lo12 etc. instead > of la.tls.desc. As we don't want to add too many code we can just hard > code the 4 instructions here instead of splitting this insn, just > something like > > { return TARGET_EXPLICIT_RELOCS_ALWAS ? "......" : "la.tls.desc\t%0,%1"; }
And if -mcmodel=extreme we should use a 3-operand la.tls.desc. Or if we don't want to support this we can just error out if -mcmodel=extreme - mtls-dialect=desc. -- Xi Ruoyao <xry...@xry111.site> School of Aerospace Science and Technology, Xidian University