aboutsummaryrefslogtreecommitdiff
path: root/isa
diff options
context:
space:
mode:
authorStephen Twigg <sdtwigg@eecs.berkeley.edu>2014-04-08 21:53:19 -0700
committerStephen Twigg <sdtwigg@eecs.berkeley.edu>2014-04-08 21:53:19 -0700
commit8f6e2420926471a7bd9a660305ab3d6a22f22dc9 (patch)
tree358c60a4de4597b4002928dbbc2f9e9101b7213c /isa
parent8a86a3e45d2ca91ea218b92d3e7a1b73d00872e7 (diff)
downloadriscv-tests-8f6e2420926471a7bd9a660305ab3d6a22f22dc9.zip
riscv-tests-8f6e2420926471a7bd9a660305ab3d6a22f22dc9.tar.gz
riscv-tests-8f6e2420926471a7bd9a660305ab3d6a22f22dc9.tar.bz2
Adjust hwacha misaligned instruction test to ignore lower 2 bits in comparisons to account for impl differences.
Diffstat (limited to 'isa')
-rw-r--r--isa/rv64sv/ma_vt_inst.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/isa/rv64sv/ma_vt_inst.S b/isa/rv64sv/ma_vt_inst.S
index cd7762d..d772041 100644
--- a/isa/rv64sv/ma_vt_inst.S
+++ b/isa/rv64sv/ma_vt_inst.S
@@ -48,6 +48,8 @@ handler:
# check badvaddr
vxcptaux a3
la a4,vtcode1+2
+ andi a3, a3, -4 # mask off lower bits so that may
+ andi a4, a4, -4 # ignore impl. specific behavior
bne a3,a4,fail
# make sure vector unit has cleared out