+# See LICENSE for license details.
+
#*****************************************************************************
# illegal_tvec_regid.S
#-----------------------------------------------------------------------------
#include "riscv_test.h"
#include "test_macros.h"
-RVTEST_RV64S
+RVTEST_RV64SV
RVTEST_CODE_BEGIN
- setpcr status, SR_EA # enable accelerator
-
- mfpcr a3,status
- li a4,(1 << IRQ_COP)
- slli a4,a4,SR_IM_SHIFT
- or a3,a3,a4 # enable IM[COP]
- mtpcr a3,status
-
TEST_ILLEGAL_TVEC_REGID(2, 5, 5, vsd, vx7, a2)
TEST_ILLEGAL_TVEC_REGID(3, 5, 5, vld, vx7, a2)
TEST_PASSFAIL
+# the handler gets rewritten for every test, but need this for the framework
+stvec_handler:
+ j fail
+
RVTEST_CODE_END
.data