diff options
author | Xi Ruoyao <xry111@xry111.site> | 2025-03-01 11:46:44 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2025-08-18 09:09:34 +0800 |
commit | 91f00a75536a553b5f95ea80694d655c5ddf34af (patch) | |
tree | 6520095b139a1dce80733e0fc45ec0693d1c2c02 /libjava | |
parent | d1d7ecfbc6d86f660ec79ca272b20aea9d6c3ca7 (diff) | |
download | gcc-91f00a75536a553b5f95ea80694d655c5ddf34af.zip gcc-91f00a75536a553b5f95ea80694d655c5ddf34af.tar.gz gcc-91f00a75536a553b5f95ea80694d655c5ddf34af.tar.bz2 |
LoongArch: Allow using bstrins for masking the address in atomic_test_and_set
We can use bstrins for masking the address here. As people are already
working on LA32R (which lacks bstrins instructions), for future-proofing
we check whether (const_int -4) is an and_operand and force it into an
register if not.
gcc/ChangeLog:
* config/loongarch/sync.md (atomic_test_and_set): Use bstrins
for masking the address if possible.
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions