From ada354f443cd3c04eb5cfe1563c7725de072a5a0 Mon Sep 17 00:00:00 2001 From: Rose Thompson Date: Fri, 10 Nov 2023 17:02:15 -0600 Subject: [PATCH] Fixed bug in the misaligned access test. --- .../rv64i_m/privilege/src/WALLY-misaligned-access-01.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/wally-riscv-arch-test/riscv-test-suite/rv64i_m/privilege/src/WALLY-misaligned-access-01.S b/tests/wally-riscv-arch-test/riscv-test-suite/rv64i_m/privilege/src/WALLY-misaligned-access-01.S index d6ae2603f..90ef6283f 100644 --- a/tests/wally-riscv-arch-test/riscv-test-suite/rv64i_m/privilege/src/WALLY-misaligned-access-01.S +++ b/tests/wally-riscv-arch-test/riscv-test-suite/rv64i_m/privilege/src/WALLY-misaligned-access-01.S @@ -559,9 +559,8 @@ memcpy8_4: li t2, 0 # 32 bit mask - lui t4, 0xffff - li t3, 0xfff - or t5, t4, t3 + addi t4, x0, -1 + srli t5, t4, 32 memcpy8_4_loop: ld t3, 0(t0)