OpenCores
URL https://opencores.org/ocsvn/fwrisc/fwrisc/trunk

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [riscv-compliance/] [riscv-test-suite/] [rv32ua/] [rv64ua/] [amomin_w.S] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mballance
# See LICENSE for license details.
2
 
3
#*****************************************************************************
4
# amomin_d.S
5
#-----------------------------------------------------------------------------
6
#
7
# Test amomin.w instruction.
8
#
9
 
10
#include "riscv_test.h"
11
#include "compliance_test.h"
12
#include "compliance_io.h"
13
#include "aw_test_macros.h"
14
 
15
 
16
RVTEST_RV64U
17
RVTEST_CODE_BEGIN
18
 
19
  TEST_CASE(2, a4, 0xffffffff80000000, \
20
    li a0, 0xffffffff80000000; \
21
    li a1, 0xfffffffffffff800; \
22
    la a3, amo_operand; \
23
    sw a0, 0(a3); \
24
    amomin.w    a4, a1, 0(a3); \
25
  )
26
 
27
  TEST_CASE(3, a5, 0xffffffff80000000, lw a5, 0(a3))
28
 
29
  TEST_CASE(4, a4, 0, \
30
    li a1, 0xffffffffffffffff; \
31
    sw x0, 0(a3); \
32
    amomin.w    a4, a1, 0(a3); \
33
  )
34
 
35
  TEST_CASE(5, a5, 0xffffffffffffffff, lw a5, 0(a3))
36
 
37
  TEST_PASSFAIL
38
 
39
RVTEST_CODE_END
40
 
41
  .bss
42
  .align 3
43
amo_operand:
44
  .dword 0
45
 
46
  .data
47
RV_COMPLIANCE_DATA_BEGIN
48
test_res:
49
    .fill 40, 4, -1
50
RV_COMPLIANCE_DATA_END
51
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.