From b895dd56308304bedcea17852c01dc0cd794bfb8 Mon Sep 17 00:00:00 2001 From: Xiaolin Zhao Date: Fri, 13 Sep 2024 15:32:03 +0800 Subject: cmd/internal/obj/loong64: add support for instructions FSCALEB{F/D} and FLOGB{F/D} Go asm syntax: FSCALEB{F/D} FK, FJ, FD FLOGB{F/D} FJ, FD Equivalent platform assembler syntax: fscaleb.{s/d} fd, fj, fk flogb.{s/d} fd, fj Ref: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html Change-Id: I6cd75c7605adbb572dae86d6470ec7cf20ce0f6c Reviewed-on: https://go-review.googlesource.com/c/go/+/612975 Auto-Submit: abner chenc Reviewed-by: Cherry Mui Reviewed-by: Tim King Reviewed-by: Meidan Li Reviewed-by: abner chenc LUCI-TryBot-Result: Go LUCI --- src/cmd/asm/internal/asm/testdata/loong64enc1.s | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cmd/asm') diff --git a/src/cmd/asm/internal/asm/testdata/loong64enc1.s b/src/cmd/asm/internal/asm/testdata/loong64enc1.s index 45256beb7c..2688f7f22c 100644 --- a/src/cmd/asm/internal/asm/testdata/loong64enc1.s +++ b/src/cmd/asm/internal/asm/testdata/loong64enc1.s @@ -351,3 +351,8 @@ lable2: BSTRPICKV $0, R4, $0, R5 // 8500c000 BSTRPICKV $63, R4, $0, R5 // 8500ff00 BSTRPICKV $15, R4, $6, R5 // 8518cf00 + + FSCALEBF F4, F5, F6 // a6901001 + FSCALEBD F4, F5, F6 // a6101101 + FLOGBF F4, F5 // 85241401 + FLOGBD F4, F5 // 85281401 -- cgit v1.3-5-g9baa