aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/asm
diff options
context:
space:
mode:
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>2024-12-30 10:08:58 +0800
committerabner chenc <chenguoqi@loongson.cn>2025-03-03 17:01:33 -0800
commit2ce1fb4220e1978d8ea7c615f8ae2d9170985640 (patch)
tree415e118b113e84ca4c247cea3619bfce11c4c5ec /src/cmd/asm
parent47fd73a51c52d58147f164317fc1f5640055bbad (diff)
downloadgo-2ce1fb4220e1978d8ea7c615f8ae2d9170985640.tar.xz
cmd/internal/obj/loong64: add F{MAXA/MINA}.{S/D} instructions
Go asm syntax: F{MAXA/MINA}{F/D} FK, FJ, FD Equivalent platform assembler syntax: f{maxa/mina}.{s/d} fd, fj, fk Ref: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html Change-Id: I6790657d2f36bdf5e6818b6c0aaa48117e782b8d Reviewed-on: https://go-review.googlesource.com/c/go/+/653915 Reviewed-by: abner chenc <chenguoqi@loongson.cn> Reviewed-by: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Junyang Shao <shaojunyang@google.com>
Diffstat (limited to 'src/cmd/asm')
-rw-r--r--src/cmd/asm/internal/asm/testdata/loong64enc1.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/loong64enc1.s b/src/cmd/asm/internal/asm/testdata/loong64enc1.s
index 1d34088096..3a8b8b8e5a 100644
--- a/src/cmd/asm/internal/asm/testdata/loong64enc1.s
+++ b/src/cmd/asm/internal/asm/testdata/loong64enc1.s
@@ -346,6 +346,15 @@ lable2:
FTINTVF F0, F1 // 01241b01
FTINTVD F0, F1 // 01281b01
+ FMAXAF F4, F5, F6 // a6900c01
+ FMAXAF F4, F5 // a5900c01
+ FMAXAD F4, F5, F6 // a6100d01
+ FMAXAD F4, F5 // a5100d01
+ FMINAF F4, F5, F6 // a6900e01
+ FMINAF F4, F5 // a5900e01
+ FMINAD F4, F5, F6 // a6100f01
+ FMINAD F4, F5 // a5100f01
+
FTINTRMWF F0, F2 // 02041a01
FTINTRMWD F0, F2 // 02081a01
FTINTRMVF F0, F2 // 02241a01