aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64uv/vfmvv.S
blob: cb97dee058f035542ac659cdbb2b06afb50bff07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#*****************************************************************************
# vfmvv.S
#-----------------------------------------------------------------------------
#
# Test vfmvv instruction.
#

#include "riscv_test.h"
#include "test_macros.h"

RVTEST_RV64UV
RVTEST_CODE_BEGIN

  vsetcfg 2,2
  li a2,2048
  vsetvl a2,a2

  lui a0,%hi(vtcode)
  vf %lo(vtcode)(a0)
  vfmvv vf1,vf0
  la a3,dest
  vfsd vf1,a3
  fence

  li a1,1
loop:
  ld a0,0(a3)
  addi TESTNUM,a1,2
  bne a0,a1,fail
  addi a3,a3,8
  addi a1,a1,1
  bne a1,a2,loop
  j pass

vtcode:
  utidx x1
  addi x1,x1,1
  fmv.d.x f0,x1
  stop

  TEST_PASSFAIL

RVTEST_CODE_END

  .data
RVTEST_DATA_BEGIN

  TEST_DATA

dest:
  .skip 16384

RVTEST_DATA_END