diff options
Diffstat (limited to 'isa/rv32mi')
-rw-r--r-- | isa/rv32mi/Makefrag | 2 | ||||
-rw-r--r-- | isa/rv32mi/lh-misaligned.S | 8 | ||||
-rw-r--r-- | isa/rv32mi/lw-misaligned.S | 8 |
3 files changed, 18 insertions, 0 deletions
diff --git a/isa/rv32mi/Makefrag b/isa/rv32mi/Makefrag index 2142570..e3d81af 100644 --- a/isa/rv32mi/Makefrag +++ b/isa/rv32mi/Makefrag @@ -12,5 +12,7 @@ rv32mi_sc_tests = \ scall \ sbreak \ shamt \ + lw-misaligned \ + lh-misaligned \ rv32mi_p_tests = $(addprefix rv32mi-p-, $(rv32mi_sc_tests)) diff --git a/isa/rv32mi/lh-misaligned.S b/isa/rv32mi/lh-misaligned.S new file mode 100644 index 0000000..42755f5 --- /dev/null +++ b/isa/rv32mi/lh-misaligned.S @@ -0,0 +1,8 @@ +# See LICENSE for license details. + +#include "riscv_test.h" +#undef RVTEST_RV64M +#define RVTEST_RV64M RVTEST_RV32M +#define __MACHINE_MODE + +#include "../rv64mi/lh-misaligned.S" diff --git a/isa/rv32mi/lw-misaligned.S b/isa/rv32mi/lw-misaligned.S new file mode 100644 index 0000000..0614aee --- /dev/null +++ b/isa/rv32mi/lw-misaligned.S @@ -0,0 +1,8 @@ +# See LICENSE for license details. + +#include "riscv_test.h" +#undef RVTEST_RV64M +#define RVTEST_RV64M RVTEST_RV32M +#define __MACHINE_MODE + +#include "../rv64mi/lw-misaligned.S" |