Skip to content

Commit 7ddbf4d

Browse files
committed
cmd/asm: add double precision comparision testcases for riscv64
Change-Id: If8e03dfdb332a22ec9c6a0021d7e7955520f3ddc Reviewed-on: https://go-review.googlesource.com/c/go/+/702136 Reviewed-by: Mark Freeman <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Mark Ryan <[email protected]> Reviewed-by: Joel Sing <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent c39abe0 commit 7ddbf4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cmd/asm/internal/asm/testdata/riscv64.s

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ start:
358358
FNMSUBD F1, F2, F3, F4 // 4b82201a
359359
FNMADDD F1, F2, F3, F4 // 4f82201a
360360

361+
// 21.6: Double-Precision Floating-Point Compare Instructions
362+
FEQD F0, F1, X7 // d3a300a2
363+
FLTD F0, F1, X7 // d39300a2
364+
FLED F0, F1, X7 // d38300a2
365+
361366
// 21.7: Double-Precision Floating-Point Classify Instruction
362367
FCLASSD F0, X5 // d31200e2
363368

0 commit comments

Comments
 (0)