From: Laurent Vivier <lvivier@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Miroslav Rezanina" <mrezanin@redhat.com>,
"Laurent Vivier" <lvivier@redhat.com>
Subject: [Qemu-devel] [PATCH] tcg: fix 16-byte vector operations detection
Date: Wed, 28 Mar 2018 15:31:52 +0200 [thread overview]
Message-ID: <20180328133152.24623-1-lvivier@redhat.com> (raw)
configure tries to detect if the compiler
supports 16-byte vector operations.
As stated in the comment of the detection
program, there is a problem with the system
compiler on GCC on Centos 7.
This program doesn't actually detect the problem
with GCC on RHEL7 on PPC64LE (Red Hat 4.8.5-28).
This patch updates the test to look more like
it is in QEMU helpers, and now detects the problem.
The error reported is:
CC ppc64-softmmu/accel/tcg/tcg-runtime-gvec.o
..//accel/tcg/tcg-runtime-gvec.c: In function ‘helper_gvec_shl8i’:
../accel/tcg/tcg-runtime-gvec.c:558:26: internal compiler error: in emit_move_insn, at expr.c:3495
*(vec8 *)(d + i) = *(vec8 *)(a + i) << shift;
^
Fixes: db43267 "tcg: Add generic vector expanders"
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
---
configure | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/configure b/configure
index 4d0e92c96c..a2301dd0dc 100755
--- a/configure
+++ b/configure
@@ -5054,6 +5054,14 @@ static S2 c2;
static S4 c4;
static S8 c8;
static int i;
+void helper(void *d, void *a, int shift, int i);
+void helper(void *d, void *a, int shift, int i)
+{
+ *(U1 *)(d + i) = *(U1 *)(a + i) << shift;
+ *(U2 *)(d + i) = *(U2 *)(a + i) << shift;
+ *(U4 *)(d + i) = *(U4 *)(a + i) << shift;
+ *(U8 *)(d + i) = *(U8 *)(a + i) << shift;
+}
int main(void)
{
a1 += b1; a2 += b2; a4 += b4; a8 += b8;
--
2.14.3
next reply other threads:[~2018-03-28 13:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-28 13:31 Laurent Vivier [this message]
2018-03-29 3:45 ` [Qemu-devel] [PATCH] tcg: fix 16-byte vector operations detection Miroslav Rezanina
2018-03-29 16:54 ` Laurent Vivier
2018-04-03 15:45 ` Laurent Vivier
2018-04-04 16:48 ` Peter Maydell
2018-03-31 7:48 ` no-reply
2018-04-05 20:31 ` Paolo Bonzini
2018-04-06 9:03 ` Peter Maydell
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=20180328133152.24623-1-lvivier@redhat.com \
--to=lvivier@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=mrezanin@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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;
as well as URLs for NNTP newsgroup(s).