diff options
author | Geoffrey Keating <geoffk@redhat.com> | 2002-02-27 20:27:38 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2002-02-27 20:27:38 +0000 |
commit | 4e07d762e9719ec962aca7e2c56f15cfdc76a529 (patch) | |
tree | b762982ce5c2a3b044bdf03acbf6d58443a01429 /gcc/expmed.c | |
parent | 6bc627b3b86d4489e5bfec9d65774d8bd07207cd (diff) | |
download | gcc-4e07d762e9719ec962aca7e2c56f15cfdc76a529.zip gcc-4e07d762e9719ec962aca7e2c56f15cfdc76a529.tar.gz gcc-4e07d762e9719ec962aca7e2c56f15cfdc76a529.tar.bz2 |
Index: ChangeLog
* expmed.c (expand_shift): Correctly test for low part of a
subreg.
Index: testsuite/ChangeLog
* gcc.c-torture/execute/20020225-2.c: New test.
From-SVN: r50114
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r-- | gcc/expmed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c index b3d94c2..46007a3 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -1913,7 +1913,7 @@ expand_shift (code, mode, shifted, amount, target, unsignedp) op1 = GEN_INT ((unsigned HOST_WIDE_INT) INTVAL (op1) % GET_MODE_BITSIZE (mode)); else if (GET_CODE (op1) == SUBREG - && SUBREG_BYTE (op1) == 0) + && subreg_lowpart_p (op1)) op1 = SUBREG_REG (op1); } #endif |