[Beignet] [PATCH] Add support for gcc 6

Yang, Rong R rong.r.yang at intel.com
Tue May 17 05:59:44 UTC 2016


LGTM, pushed.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Xiuli Pan
> Sent: Tuesday, May 3, 2016 10:58
> To: beignet at lists.freedesktop.org
> Cc: Pan, Xiuli <xiuli.pan at intel.com>
> Subject: [Beignet] [PATCH] Add support for gcc 6
> 
> From: Pan Xiuli <xiuli.pan at intel.com>
> 
> Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
> ---
>  backend/src/ir/immediate.hpp | 2 +-
>  utests/builtin_exp.cpp       | 2 +-
>  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 3141643..6bc60d5 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 406d223..1eaa187
> 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
> 84029da..38d9ea0 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'}
> 
> --
> 2.7.4
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list