qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Hexagon (tests/tcg/hexagon) Clean up Hexagon check-tcg tests


From: Anton Johansson
Subject: Re: [PATCH] Hexagon (tests/tcg/hexagon) Clean up Hexagon check-tcg tests
Date: Tue, 23 May 2023 15:16:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0


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 <anjo@rev.ng>
Signed-off-by: Taylor Simpson <tsimpson@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 <anjo@rev.ng>
Tested-by: Anton Johansson <anjo@rev.ng>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]