diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-03 17:13:06 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-03 17:13:06 +0000 |
commit | 9d3d90e03d407707a98d3e1f9ea246f65fbc8dca (patch) | |
tree | 865257de4c304400e40d2ca0e86dd329c4ba7fa1 /gcc/expr.c | |
parent | 0c34fe7d298fcfd7f4459b196e1020ed73c62370 (diff) | |
download | gcc-9d3d90e03d407707a98d3e1f9ea246f65fbc8dca.tar.gz |
* expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
of a complex number rather than invoke mov_optab directly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67389 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index f340335515b..7adaca00565 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -3394,19 +3394,15 @@ emit_move_insn_1 (x, y) /* Note that the real part always precedes the imag part in memory regardless of machine's endianness. */ #ifdef STACK_GROWS_DOWNWARD - emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code) - (gen_rtx_MEM (submode, XEXP (x, 0)), - gen_imagpart (submode, y))); - emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code) - (gen_rtx_MEM (submode, XEXP (x, 0)), - gen_realpart (submode, y))); + emit_move_insn (gen_rtx_MEM (submode, XEXP (x, 0)), + gen_imagpart (submode, y)); + emit_move_insn (gen_rtx_MEM (submode, XEXP (x, 0)), + gen_realpart (submode, y)); #else - emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code) - (gen_rtx_MEM (submode, XEXP (x, 0)), - gen_realpart (submode, y))); - emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code) - (gen_rtx_MEM (submode, XEXP (x, 0)), - gen_imagpart (submode, y))); + emit_move_insn (gen_rtx_MEM (submode, XEXP (x, 0)), + gen_realpart (submode, y)); + emit_move_insn (gen_rtx_MEM (submode, XEXP (x, 0)), + gen_imagpart (submode, y)); #endif } else @@ -3481,10 +3477,8 @@ emit_move_insn_1 (x, y) || GET_CODE (imagpart_x) == SUBREG)) emit_insn (gen_rtx_CLOBBER (VOIDmode, x)); - emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code) - (realpart_x, realpart_y)); - emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code) - (imagpart_x, imagpart_y)); + emit_move_insn (realpart_x, realpart_y); + emit_move_insn (imagpart_x, imagpart_y); } return get_last_insn (); |