On 5/22/23 19:43, Taylor Simpson wrote:
Move test infra to header file check functions (always print line number on error) USR manipulation Useful floating point values Use stdint.h types Use stdbool.h bool where appropriate Use trip counts local to for loop Suggested-by: Anton Johansson <a...@rev.ng> Signed-off-by: Taylor Simpson <tsimp...@quicinc.com> --- tests/tcg/hexagon/hex_test.h | 145 ++++++++++ tests/tcg/hexagon/atomics.c | 51 ++-- tests/tcg/hexagon/brev.c | 73 +++-- tests/tcg/hexagon/circ.c | 152 +++++----- tests/tcg/hexagon/dual_stores.c | 25 +- tests/tcg/hexagon/fpstuff.c | 341 ++++++++++------------- tests/tcg/hexagon/hex_sigsegv.c | 46 +-- tests/tcg/hexagon/load_align.c | 111 +++----- tests/tcg/hexagon/load_unpack.c | 159 +++++------ tests/tcg/hexagon/mem_noshuf.c | 163 +++++------ tests/tcg/hexagon/mem_noshuf_exception.c | 52 ++-- tests/tcg/hexagon/misc.c | 338 +++++++++++----------- tests/tcg/hexagon/multi_result.c | 171 +++++------- tests/tcg/hexagon/overflow.c | 61 ++-- tests/tcg/hexagon/preg_alias.c | 111 ++++---- tests/tcg/hexagon/read_write_overlap.c | 55 ++-- tests/tcg/hexagon/reg_mut.c | 54 ++-- tests/tcg/hexagon/usr.c | 109 +------- tests/tcg/hexagon/Makefile.target | 19 +- 19 files changed, 1030 insertions(+), 1206 deletions(-) create mode 100644 tests/tcg/hexagon/hex_test.h diff --git a/tests/tcg/hexagon/fpstuff.c b/tests/tcg/hexagon/fpstuff.c index 28f9397155..344b9f7772 100644 --- a/tests/tcg/hexagon/fpstuff.c +++ b/tests/tcg/hexagon/fpstuff.c @@ -20,91 +20,44 @@ */
Reviewed-by: Anton Johansson <a...@rev.ng> Tested-by: Anton Johansson <a...@rev.ng>