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

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [riscv-compliance/] [riscv-test-suite/] [rv32ua/] [rv64ua/] [amomax_d.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
# amomax_d.S
5
#-----------------------------------------------------------------------------
6
#
7
# Test amomax.d instruction.
8
#
9
 
10
#include "riscv_test.h"
11
#include "test_macros.h"
12
 
13
RVTEST_RV64U
14
RVTEST_CODE_BEGIN
15
 
16
  TEST_CASE(2, a4, 0xffffffff80000000, \
17
    li a0, 0xffffffff80000000; \
18
    li a1, 0xfffffffffffff800; \
19
    la a3, amo_operand; \
20
    sd a0, 0(a3); \
21
    amomax.d    a4, a1, 0(a3); \
22
  )
23
 
24
  TEST_CASE(3, a5, 0xfffffffffffff800, ld a5, 0(a3))
25
 
26
  TEST_CASE(4, a4, 0, \
27
    li a1, 1; \
28
    sd x0, 0(a3); \
29
    amomax.d    a4, a1, 0(a3); \
30
  )
31
 
32
  TEST_CASE(5, a5, 1, ld a5, 0(a3))
33
 
34
  TEST_PASSFAIL
35
 
36
RVTEST_CODE_END
37
 
38
  .data
39
RVTEST_DATA_BEGIN
40
 
41
  TEST_DATA
42
 
43
RVTEST_DATA_END
44
 
45
  .bss
46
  .align 3
47
amo_operand:
48
  .dword 0

powered by: WebSVN 2.1.0

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