public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Lulu Cheng <chenglulu@loongson.cn>
To: gcc-patches@gcc.gnu.org
Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn,
	Lulu Cheng <chenglulu@loongson.cn>
Subject: [PATCH v4 0/4] When cmodel=extreme, add macro support and only support macros.
Date: Fri, 26 Jan 2024 15:37:41 +0800	[thread overview]
Message-ID: <20240126073745.13252-1-chenglulu@loongson.cn> (raw)

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


             reply	other threads:[~2024-01-26  7:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-26  7:37 Lulu Cheng [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240126073745.13252-1-chenglulu@loongson.cn \
    --to=chenglulu@loongson.cn \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=i@xen0n.name \
    --cc=xry111@xry111.site \
    --cc=xuchenghua@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).