diff options
author | Michael Hayes <m.hayes@elec.canterbury.ac.nz> | 2001-06-11 09:30:50 +0000 |
---|---|---|
committer | Michael Hayes <m.hayes@gcc.gnu.org> | 2001-06-11 09:30:50 +0000 |
commit | 5fd83d4e519fbf461c701b789f06ac3a5892c84c (patch) | |
tree | 04f68f47e464e2481d72d0b6b0b7e23f45081daf /gcc/simplify-rtx.c | |
parent | ecb7d6b3f4e8e1c145b82828a3bd96679c8f97a4 (diff) | |
download | gcc-5fd83d4e519fbf461c701b789f06ac3a5892c84c.zip gcc-5fd83d4e519fbf461c701b789f06ac3a5892c84c.tar.gz gcc-5fd83d4e519fbf461c701b789f06ac3a5892c84c.tar.bz2 |
simplify-rtx.c (simplify_subreg): Fix offset calculation for complex values within a CONCAT.
* simplify-rtx.c (simplify_subreg): Fix offset calculation
for complex values within a CONCAT.
From-SVN: r43177
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r-- | gcc/simplify-rtx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 39c3015..3450f7b1 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -2423,11 +2423,11 @@ simplify_subreg (outermode, op, innermode, byte) of real and imaginary part. */ if (GET_CODE (op) == CONCAT) { - int is_realpart = byte < GET_MODE_UNIT_SIZE (innermode) / 2; + int is_realpart = byte < GET_MODE_UNIT_SIZE (innermode); rtx part = is_realpart ? XEXP (op, 0) : XEXP (op, 1); unsigned int final_offset; - final_offset = byte % (GET_MODE_UNIT_SIZE (innermode) / 2); + final_offset = byte % (GET_MODE_UNIT_SIZE (innermode)); return simplify_subreg (outermode, part, GET_MODE (part), final_offset); } |