diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-10-09 22:13:31 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-10-09 22:13:49 -0700 |
commit | dbfc84ea469acd3fc97b9da3ddf3d3ff1165b289 (patch) | |
tree | a2c27d01845bab97dbfa3c12bac861235f65887e | |
parent | acb593160f2f7e22bfd6a480570f2c5094634165 (diff) | |
download | riscv-tests-dbfc84ea469acd3fc97b9da3ddf3d3ff1165b289.zip riscv-tests-dbfc84ea469acd3fc97b9da3ddf3d3ff1165b289.tar.gz riscv-tests-dbfc84ea469acd3fc97b9da3ddf3d3ff1165b289.tar.bz2 |
Align FP data sections
-rw-r--r-- | isa/macros/scalar/test_macros.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/isa/macros/scalar/test_macros.h b/isa/macros/scalar/test_macros.h index c8069fd..7a489e2 100644 --- a/isa/macros/scalar/test_macros.h +++ b/isa/macros/scalar/test_macros.h @@ -413,16 +413,14 @@ test_ ## testnum: \ li a2, flags; \ bne a0, a3, fail; \ bne a1, a2, fail; \ - j 2f; \ + .pushsection .data; \ .align 2; \ - .data; \ test_ ## testnum ## _data: \ .float val1; \ .float val2; \ .float val3; \ .result; \ - .text; \ -2: + .popsection #define TEST_FP_OP_D_INTERNAL( testnum, flags, result, val1, val2, val3, code... ) \ test_ ## testnum: \ @@ -437,16 +435,14 @@ test_ ## testnum: \ li a2, flags; \ bne a0, a3, fail; \ bne a1, a2, fail; \ - j 2f; \ - .data; \ + .pushsection .data; \ .align 3; \ test_ ## testnum ## _data: \ .double val1; \ .double val2; \ .double val3; \ .result; \ - .text; \ -2: + .popsection #define TEST_FCVT_S_D( testnum, result, val1 ) \ TEST_FP_OP_D_INTERNAL( testnum, 0, double result, val1, 0.0, 0.0, \ @@ -522,11 +518,11 @@ test_ ## testnum: \ fsflags x0; \ fmv.x.s a0, f0; \ bne a0, a3, fail; \ - j 1f; \ + .pushsection .data; \ .align 2; \ test_ ## testnum ## _data: \ .float result; \ -1: + .popsection #define TEST_INT_FP_OP_D( testnum, inst, result, val1 ) \ test_ ## testnum: \ @@ -538,11 +534,11 @@ test_ ## testnum: \ fsflags x0; \ fmv.x.d a0, f0; \ bne a0, a3, fail; \ - j 1f; \ + .pushsection .data; \ .align 3; \ test_ ## testnum ## _data: \ .double result; \ -1: + .popsection #----------------------------------------------------------------------- # Pass and fail code (assumes test num is in TESTNUM) |