Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
54693d2
)
Fix build-break when compiling -O0 / TAG=vpp_debug
82/13782/2
author
Dave Barach
<dave@barachs.net>
Fri, 27 Jul 2018 16:11:52 +0000
(12:11 -0400)
committer
Florin Coras
<florin.coras@gmail.com>
Fri, 27 Jul 2018 20:07:05 +0000
(20:07 +0000)
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>
src/vppinfra/vector_sse42.h
patch
|
blob
|
history
diff --git
a/src/vppinfra/vector_sse42.h
b/src/vppinfra/vector_sse42.h
index
7673794
..
381db37
100644
(file)
--- 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)
{
-#if
def __clang__
+#if
defined(__clang__) || CLIB_DEBUG > 0
u32x4 r = { v[a], v[b], v[c], v[d] };
return r;
#else