Adjust hwacha misaligned instruction test to ignore lower 2 bits in comparisons to...
authorStephen Twigg <sdtwigg@eecs.berkeley.edu>
Wed, 9 Apr 2014 04:53:19 +0000 (21:53 -0700)
committerStephen Twigg <sdtwigg@eecs.berkeley.edu>
Wed, 9 Apr 2014 04:53:19 +0000 (21:53 -0700)
isa/rv64sv/ma_vt_inst.S

index cd7762dc325ca3bcf1dbb2cdaa179c236a8fe384..d772041263dbb1462c9b3053b133574f417e6a15 100644 (file)
@@ -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