diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-18 00:16:59 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-18 00:16:59 +0000 |
commit | 4ff7381280329eb3d6559dbe3be4e2f5fb000efa (patch) | |
tree | 92bb4041e84226a9e3656c6ff93dbb8173193c02 /gcc/unroll.c | |
parent | 7234ad38d71dec993257ac7288fe2754eff75504 (diff) | |
download | gcc-4ff7381280329eb3d6559dbe3be4e2f5fb000efa.tar.gz |
* unroll.c (copy_loop_body): Fix one instance of using host
arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
cross-compile.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35109 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index f8dfc034b5a..3197053aafe 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -1940,8 +1940,9 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration, #endif splittable_regs[regno] - = GEN_INT (INTVAL (giv_inc) - + INTVAL (splittable_regs[src_regno])); + = simplify_gen_binary (PLUS, GET_MODE (giv_src_reg), + giv_inc, + splittable_regs[src_regno]); giv_inc = splittable_regs[regno]; /* Now split the induction variable by changing the dest |