aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64mzicbo/zero.S
blob: 44448b053bc0e30dcd197f56887a4e19c31ca207 (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
#*****************************************************************************
#-----------------------------------------------------------------------------
#
# Test CBO.ZERO instruction.
#

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

RVTEST_RV64M
RVTEST_CODE_BEGIN

  la  x1, tdat
  .word 0x0040A00F  ; cbo.zero(x1)
  TEST_LD_OP( 1, ld, 0, 0,  tdat )
  TEST_LD_OP( 2, ld, 0, 8,  tdat )
  TEST_LD_OP( 3, ld, 0, 16, tdat )
  TEST_LD_OP( 4, ld, 0, 24, tdat )
  TEST_LD_OP( 5, ld, 0, 32, tdat )
  TEST_LD_OP( 6, ld, 0, 40, tdat )
  TEST_LD_OP( 7, ld, 0, 48, tdat )
  TEST_LD_OP( 8, ld, 0, 56, tdat )

  j pass

  TEST_PASSFAIL

RVTEST_CODE_END

  .data
RVTEST_DATA_BEGIN

  TEST_DATA

tdat:  .dword 0xdeadbeefdeadbeef

RVTEST_DATA_END