#define sstatus mstatus
#define scause mcause
#define sepc mepc
+ #define sret mret
#define stvec_handler mtvec_handler
#endif
jalr t1, t0, 2
1:
.option rvc
- c.j fail
+ c.j 1f
c.j 2f
.option norvc
+1:
j fail
2:
jalr t1, t0, 3
1:
.option rvc
- c.j fail
+ c.j 1f
c.j 2f
.option norvc
+1:
j fail
2:
TEST_PASSFAIL
+ .align 2
stvec_handler:
# tests 2 and 4 should trap
li a0, 2