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

Subversion Repositories potato

[/] [potato/] [trunk/] [riscv-tests/] [auipc.S] - Blame information for rev 51

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 skordal
# 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 "test_macros.h"
12
 
13
RVTEST_RV32U
14
RVTEST_CODE_BEGIN
15
 
16
  TEST_CASE(2, a0, 10000, \
17
    .align 3; \
18
    lla a0, 1f + 10000; \
19
    jal a1, 1f; \
20
    1: sub a0, a0, a1; \
21
  )
22
 
23
  TEST_CASE(3, a0, -10000, \
24
    .align 3; \
25
    lla a0, 1f - 10000; \
26
    jal a1, 1f; \
27
    1: sub a0, a0, a1; \
28
  )
29
 
30
  TEST_PASSFAIL
31
 
32
RVTEST_CODE_END
33
 
34
  .data
35
RVTEST_DATA_BEGIN
36
 
37
  TEST_DATA
38
 
39
RVTEST_DATA_END

powered by: WebSVN 2.1.0

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