From 1cbf167dd4cb9ba10b4c8517285c5e09d7e56692 Mon Sep 17 00:00:00 2001 From: Daniel Benusovich Date: Sun, 9 Dec 2018 22:25:53 -0800 Subject: [PATCH] Correcting loading convention in load macro --- isa/macros/simplev/sv_test_macros.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/isa/macros/simplev/sv_test_macros.h b/isa/macros/simplev/sv_test_macros.h index 9f16a84..2242235 100644 --- a/isa/macros/simplev/sv_test_macros.h +++ b/isa/macros/simplev/sv_test_macros.h @@ -111,12 +111,12 @@ // Loads the source registers using load_instruction from testdata with a spacing of elwidth #define SV_LOAD_FORMAT(load_instruction, testdata, elwidth) \ - load_instruction( x12, testdata); \ - load_instruction( x13, testdata+elwidth); \ - load_instruction( x14, testdata+elwidth*2); \ - load_instruction( x15, testdata+elwidth*3); \ - load_instruction( x16, testdata+elwidth*4); \ - load_instruction( x17, testdata+elwidth*5); \ + load_instruction x12, (testdata); \ + load_instruction x13, (testdata+elwidth); \ + load_instruction x14, (testdata+elwidth*2); \ + load_instruction x15, (testdata+elwidth*3); \ + load_instruction x16, (testdata+elwidth*4); \ + load_instruction x17, (testdata+elwidth*5); \ // Loads the source registers using load_instruction from testdata with a spacing of elwidth and offset #define SV_LOAD_FORMAT_OFFSET(load_instruction, testdata, elwidth, offset) \ @@ -145,7 +145,7 @@ \ SV_ELWIDTH_TEST_INNER(SV_LOAD_FORMAT(load_instruction, testdata, elwidth), \ vl, wid1, wid2, wid3, isvec1, isvec2, isvec3, \ - expect1, expect2, expect3, code x28, x15, x12) \ + expect1, expect2, expect3, code x28, 0(x12)) \ // This should not be accessed directly. It is meant to be called through higher level macros. // If used: -- 2.30.2