target/loongarch: Add floating point arithmetic instruction translation
commitd578ca6cbba6056f17901c869a6325d571bb124d
authorSong Gao <gaosong@loongson.cn>
Mon, 6 Jun 2022 12:43:00 +0000 (6 20:43 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 6 Jun 2022 18:09:03 +0000 (6 18:09 +0000)
treee85d02badd4aad11c642c2639793c42bae58620b
parent8708a04a6145b4c9289fed28358fb1273dcd6aea
target/loongarch: Add floating point arithmetic instruction translation

This includes:
- F{ADD/SUB/MUL/DIV}.{S/D}
- F{MADD/MSUB/NMADD/NMSUB}.{S/D}
- F{MAX/MIN}.{S/D}
- F{MAXA/MINA}.{S/D}
- F{ABS/NEG}.{S/D}
- F{SQRT/RECIP/RSQRT}.{S/D}
- F{SCALEB/LOGB/COPYSIGN}.{S/D}
- FCLASS.{S/D}

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-11-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/loongarch/cpu.c
target/loongarch/fpu_helper.c [new file with mode: 0644]
target/loongarch/helper.h
target/loongarch/insn_trans/trans_farith.c.inc [new file with mode: 0644]
target/loongarch/insns.decode
target/loongarch/internals.h
target/loongarch/translate.c