diff --git a/Source/ConvolutionFunctions/arm_depthwise_conv_s8.c b/Source/ConvolutionFunctions/arm_depthwise_conv_s8.c index e99dd3e7..bde1a33f 100644 --- a/Source/ConvolutionFunctions/arm_depthwise_conv_s8.c +++ b/Source/ConvolutionFunctions/arm_depthwise_conv_s8.c @@ -40,7 +40,7 @@ * @{ */ -#if !(defined(__ARMCC_VERSION) || defined(_MSC_VER)) +#if !(defined(__ARMCC_VERSION) || defined(_MSC_VER) || defined(__ICCARM__) || defined(__clang__)) __attribute__((optimize("no-unroll-loops"))) #endif static void diff --git a/Source/NNSupportFunctions/arm_nn_vec_mat_mult_t_per_ch_s8.c b/Source/NNSupportFunctions/arm_nn_vec_mat_mult_t_per_ch_s8.c index 81e96993..0d84f304 100644 --- a/Source/NNSupportFunctions/arm_nn_vec_mat_mult_t_per_ch_s8.c +++ b/Source/NNSupportFunctions/arm_nn_vec_mat_mult_t_per_ch_s8.c @@ -52,7 +52,7 @@ * Refer header file for details. * */ -#if !defined(ARM_MATH_MVEI) && defined(ARM_MATH_DSP) && !defined(__ARMCC_VERSION) && !defined(__ICCARM__) +#if !defined(ARM_MATH_MVEI) && defined(ARM_MATH_DSP) && !defined(__ARMCC_VERSION) && !defined(__ICCARM__) && !defined(__clang__) #pragma GCC optimize("unroll-loops") #endif arm_cmsis_nn_status arm_nn_vec_mat_mult_t_per_ch_s8(const int8_t *lhs, diff --git a/Source/NNSupportFunctions/arm_nn_vec_mat_mult_t_s8.c b/Source/NNSupportFunctions/arm_nn_vec_mat_mult_t_s8.c index 1d79bd6d..769a4892 100644 --- a/Source/NNSupportFunctions/arm_nn_vec_mat_mult_t_s8.c +++ b/Source/NNSupportFunctions/arm_nn_vec_mat_mult_t_s8.c @@ -52,7 +52,7 @@ * Refer header file for details. * */ -#if !defined(ARM_MATH_MVEI) && defined(ARM_MATH_DSP) && !defined(__ARMCC_VERSION) && !defined(__ICCARM__) +#if !defined(ARM_MATH_MVEI) && defined(ARM_MATH_DSP) && !defined(__ARMCC_VERSION) && !defined(__ICCARM__) && !defined(__clang__) #pragma GCC optimize("unroll-loops") #endif arm_cmsis_nn_status arm_nn_vec_mat_mult_t_s8(const int8_t *lhs,