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

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [riscv-compliance/] [riscv-test-suite/] [rv32ui/] [rv64ui/] [lui.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
# lui.S
5
#-----------------------------------------------------------------------------
6
#
7
# Test lui 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
  #-------------------------------------------------------------
20
  # Basic tests
21
  #-------------------------------------------------------------
22
 
23
  TEST_CASE( 2, x1, 0x0000000000000000, lui x1, 0x00000 );
24
  TEST_CASE( 3, x1, 0xfffffffffffff800, lui x1, 0xfffff;sra x1,x1,1);
25
  TEST_CASE( 4, x1, 0x00000000000007ff, lui x1, 0x7ffff;sra x1,x1,20);
26
  TEST_CASE( 5, x1, 0xfffffffffffff800, lui x1, 0x80000;sra x1,x1,20);
27
 
28
  TEST_CASE( 6, x0, 0, lui x0, 0x80000 );
29
 
30
  TEST_PASSFAIL
31
 
32
RVTEST_CODE_END
33
 
34
  .data
35
RV_COMPLIANCE_DATA_BEGIN
36
test_res:
37
    .fill 10, 4, -1
38
RV_COMPLIANCE_DATA_END
39
 
40
 

powered by: WebSVN 2.1.0

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