1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test misaligned fetch trap.
10 #include "riscv_test.h"
11 #include "test_macros.h"
28 // This test should pass, since JALR ignores the target LSB
51 # tests 2 and 4 should trap
59 # verify that return address was not written
63 li a1, CAUSE_MISALIGNED_FETCH
67 # verify that epc == &jalr (== t0 - 4)