Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Rongqing Li <rongqing.li@windriver.com>
To: Andre McCurdy <armccurdy@gmail.com>,
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH v2 3/3] valgrind: avoid neon for targets which don't support it
Date: Wed, 20 Jan 2016 11:00:25 +0800	[thread overview]
Message-ID: <569EF849.6000603@windriver.com> (raw)
In-Reply-To: <1453258071-22847-4-git-send-email-armccurdy@gmail.com>



On 2016年01月20日 10:47, Andre McCurdy wrote:
> The sh-mem-random.c test app tries to use neon loads and stores to
> test 64-bit float copies when building for ARM. Allow it to do so if
> possible, but fallback to C when building for ARM targets which don't
> support neon.
>
> Signed-off-by: Andre McCurdy <armccurdy@gmail.com>

it work for me, thank Andre McCurdy


Reported-and-Tested-by: Roy Li <rongqing.li@windriver.com>

-Roy

> ---
>   ...d-neon-for-targets-which-don-t-support-it.patch | 33 ++++++++++++++++++++++
>   meta/recipes-devtools/valgrind/valgrind_3.11.0.bb  |  1 +
>   2 files changed, 34 insertions(+)
>   create mode 100644 meta/recipes-devtools/valgrind/valgrind/avoid-neon-for-targets-which-don-t-support-it.patch
>
> diff --git a/meta/recipes-devtools/valgrind/valgrind/avoid-neon-for-targets-which-don-t-support-it.patch b/meta/recipes-devtools/valgrind/valgrind/avoid-neon-for-targets-which-don-t-support-it.patch
> new file mode 100644
> index 0000000..5fcfec0
> --- /dev/null
> +++ b/meta/recipes-devtools/valgrind/valgrind/avoid-neon-for-targets-which-don-t-support-it.patch
> @@ -0,0 +1,33 @@
> +From 8facc29c3c56e6cf9cfef70986cf73876044a3fb Mon Sep 17 00:00:00 2001
> +From: Andre McCurdy <armccurdy@gmail.com>
> +Date: Tue, 19 Jan 2016 16:42:36 -0800
> +Subject: [PATCH] avoid neon for targets which don't support it
> +
> +The sh-mem-random.c test app tries to use neon loads and stores to
> +test 64-bit float copies when building for ARM. Allow it to do so if
> +possible, but fallback to C when building for ARM targets which don't
> +support neon.
> +
> +Upstream-Status: Pending
> +
> +Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
> +---
> + memcheck/tests/sh-mem-random.c | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/memcheck/tests/sh-mem-random.c b/memcheck/tests/sh-mem-random.c
> +index ae82248..816e139 100644
> +--- a/memcheck/tests/sh-mem-random.c
> ++++ b/memcheck/tests/sh-mem-random.c
> +@@ -191,7 +191,7 @@ void do_test_at ( U1* arr )
> +                "emms"
> +                : : "r"(arr+dst), "r"(arr+src) : "memory"
> +             );
> +-#elif defined(__linux__) && defined(__arm__) && !defined(__aarch64__)
> ++#elif defined(__linux__) && defined(__arm__) && defined(__ARM_NEON__) && !defined(__aarch64__)
> +             /* On arm32, many compilers generate a 64-bit float move
> +                using two 32 bit integer registers, which completely
> +                defeats this test.  Hence force a 64-bit NEON load and
> +--
> +1.9.1
> +
> diff --git a/meta/recipes-devtools/valgrind/valgrind_3.11.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.11.0.bb
> index 4f7c39a..7ef1e48 100644
> --- a/meta/recipes-devtools/valgrind/valgrind_3.11.0.bb
> +++ b/meta/recipes-devtools/valgrind/valgrind_3.11.0.bb
> @@ -22,6 +22,7 @@ SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
>              file://0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch \
>              file://0001-Remove-tests-that-fail-to-build-on-some-PPC32-config.patch \
>              file://use-appropriate-march-mcpu-mfpu-for-ARM-test-apps.patch \
> +           file://avoid-neon-for-targets-which-don-t-support-it.patch \
>              "
>
>   SRC_URI[md5sum] = "4ea62074da73ae82e0162d6550d3f129"
>

-- 
Best Reagrds,
Roy | RongQing Li


      reply	other threads:[~2016-01-20  3:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-20  2:47 [PATCH v2 0/3] valgrind cleanup + fix for armv7a without vfp/neon Andre McCurdy
2016-01-20  2:47 ` [PATCH v2 1/3] valgrind: let valgrind determine its own optimisation flags Andre McCurdy
2016-01-20  2:47 ` [PATCH v2 2/3] valgrind: re-enable ARM intdiv and vcvt_fixed_float_VFP tests Andre McCurdy
2016-01-20  3:00   ` Rongqing Li
2016-01-20  2:47 ` [PATCH v2 3/3] valgrind: avoid neon for targets which don't support it Andre McCurdy
2016-01-20  3:00   ` Rongqing Li [this message]

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=569EF849.6000603@windriver.com \
    --to=rongqing.li@windriver.com \
    --cc=armccurdy@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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