target/loongarch: Add fixed point arithmetic instruction translation
commit143d6785ef725aff6d09bc112c21119c32d9d0ae
authorSong Gao <gaosong@loongson.cn>
Mon, 6 Jun 2022 12:42:54 +0000 (6 20:42 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 6 Jun 2022 18:09:03 +0000 (6 18:09 +0000)
tree7cf357432aa7df04d29554358067b8e38fff1d15
parentf8da88d78f71da751f089913784fa884df31bd03
target/loongarch: Add fixed point arithmetic instruction translation

This includes:
- ADD.{W/D}, SUB.{W/D}
- ADDI.{W/D}, ADDU16ID
- ALSL.{W[U]/D}
- LU12I.W, LU32I.D LU52I.D
- SLT[U], SLT[U]I
- PCADDI, PCADDU12I, PCADDU18I, PCALAU12I
- AND, OR, NOR, XOR, ANDN, ORN
- MUL.{W/D}, MULH.{W[U]/D[U]}
- MULW.D.W[U]
- DIV.{W[U]/D[U]}, MOD.{W[U]/D[U]}
- ANDI, ORI, XORI

Signed-off-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220606124333.2060567-5-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/loongarch/insn_trans/trans_arith.c.inc [new file with mode: 0644]
target/loongarch/insns.decode [new file with mode: 0644]
target/loongarch/translate.c
target/loongarch/translate.h