qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Taylor Simpson <tsimpson@quicinc.com>, qemu-devel@nongnu.org
Cc: richard.henderson@linaro.org, ale@rev.ng, anjo@rev.ng,
	bcain@quicinc.com,  quic_mathbern@quicinc.com
Subject: Re: [PATCH] Hexagon (tests/tcg/hexagon) Move HVX test infra to header file
Date: Thu, 6 Apr 2023 09:24:10 +0200	[thread overview]
Message-ID: <c1980337-ff85-b7fe-b607-a2044743d5c0@linaro.org> (raw)
In-Reply-To: <20230405193945.169854-1-tsimpson@quicinc.com>

On 5/4/23 21:39, Taylor Simpson wrote:
> This will facilitate adding additional tests in separate .c files
> 
> Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
> ---
>   tests/tcg/hexagon/hvx_misc.h      | 178 ++++++++++++++++++++++++++++++
>   tests/tcg/hexagon/hvx_misc.c      | 160 +--------------------------
>   tests/tcg/hexagon/Makefile.target |   1 +
>   3 files changed, 181 insertions(+), 158 deletions(-)
>   create mode 100644 tests/tcg/hexagon/hvx_misc.h
> 
> diff --git a/tests/tcg/hexagon/hvx_misc.h b/tests/tcg/hexagon/hvx_misc.h
> new file mode 100644
> index 0000000000..ebcdb9f033
> --- /dev/null
> +++ b/tests/tcg/hexagon/hvx_misc.h


> +static void init_buffers(void)

inline?

> +{
> +    int counter0 = 0;
> +    int counter1 = 17;
> +    for (int i = 0; i < BUFSIZE; i++) {
> +        for (int j = 0; j < MAX_VEC_SIZE_BYTES; j++) {
> +            buffer0[i].b[j] = counter0++;
> +            buffer1[i].b[j] = counter1++;
> +        }
> +        for (int j = 0; j < MAX_VEC_SIZE_BYTES / 4; j++) {
> +            mask[i].w[j] = (i + j % MASKMOD == 0) ? 0 : 1;
> +        }
> +    }
> +}



  reply	other threads:[~2023-04-06  7:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-05 19:39 [PATCH] Hexagon (tests/tcg/hexagon) Move HVX test infra to header file Taylor Simpson
2023-04-06  7:24 ` Philippe Mathieu-Daudé [this message]
2023-04-06 14:57   ` Taylor Simpson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c1980337-ff85-b7fe-b607-a2044743d5c0@linaro.org \
    --to=philmd@linaro.org \
    --cc=ale@rev.ng \
    --cc=anjo@rev.ng \
    --cc=bcain@quicinc.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quic_mathbern@quicinc.com \
    --cc=richard.henderson@linaro.org \
    --cc=tsimpson@quicinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).