1 // See LICENSE for license details.
2 #ifndef _RISCV_TEST_DEFAULTS_H
3 #define _RISCV_TEST_DEFAULTS_H
6 #define TESTBASE 0x4000
12 #define RVTEST_RV64U \
16 #define RVTEST_RV32UF \
18 /* If FPU exists, initialize FCSR. */ \
20 andi t0, t0, 1 << ('F' - 'A'); \
22 /* Enable FPU if it exists. */ \
29 #define RVTEST_RV64UF \
31 /* If FPU exists, initialize FCSR. */ \
33 andi t0, t0, 1 << ('F' - 'A'); \
35 /* Enable FPU if it exists. */ \
42 #define RVTEST_CODE_BEGIN \
43 .section .text.init; \
48 #define RVTEST_CODE_END \
70 #define RVTEST_DATA_BEGIN \
72 .align 4; .global begin_signature; begin_signature:
74 #define RVTEST_DATA_END \
75 _msg_init: .asciz "RUN\r\n"; \
76 _msg_pass: .asciz "PASS"; \
77 _msg_fail: .asciz "FAIL "; \
78 _msg_end: .asciz "\r\n"; \
79 .align 4; .global end_signature; end_signature:
81 #endif /* _RISCV_TEST_DEFAULTS_H */