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

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [riscv-compliance/] [riscv-test-suite/] [rv32uf/] [rv64uf/] [fclass.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
# fclass.S
5
#-----------------------------------------------------------------------------
6
#
7
# Test fclass.s instructions.
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_RV64UF
17
RVTEST_CODE_BEGIN
18
 
19
  #-------------------------------------------------------------
20
  # Arithmetic tests
21
  #-------------------------------------------------------------
22
 
23
  TEST_FCLASS_S( 2, 1 << 0, 0xff800000 )
24
  TEST_FCLASS_S( 3, 1 << 1, 0xbf800000 )
25
  TEST_FCLASS_S( 4, 1 << 2, 0x807fffff )
26
  TEST_FCLASS_S( 5, 1 << 3, 0x80000000 )
27
  TEST_FCLASS_S( 6, 1 << 4, 0x00000000 )
28
  TEST_FCLASS_S( 7, 1 << 5, 0x007fffff )
29
  TEST_FCLASS_S( 8, 1 << 6, 0x3f800000 )
30
  TEST_FCLASS_S( 9, 1 << 7, 0x7f800000 )
31
  TEST_FCLASS_S(10, 1 << 8, 0x7f800001 )
32
  TEST_FCLASS_S(11, 1 << 9, 0x7fc00000 )
33
 
34
  TEST_PASSFAIL
35
 
36
RVTEST_CODE_END
37
 
38
  .data
39
RV_COMPLIANCE_DATA_BEGIN
40
test_res:
41
    .fill 40, 4, -1
42
RV_COMPLIANCE_DATA_END
43
 

powered by: WebSVN 2.1.0

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