summaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-11 09:30:50 +0000
committerm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-11 09:30:50 +0000
commit1623850a46ec9d899dde998b16b8e367f4333c4e (patch)
tree04f68f47e464e2481d72d0b6b0b7e23f45081daf /gcc/simplify-rtx.c
parent3bb1b405703bc2e4f6f91a3cfde4772c23e7ed3d (diff)
downloadgcc-1623850a46ec9d899dde998b16b8e367f4333c4e.tar.gz
* simplify-rtx.c (simplify_subreg): Fix offset calculation
for complex values within a CONCAT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43177 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 39c30154d39..3450f7b168b 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);
}