aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64uv/fcvt.S
diff options
context:
space:
mode:
Diffstat (limited to 'isa/rv64uv/fcvt.S')
-rw-r--r--isa/rv64uv/fcvt.S75
1 files changed, 0 insertions, 75 deletions
diff --git a/isa/rv64uv/fcvt.S b/isa/rv64uv/fcvt.S
deleted file mode 100644
index 642ec35..0000000
--- a/isa/rv64uv/fcvt.S
+++ /dev/null
@@ -1,75 +0,0 @@
-# See LICENSE for license details.
-
-#*****************************************************************************
-# fcvt.S
-#-----------------------------------------------------------------------------
-#
-# Test fcvt instruction in a vf block.
-#
-
-#include "riscv_test.h"
-#include "test_macros.h"
-
-RVTEST_RV64UV
-RVTEST_CODE_BEGIN
-
- vsetcfg 32,32
- li a3,4
- vsetvl a3,a3
-
- la a3,src
- vld vx2,a3
- lui a0,%hi(vtcode)
- vf %lo(vtcode)(a0)
- la a4,dest
- vfsd vf0,a4
- fence
- la a5,result
- ld a1,0(a4)
- ld a2,0(a5)
- li TESTNUM,2
- bne a1,a2,fail
- ld a1,8(a4)
- ld a2,8(a5)
- li TESTNUM,3
- bne a1,a2,fail
- ld a1,16(a4)
- ld a2,16(a5)
- li TESTNUM,4
- bne a1,a2,fail
- ld a1,24(a4)
- ld a2,24(a5)
- li TESTNUM,5
- bne a1,a2,fail
- j pass
-
-vtcode:
- fcvt.d.l f0,x2
- stop
-
- TEST_PASSFAIL
-
-RVTEST_CODE_END
-
- .data
-RVTEST_DATA_BEGIN
-
- TEST_DATA
-
-src:
- .dword 1
- .dword 2
- .dword 3
- .dword 4
-dest:
- .dword 0xdeadbeefcafebabe
- .dword 0xdeadbeefcafebabe
- .dword 0xdeadbeefcafebabe
- .dword 0xdeadbeefcafebabe
-result:
- .double 1.0
- .double 2.0
- .double 3.0
- .double 4.0
-
-RVTEST_DATA_END