aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-06-05 15:12:22 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-06-06 13:09:24 +0000
commitfad18382a77655b8139c5c82b86ea34bc642a27a (patch)
tree63a88b11f713b16bb0ce6958792036ffaf7d3725
parent775c7f514253360fe87a35ac3763b916d5f442e1 (diff)
downloadComputeLibrary-fad18382a77655b8139c5c82b86ea34bc642a27a.tar.gz
COMPMID-2336: Fix warnings present in latest gcc
Change-Id: Icb69db76603341333a44cf121cc1c79035b54ae2 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/1295 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
-rw-r--r--SConstruct2
-rw-r--r--arm_compute/core/utils/logging/IPrinter.h4
-rw-r--r--src/core/NEON/kernels/NEBox3x3Kernel.cpp9
-rw-r--r--src/core/NEON/kernels/NEReductionOperationKernel.cpp2
4 files changed, 10 insertions, 7 deletions
diff --git a/SConstruct b/SConstruct
index bfa4be8ab8..93c9792265 100644
--- a/SConstruct
+++ b/SConstruct
@@ -147,7 +147,7 @@ if env['os'] == 'android' and ( 'clang++' not in cpp_compiler or 'clang' not in
if 'clang++' in cpp_compiler:
env.Append(CXXFLAGS = ['-Wno-format-nonliteral','-Wno-deprecated-increment-bool','-Wno-vla-extension','-Wno-mismatched-tags'])
else:
- env.Append(CXXFLAGS = ['-Wlogical-op','-Wnoexcept','-Wstrict-null-sentinel','-Wno-implicit-fallthrough'])
+ env.Append(CXXFLAGS = ['-Wlogical-op','-Wnoexcept','-Wstrict-null-sentinel','-Wno-implicit-fallthrough', '-Wno-redundant-move'])
if env['cppthreads']:
env.Append(CPPDEFINES = [('ARM_COMPUTE_CPP_SCHEDULER', 1)])
diff --git a/arm_compute/core/utils/logging/IPrinter.h b/arm_compute/core/utils/logging/IPrinter.h
index 6b410d4d12..2f399102e2 100644
--- a/arm_compute/core/utils/logging/IPrinter.h
+++ b/arm_compute/core/utils/logging/IPrinter.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -35,7 +35,7 @@ class Printer
{
public:
/** Default Constructor */
- Printer()
+ Printer() noexcept
: _mtx()
{
}
diff --git a/src/core/NEON/kernels/NEBox3x3Kernel.cpp b/src/core/NEON/kernels/NEBox3x3Kernel.cpp
index 48b959c308..7ca5e3c65c 100644
--- a/src/core/NEON/kernels/NEBox3x3Kernel.cpp
+++ b/src/core/NEON/kernels/NEBox3x3Kernel.cpp
@@ -33,7 +33,8 @@
using namespace arm_compute;
-int16x8_t calculate_kernel( const uint8x16_t &top_data, const uint8x16_t &mid_data, const uint8x16_t &bot_data){
+int16x8_t calculate_kernel(const uint8x16_t &top_data, const uint8x16_t &mid_data, const uint8x16_t &bot_data)
+{
const int16x8x2_t top_s16 =
{
{
@@ -101,8 +102,8 @@ void NEBox3x3FP16Kernel::run(const Window &window, const ThreadInfo &info)
int16x8_t out = calculate_kernel(top_data, mid_data, bot_data);
- float16x8_t outfloat = vcvtq_f16_u16(out);
- outfloat = vmulq_f16(outfloat, oneovernine);
+ float16x8_t outfloat = vcvtq_f16_s16(out);
+ outfloat = vmulq_f16(outfloat, oneovernine);
vst1_u8(output.ptr(), vqmovun_s16(vcvtq_s16_f16(outfloat)));
},
@@ -182,7 +183,7 @@ void NEBox3x3Kernel::run(const Window &window, const ThreadInfo &info)
outfloathigh = vshrq_n_s32(outfloathigh, shift);
outfloatlow = vshrq_n_s32(outfloatlow, shift);
out = vcombine_s16(vqmovn_s32((outfloatlow)),
- vqmovn_s32((outfloathigh)));
+ vqmovn_s32((outfloathigh)));
vst1_u8(output.ptr(), vqmovun_s16(out));
},
diff --git a/src/core/NEON/kernels/NEReductionOperationKernel.cpp b/src/core/NEON/kernels/NEReductionOperationKernel.cpp
index 1bfef27d49..67ccc5d736 100644
--- a/src/core/NEON/kernels/NEReductionOperationKernel.cpp
+++ b/src/core/NEON/kernels/NEReductionOperationKernel.cpp
@@ -64,6 +64,7 @@ uint32x4x4_t calculate_index(uint32_t idx, T a, T b, uint32x4x4_t c, ReductionOp
return res;
}
+template <>
uint32x4x4_t calculate_index(uint32_t idx, uint8x16_t a, uint8x16_t b, uint32x4x4_t c, ReductionOperation op, int axis)
{
uint32x4x4_t mask{ { 0 } };
@@ -227,6 +228,7 @@ uint32_t calculate_vector_index(uint32x4x4_t vec_res_idx, uint8x16_t vec_res_val
return (res - 0xFFFFFFFF);
}
#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
+template <>
uint32x4x4_t calculate_index(uint32_t idx, float16x8_t a, float16x8_t b, uint32x4x4_t c, ReductionOperation op, int axis)
{
uint32x4x2_t mask{ 0 };