From: Chung-Ju Wu Date: Sun, 18 Mar 2018 04:47:10 +0000 (+0000) Subject: [NDS32] Define CLZ_DEFINED_VALUE_AT_ZERO. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24a711668bf5ecdd6b277333d2ab5ef10189f307;p=gcc.git [NDS32] Define CLZ_DEFINED_VALUE_AT_ZERO. gcc/ * config/nds32/nds32.h (CLZ_DEFINED_VALUE_AT_ZERO): Define. From-SVN: r258627 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a1186fc2dfb..224e8cac9ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-03-18 Chung-Ju Wu + + * config/nds32/nds32.h (CLZ_DEFINED_VALUE_AT_ZERO): Define. + 2018-03-17 Chung-Ju Wu Kito Cheng diff --git a/gcc/config/nds32/nds32.h b/gcc/config/nds32/nds32.h index 749a55208d4..b350a0cd047 100644 --- a/gcc/config/nds32/nds32.h +++ b/gcc/config/nds32/nds32.h @@ -1066,6 +1066,11 @@ enum reg_class when the condition is true. */ #define STORE_FLAG_VALUE 1 +/* A C expression that indicates whether the architecture defines a value for + clz or ctz with a zero operand. In nds32 clz for 0 result 32 is defined + in ISA spec */ +#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) ((VALUE) = 32, 1) + /* An alias for the machine mode for pointers. */ #define Pmode SImode