aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64sv/illegal_tvec_regid.S
blob: a2090ac51ff17b68e3708e50a7612a04421a897d (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
# See LICENSE for license details.

#*****************************************************************************
# illegal_tvec_regid.S
#-----------------------------------------------------------------------------
#
# Test illegal tvec regid trap.
#

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

RVTEST_RV64SV
RVTEST_CODE_BEGIN

  TEST_ILLEGAL_TVEC_REGID(2, 5, 5, vsd, vx7, a2)
  TEST_ILLEGAL_TVEC_REGID(3, 5, 5, vld, vx7, a2)

  TEST_ILLEGAL_TVEC_REGID(4, 5, 5, vfsd, vf7, a2)
  TEST_ILLEGAL_TVEC_REGID(5, 5, 5, vfld, vf7, a2)

  TEST_PASSFAIL

RVTEST_CODE_END

  .data
RVTEST_DATA_BEGIN

  TEST_DATA

src1:
  .dword 1
  .dword 2
  .dword 3
  .dword 4
src2:
  .dword 4
  .dword 3
  .dword 2
  .dword 1
dest:
  .dword 0xdeadbeefcafebabe
  .dword 0xdeadbeefcafebabe
  .dword 0xdeadbeefcafebabe
  .dword 0xdeadbeefcafebabe

RVTEST_DATA_END