From 57f2254feaf4e3595a5b6cce48ebcfbebaaa3c67 Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Thu, 10 Oct 2013 12:04:58 -0700 Subject: revamp hwacha tests --- isa/rv64sv/ma_vld.S | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'isa/rv64sv/ma_vld.S') diff --git a/isa/rv64sv/ma_vld.S b/isa/rv64sv/ma_vld.S index ef862c4..bcf4b5a 100644 --- a/isa/rv64sv/ma_vld.S +++ b/isa/rv64sv/ma_vld.S @@ -20,15 +20,16 @@ RVTEST_CODE_BEGIN la a3,handler mtpcr a3,cr3 # set exception handler + vsetcfg 32,0 li a3,4 - vvcfgivl a3,a3,32,0 + vsetvl a3,a3 la a3, dest+1 vld vx2,a3 vld vx3,a4 lui a0,%hi(vtcode1) vf %lo(vtcode1)(a0) - fence.v.l + fence vtcode1: add x2,x2,x3 @@ -54,8 +55,9 @@ handler: bne a3,a4,fail # make sure vector unit has cleared out + vsetcfg 32,0 li a3,4 - vvcfgivl a3,a3,32,0 + vsetvl a3,a3 la a3,src1 la a4,src2 @@ -65,7 +67,7 @@ handler: vf %lo(vtcode2)(a0) la a5,dest vsd vx2,a5 - fence.v.l + fence ld a1,0(a5) li a2,5 -- cgit v1.1