aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/lib
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2025-03-01 11:46:47 +0800
committerLulu Cheng <chenglulu@loongson.cn>2025-08-18 09:09:35 +0800
commit1f1ab36058abc80c306ad022540df1c4f835612f (patch)
treee68b714afaf50ce918506a620aaf4bd6b50fbda6 /libjava/classpath/lib
parent2ac0e38a3099b6422199553ae29b8b333bb9f5e7 (diff)
downloadgcc-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/classpath/lib')
0 files changed, 0 insertions, 0 deletions