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

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [riscv-compliance/] [riscv-test-suite/] [rv32ui/] [rv64ui/] [auipc.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
# auipc.S
5
#-----------------------------------------------------------------------------
6
#
7
# Test auipc 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
RVTEST_RV64U
16
RVTEST_CODE_BEGIN
17
 
18
  TEST_CASE(2, a0, 10000, \
19
    .align 3; \
20
    lla a0, 1f + 10000; \
21
    jal a1, 1f; \
22
    1: sub a0, a0, a1; \
23
  )
24
 
25
  TEST_CASE(3, a0, -10000, \
26
    .align 3; \
27
    lla a0, 1f - 10000; \
28
    jal a1, 1f; \
29
    1: sub a0, a0, a1; \
30
  )
31
 
32
  TEST_PASSFAIL
33
  .data
34
RV_COMPLIANCE_DATA_BEGIN
35
test_res:
36
    .fill 4, 4, -1
37
RV_COMPLIANCE_DATA_END
38
 

powered by: WebSVN 2.1.0

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