Re: [PATCH v1] LoongArch: Add new code model 'emdium'.

2022-08-20 Thread Huacai Chen via Gcc-patches
Hi, Lulu, I think there is a typo in your subject line. Huacai On Sat, Aug 20, 2022 at 5:05 PM Lulu Cheng wrote: > > The function jump instruction in normal mode is 'bl', > so the scope of the function jump is +-128MB. > > Now we've added support for 'medium' mode, this mode is > to complete th

[PATCH v1] LoongArch: Add new code model 'emdium'.

2022-08-20 Thread Lulu Cheng
The function jump instruction in normal mode is 'bl', so the scope of the function jump is +-128MB. Now we've added support for 'medium' mode, this mode is to complete the function jump through two instructions: pcalau12i + jirl So in this mode the function jump range is increased to +-2GB