diff options
author | marekm <marekm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-16 05:54:07 +0000 |
---|---|---|
committer | marekm <marekm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-16 05:54:07 +0000 |
commit | 42339e9b5ea9c1f8cde70edb1f339899a83ffc95 (patch) | |
tree | af7cdb2f85512bd9efd0680120f2b334ec082faf /gcc/hard-reg-set.h | |
parent | 7ccc713a1f28ef9a1206745ceba153374cdd6f7a (diff) | |
download | gcc-42339e9b5ea9c1f8cde70edb1f339899a83ffc95.tar.gz |
* hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55474 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/hard-reg-set.h')
-rw-r--r-- | gcc/hard-reg-set.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/hard-reg-set.h b/gcc/hard-reg-set.h index db96aa9c03c..e80f39e4575 100644 --- a/gcc/hard-reg-set.h +++ b/gcc/hard-reg-set.h @@ -92,7 +92,7 @@ typedef HARD_REG_ELT_TYPE HARD_REG_SET[HARD_REG_SET_LONGS]; #define CLEAR_HARD_REG_BIT(SET, BIT) \ ((SET) &= ~(HARD_CONST (1) << (BIT))) #define TEST_HARD_REG_BIT(SET, BIT) \ - ((SET) & (HARD_CONST (1) << (BIT))) + (!!((SET) & (HARD_CONST (1) << (BIT)))) #define CLEAR_HARD_REG_SET(TO) ((TO) = HARD_CONST (0)) #define SET_HARD_REG_SET(TO) ((TO) = ~ HARD_CONST (0)) @@ -122,8 +122,8 @@ typedef HARD_REG_ELT_TYPE HARD_REG_SET[HARD_REG_SET_LONGS]; &= ~(HARD_CONST (1) << ((BIT) % UHOST_BITS_PER_WIDE_INT))) #define TEST_HARD_REG_BIT(SET, BIT) \ - ((SET)[(BIT) / UHOST_BITS_PER_WIDE_INT] \ - & (HARD_CONST (1) << ((BIT) % UHOST_BITS_PER_WIDE_INT))) + (!!((SET)[(BIT) / UHOST_BITS_PER_WIDE_INT] \ + & (HARD_CONST (1) << ((BIT) % UHOST_BITS_PER_WIDE_INT)))) #if FIRST_PSEUDO_REGISTER <= 2*HOST_BITS_PER_WIDE_INT #define CLEAR_HARD_REG_SET(TO) \ |