diff options
author | Pan Xiuli <xiuli.pan@intel.com> | 2016-05-03 10:58:10 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-05-12 12:48:06 +0800 |
commit | 356c856479207e2514d44d28456a70766691fccc (patch) | |
tree | aaaf1857a3b54723050498b0f4e1b3ea93e241e5 | |
parent | c7d3c107303f5b511087aa37d20811bbd3bb4565 (diff) |
Add support for gcc 6
Signed-off-by: Pan Xiuli <xiuli.pan@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r-- | backend/src/ir/immediate.hpp | 2 | ||||
-rw-r--r-- | utests/builtin_exp.cpp | 2 | ||||
-rw-r--r-- | utests/utest_generator.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/backend/src/ir/immediate.hpp b/backend/src/ir/immediate.hpp index 3141643e..6bc60d5a 100644 --- a/backend/src/ir/immediate.hpp +++ b/backend/src/ir/immediate.hpp @@ -343,7 +343,7 @@ namespace ir { float *f32; double *f64; half *f16; - const Immediate *immVec[]; + const Immediate **immVec; void *p; } data; //!< Value to store Immediate operator+ (const Immediate &) const; diff --git a/utests/builtin_exp.cpp b/utests/builtin_exp.cpp index 406d223f..1eaa187a 100644 --- a/utests/builtin_exp.cpp +++ b/utests/builtin_exp.cpp @@ -5,7 +5,7 @@ #define udebug 0 #define FLT_MAX 0x1.fffffep127f -#define FLT_MIN 0x1.0p-126f +#define FLT_MIN ldexp(1.0,-126) #define FLT_ULP (1.0e-6f) #define printf_c(...) \ diff --git a/utests/utest_generator.py b/utests/utest_generator.py index 84029da7..38d9ea0c 100644 --- a/utests/utest_generator.py +++ b/utests/utest_generator.py @@ -4,8 +4,8 @@ import os,sys,re FLT_MAX_POSI='0x1.fffffep127f' FLT_MIN_NEGA='-0x1.fffffep127f' -FLT_MIN_POSI='0x1.0p-126f' -FLT_MAX_NEGA='-0x1.0p-126f' +FLT_MIN_POSI='ldexp(1.0, -126)' +FLT_MAX_NEGA='ldexp(-1.0, -126)' paraTypeList={'float':'%e','int':'%d','double':'%lf','uint':'%d','string':'%s'} |