From a123c6e615581dc95f117796c90ccc33e54c0827 Mon Sep 17 00:00:00 2001 From: yiicy Date: Thu, 20 Feb 2020 11:50:46 +0800 Subject: [PATCH] [cherry-pick] fix xcode fcmp build error, test=develop (#2910) (#2943) fix xcode fcmp build error --- lite/backends/arm/math/sgemv.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lite/backends/arm/math/sgemv.cc b/lite/backends/arm/math/sgemv.cc index 98404fe60f..d17ce0dea4 100644 --- a/lite/backends/arm/math/sgemv.cc +++ b/lite/backends/arm/math/sgemv.cc @@ -922,7 +922,7 @@ void sgemv_trans(const int M, /* end */ \ "4: \n" /* end */ \ "fmov s1, %w[alpha] \n" /* mov alpha to s1 */ \ - "fcmp s8, #0 \n" /* cmp with zero*/ \ + "fcmp s8, #0.0 \n" /* cmp with zero*/ \ "bge 5f \n" /* if ge zero */ \ "fmul s8, s8, s1 \n" /* out * alpha */ \ "5: \n" /* leakey relu label */ \ -- GitLab