aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/vector_sse42.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-07-27 12:11:52 -0400
committerFlorin Coras <florin.coras@gmail.com>2018-07-27 20:07:05 +0000
commitcd2190e124d723fcde87c1ee636a09410a384e1a (patch)
tree8f39eb77be4c0baee944fc6bbfad127af24c7a42 /src/vppinfra/vector_sse42.h
parent54693d23307ce8944a4d97379efd3bd4dcf0485c (diff)
Fix build-break when compiling -O0 / TAG=vpp_debug
Without inlining [TAG=vpp_debug], gcc7 (at least) refuses to produce the indicated vector unit instruction. Change-Id: I0f0400ad74b1e498dce7963a85c47d33afe0a768 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vppinfra/vector_sse42.h')
-rw-r--r--src/vppinfra/vector_sse42.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/vector_sse42.h b/src/vppinfra/vector_sse42.h
index 76737940230..381db37200e 100644
--- a/src/vppinfra/vector_sse42.h
+++ b/src/vppinfra/vector_sse42.h
@@ -616,7 +616,7 @@ u8x16_shuffle (u8x16 v, u8x16 m)
static_always_inline u32x4
u32x4_shuffle (u32x4 v, const int a, const int b, const int c, const int d)
{
-#ifdef __clang__
+#if defined(__clang__) || CLIB_DEBUG > 0
u32x4 r = { v[a], v[b], v[c], v[d] };
return r;
#else