From 952e78198dca941aa86d1c3555c01379020dfa2d Mon Sep 17 00:00:00 2001 From: Renlin Li Date: Mon, 15 Dec 2014 09:56:29 +0000 Subject: [PATCH] [AARCH64]Fix CLZ_DEFINED_AT_ZERO and CTZ_DEFINED_AT_ZERO definition. gcc/ 2014-12-15 Renlin Li * config/aarch64/aarch64.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2. (CTZ_DEFINED_VALUE_AT_ZERO): Update to support more modes. From-SVN: r218737 --- gcc/ChangeLog | 5 +++++ gcc/config/aarch64/aarch64.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a6beef99e89..ced0bb9fe6f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-15 Renlin Li + + * config/aarch64/aarch64.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2. + (CTZ_DEFINED_VALUE_AT_ZERO): Update to support more modes. + 2014-12-15 Jakub Jelinek PR sanitizer/64265 diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index 8ed1f84fd4f..b05eae88f24 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -804,9 +804,9 @@ do { \ : reverse_condition (CODE)) #define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) \ - ((VALUE) = GET_MODE_UNIT_BITSIZE (MODE)) + ((VALUE) = GET_MODE_UNIT_BITSIZE (MODE), 2) #define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) \ - ((VALUE) = ((MODE) == SImode ? 32 : 64), 2) + ((VALUE) = GET_MODE_UNIT_BITSIZE (MODE), 2) #define INCOMING_RETURN_ADDR_RTX gen_rtx_REG (Pmode, LR_REGNUM) -- 2.30.2