diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-20 09:43:20 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-20 09:43:20 +0000 |
commit | 4c286961f9ff0fa9ffa4d232978e6617454a8d39 (patch) | |
tree | 1e060a427d4c2565937c168544fb2f897a55521f /gcc/combine.c | |
parent | a4cebafea131f71e55e4538225bc5a973e5678bf (diff) | |
download | gcc-4c286961f9ff0fa9ffa4d232978e6617454a8d39.tar.gz |
* combine.c (force_to_mode): Only replace with (not Y) if all bits in fuller_mask
(not just mask) are set in C.
* gcc.c-torture/execute/20021118-3.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59295 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index 8ce9d10eb1d..a0214d19567 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -6978,10 +6978,10 @@ force_to_mode (x, mode, mask, reg, just_select) return force_to_mode (x, mode, mask, reg, next_select); } - /* Similarly, if C contains every bit in the mask, then we may + /* Similarly, if C contains every bit in the fuller_mask, then we may replace with (not Y). */ if (GET_CODE (XEXP (x, 0)) == CONST_INT - && ((INTVAL (XEXP (x, 0)) | (HOST_WIDE_INT) mask) + && ((INTVAL (XEXP (x, 0)) | (HOST_WIDE_INT) fuller_mask) == INTVAL (XEXP (x, 0)))) { x = simplify_gen_unary (NOT, GET_MODE (x), |