diff options
author | Yunsup Lee <yunsup@cs.berkeley.edu> | 2013-04-24 01:02:46 -0700 |
---|---|---|
committer | Yunsup Lee <yunsup@cs.berkeley.edu> | 2013-04-24 01:02:46 -0700 |
commit | ceec0f940e649ce246a56d0b473cc02b86c04e7b (patch) | |
tree | f26a2f11e0cc85b1271e1740ac3d2ec974d42878 /isa/macros/scalar | |
parent | daf52cc068c12c3276c8d903259af2bfbb221918 (diff) | |
download | riscv-tests-ceec0f940e649ce246a56d0b473cc02b86c04e7b.zip riscv-tests-ceec0f940e649ce246a56d0b473cc02b86c04e7b.tar.gz riscv-tests-ceec0f940e649ce246a56d0b473cc02b86c04e7b.tar.bz2 |
add more header information to test_macros
Diffstat (limited to 'isa/macros/scalar')
-rw-r--r-- | isa/macros/scalar/test_macros.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/isa/macros/scalar/test_macros.h b/isa/macros/scalar/test_macros.h index 21ecdce..97cb28e 100644 --- a/isa/macros/scalar/test_macros.h +++ b/isa/macros/scalar/test_macros.h @@ -1,7 +1,6 @@ #ifndef __TEST_MACROS_SCALAR_H #define __TEST_MACROS_SCALAR_H -#define TEST_DATA #----------------------------------------------------------------------- # Helper macros @@ -38,6 +37,11 @@ pass_ ## testnum: \ #define TEST_INSERT_NOPS_9 nop; TEST_INSERT_NOPS_8 #define TEST_INSERT_NOPS_10 nop; TEST_INSERT_NOPS_9 + +#----------------------------------------------------------------------- +# RV64UI MACROS +#----------------------------------------------------------------------- + #----------------------------------------------------------------------- # Tests for instructions with immediate operand #----------------------------------------------------------------------- @@ -432,6 +436,11 @@ test_ ## testnum: \ li x5, 2; \ bne x4, x5, 1b \ + +#----------------------------------------------------------------------- +# RV64UF MACROS +#----------------------------------------------------------------------- + #----------------------------------------------------------------------- # Tests floating-point instructions #----------------------------------------------------------------------- @@ -552,6 +561,11 @@ test_ ## testnum: \ .double result; \ 1: + +#----------------------------------------------------------------------- +# RV64UV MACROS +#----------------------------------------------------------------------- + #define TEST_ILLEGAL_VT_REGID( testnum, nxreg, nfreg, inst, reg1, reg2, reg3) \ mfpcr a0,cr0; \ li a1,1; \ @@ -675,11 +689,11 @@ handler ## testnum: \ li x28,5; \ bne a1,a2,fail; \ + #----------------------------------------------------------------------- # Pass and fail code (assumes test num is in x28) #----------------------------------------------------------------------- - #define TEST_PASSFAIL \ bne x0, x28, pass; \ fail: \ @@ -687,4 +701,11 @@ fail: \ pass: \ RVTEST_PASS \ + +#----------------------------------------------------------------------- +# Test data section +#----------------------------------------------------------------------- + +#define TEST_DATA + #endif |