diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-05-30 16:38:00 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-05-30 16:38:00 +0000 |
commit | 1d88d2985fa974e9b6bbe8c24cede01228c05bc8 (patch) | |
tree | 4d6bbe417cf4011ba10331dad6fe7fae2b1f6fdc /gcc/optabs.c | |
parent | dc2c50109932dbe5ab8423bae3f5d07af0588c3c (diff) | |
download | gcc-1d88d2985fa974e9b6bbe8c24cede01228c05bc8.tar.gz |
(expand_float): Fix error in last change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7391 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index b3b6ea96928..418e529b690 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -3083,6 +3083,12 @@ expand_float (to, from, unsignedp) rtx temp1; rtx neglabel = gen_label_rtx (); + /* Don't use TARGET if it isn't a register or is a + hard register. */ + if (GET_CODE (target) != REG + || REGNO (target) < FIRST_PSEUDO_REGISTER) + target = gen_reg_rtx (fmode); + imode = GET_MODE (from); do_pending_stack_adjust (); @@ -3101,11 +3107,10 @@ expand_float (to, from, unsignedp) emit_label (neglabel); temp = expand_binop (imode, and_optab, from, const1_rtx, - 0, 1, 0); + 0, 1, 0); temp1 = expand_binop (imode, lshr_optab, from, const1_rtx, - from, 1, 0); - temp = expand_binop (imode, ior_optab, temp, temp1, - temp, 1, 0); + 0, 1, 0); + temp = expand_binop (imode, ior_optab, temp, temp1, temp, 1, 0); expand_float (target, temp, 0); /* Multiply by 2 to undo the shift above. */ |