From: yroux Date: Thu, 4 Dec 2014 18:23:42 +0000 (+0000) Subject: 2014-12-04 Yvan Roux X-Git-Tag: upstream/4.9.2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b84d6f50726b7e44ff89c88655a6e89d19c09a82;p=platform%2Fupstream%2Flinaro-gcc.git 2014-12-04 Yvan Roux Backport from trunk r217014. 2014-11-02 Michael Collison * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update to support vector modes. (CTZ_DEFINED_VALUE_AT_ZERO): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_9-branch@218391 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog.linaro b/gcc/ChangeLog.linaro index 9bd8720..0a66fa2 100644 --- a/gcc/ChangeLog.linaro +++ b/gcc/ChangeLog.linaro @@ -1,5 +1,14 @@ 2014-12-04 Yvan Roux + Backport from trunk r217014. + 2014-11-02 Michael Collison + + * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update + to support vector modes. + (CTZ_DEFINED_VALUE_AT_ZERO): Ditto. + +2014-12-04 Yvan Roux + Backport from trunk r216996, r216998, r216999, r217001, r217002, r217003, r217004, r217742. 2014-11-18 James Greenhalgh diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index 6a23911..d9033c4 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -2138,9 +2138,10 @@ extern int making_const_table; ? reverse_condition_maybe_unordered (code) \ : reverse_condition (code)) -/* The arm5 clz instruction returns 32. */ -#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) ((VALUE) = 32, 1) -#define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) ((VALUE) = 32, 1) +#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) \ + ((VALUE) = GET_MODE_UNIT_BITSIZE (MODE)) +#define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) \ + ((VALUE) = GET_MODE_UNIT_BITSIZE (MODE)) #define CC_STATUS_INIT \ do { cfun->machine->thumb1_cc_insn = NULL_RTX; } while (0)