diff options
author | Xi Ruoyao <xry111@xry111.site> | 2025-03-01 11:46:47 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2025-08-18 09:09:35 +0800 |
commit | 1f1ab36058abc80c306ad022540df1c4f835612f (patch) | |
tree | e68b714afaf50ce918506a620aaf4bd6b50fbda6 /libjava | |
parent | 2ac0e38a3099b6422199553ae29b8b333bb9f5e7 (diff) | |
download | gcc-1f1ab36058abc80c306ad022540df1c4f835612f.zip gcc-1f1ab36058abc80c306ad022540df1c4f835612f.tar.gz gcc-1f1ab36058abc80c306ad022540df1c4f835612f.tar.bz2 |
LoongArch: Remove unneeded "andi offset, addr, 3" instruction in atomic_test_and_set
On LoongArch sll.w and srl.w instructions only take the [4:0] bits of
rk (shift amount) into account, and we've already defined
SHIFT_COUNT_TRUNCATED to 1 so the compiler knows this fact, thus we
don't need this instruction.
gcc/ChangeLog:
* config/loongarch/sync.md (atomic_test_and_set): Remove
unneeded andi instruction from the expansion.
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions