[PATCH v2 0/3] Add support for LoongArch V1.1 instructions

Jiajie Chen c@jia.je
Thu Oct 26 09:35:12 GMT 2023


LoongArch V1.1 release is out at
https://www.loongson.cn/uploads/images/2023102309132647981.%E9%BE%99%E8%8A%AF%E6%9E%B6%E6%9E%84%E5%8F%82%E8%80%83%E6%89%8B%E5%86%8C%E5%8D%B7%E4%B8%80_r1p10.pdf.

It brings the following new instructions:

- atomic cas: amcas{_db}.b/h/w/d
- ll-sc: sc.q, llacq.w/d, screl.w/d
- estimated reciprocal: frecipe/frsqrte and their vector counterpart

Support and tests for these new instructions are added.

Changes since v1:

- Add support for "sc.q r4, r5, r6, 0" and "llacq.w/d / screl.w/d r4,
  r5, 0"

Jiajie Chen (3):
  as: Add new atomic instructions in LoongArch v1.1
  as: Add new estimated reciprocal instructions in LoongArch v1.1
  gas: add loongarch v1.1 to NEWS

 gas/NEWS                                    |  2 +
 gas/config/tc-loongarch.c                   |  6 ++-
 gas/testsuite/gas/loongarch/float_op.d      |  4 ++
 gas/testsuite/gas/loongarch/float_op.s      |  4 ++
 gas/testsuite/gas/loongarch/load_store_op.d | 42 ++++++++++++++++
 gas/testsuite/gas/loongarch/load_store_op.s | 42 ++++++++++++++++
 gas/testsuite/gas/loongarch/vector.d        |  8 +++
 gas/testsuite/gas/loongarch/vector.s        |  8 +++
 opcodes/loongarch-opc.c                     | 54 +++++++++++++++++++++
 9 files changed, 168 insertions(+), 2 deletions(-)

-- 
2.42.0



More information about the Binutils mailing list