public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] When cmodel=extreme, add macro support and only support macros.
@ 2024-01-26  7:37 Lulu Cheng
  2024-01-26  7:37 ` [PATCH v4 1/4] LoongArch: Merge template got_load_tls_{ld/gd/le/ie} Lulu Cheng
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Lulu Cheng @ 2024-01-26  7:37 UTC (permalink / raw)
  To: gcc-patches; +Cc: xry111, i, xuchenghua, Lulu Cheng

v3 -> v4:
  1. Add macro support for TLS symbols
  2. Added support for loading __get_tls_addr symbol address using call36.
  3. Merge template got_load_tls_{ld/gd/le/ie}.
  4. Enable explicit reloc for extreme TLS GD/LD with -mexplicit-relocs=auto.


v2 -> v3:
  1. Modify the detection rules of a test case.

v1 -> v2:
  1. Use the temporarily allocated registers as intermediate registers to implement the extreme macro.
  2. Fixed bugs in v1 test cases.


Lulu Cheng (4):
  LoongArch: Merge template got_load_tls_{ld/gd/le/ie}.
  LoongArch: Add the macro implementation of mcmodel=extreme.
  LoongArch: Enable explicit reloc for extreme TLS GD/LD with
    -mexplicit-relocs=auto.
  LoongArch: Added support for loading __get_tls_addr symbol address
    using call36.

 gcc/config/loongarch/loongarch-protos.h       |   1 +
 gcc/config/loongarch/loongarch.cc             | 182 +++++++++---------
 gcc/config/loongarch/loongarch.md             | 101 ++++++----
 gcc/config/loongarch/predicates.md            |  12 ++
 .../gcc.target/loongarch/attr-model-5.c       |   8 +
 .../explicit-relocs-extreme-auto-tls-ld-gd.c  |   5 +
 .../explicit-relocs-medium-auto-tls-ld-gd.c   |   5 +
 ...icit-relocs-medium-call36-auto-tls-ld-gd.c |   5 +
 .../loongarch/func-call-extreme-5.c           |   7 +
 .../loongarch/func-call-extreme-6.c           |   7 +
 .../gcc.target/loongarch/tls-extreme-macro.c  |  35 ++++
 11 files changed, 239 insertions(+), 129 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/loongarch/attr-model-5.c
 create mode 100644 gcc/testsuite/gcc.target/loongarch/explicit-relocs-extreme-auto-tls-ld-gd.c
 create mode 100644 gcc/testsuite/gcc.target/loongarch/explicit-relocs-medium-auto-tls-ld-gd.c
 create mode 100644 gcc/testsuite/gcc.target/loongarch/explicit-relocs-medium-call36-auto-tls-ld-gd.c
 create mode 100644 gcc/testsuite/gcc.target/loongarch/func-call-extreme-5.c
 create mode 100644 gcc/testsuite/gcc.target/loongarch/func-call-extreme-6.c
 create mode 100644 gcc/testsuite/gcc.target/loongarch/tls-extreme-macro.c

-- 
2.39.3


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-01-29  4:01 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-26  7:37 [PATCH v4 0/4] When cmodel=extreme, add macro support and only support macros Lulu Cheng
2024-01-26  7:37 ` [PATCH v4 1/4] LoongArch: Merge template got_load_tls_{ld/gd/le/ie} Lulu Cheng
2024-01-26  8:52   ` Xi Ruoyao
2024-01-26  8:59     ` chenglulu
2024-01-26  9:18       ` chenglulu
2024-01-26  7:37 ` [PATCH v4 2/4] LoongArch: Add the macro implementation of mcmodel=extreme Lulu Cheng
2024-01-26  8:53   ` Xi Ruoyao
2024-01-26  7:37 ` [PATCH v4 3/4] LoongArch: Enable explicit reloc for extreme TLS GD/LD with -mexplicit-relocs=auto Lulu Cheng
2024-01-26  7:37 ` [PATCH v4 4/4] LoongArch: Added support for loading __get_tls_addr symbol address using call36 Lulu Cheng
2024-01-26  8:49 ` [PATCH v4 0/4] When cmodel=extreme, add macro support and only support macros Xi Ruoyao
2024-01-26  8:59   ` chenglulu
2024-01-26 10:57     ` Xi Ruoyao
2024-01-26 11:15       ` chenglulu
2024-01-27  3:15       ` chenglulu
2024-01-27 10:02         ` Xi Ruoyao
2024-01-27 11:11           ` Xi Ruoyao
2024-01-27 14:03             ` chenglulu
2024-01-29  4:00               ` chenglulu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).