diff options
author | Roger Sayle <roger@eyesopen.com> | 2003-06-03 17:13:06 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-06-03 17:13:06 +0000 |
commit | a79b3dc7c8d3e9c7cdd5bab9f8f5ae3841a95764 (patch) | |
tree | 865257de4c304400e40d2ca0e86dd329c4ba7fa1 /gcc | |
parent | 8d6b2775eca066ed3cd5e07b35e4c1693f2a33da (diff) | |
download | gcc-a79b3dc7c8d3e9c7cdd5bab9f8f5ae3841a95764.zip gcc-a79b3dc7c8d3e9c7cdd5bab9f8f5ae3841a95764.tar.gz gcc-a79b3dc7c8d3e9c7cdd5bab9f8f5ae3841a95764.tar.bz2 |
expr.c (emit_move_insn_1): Use emit_move_insn to move the parts of a complex number rather than invoke...
* expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
of a complex number rather than invoke mov_optab directly.
From-SVN: r67389
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/expr.c | 26 |
2 files changed, 15 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 27132ef..91e3bea 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-03 Roger Sayle <roger@eyesopen.com> + + * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts + of a complex number rather than invoke mov_optab directly. + 2003-06-03 Kazu Hirata <kazu@cs.umass.edu> * combine.c (simplify_set): Don't move a subreg in SET_SRC to @@ -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 (); |