diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-01 18:13:31 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-01 18:13:31 +0000 |
commit | de17a47baa567274fa46d2cdae91b39b9abcb8d5 (patch) | |
tree | 0f615db96d2762fa43d9e464d0d9e93fff7ad6a2 /gcc/expmed.c | |
parent | 79367e65c4280eff5f3217f5bf1d1ad3ab4afbcb (diff) | |
download | gcc-de17a47baa567274fa46d2cdae91b39b9abcb8d5.tar.gz |
PR rtl-opt/15289
* emit-rtl.c (gen_complex_constant_part): Remove.
(gen_realpart, gen_imagpart): Remove.
* rtl.h (gen_realpart, gen_imagpart): Remove.
* expmed.c (extract_bit_field): Remove CONCAT hack catering to
gen_realpart/gen_imagpart.
* expr.c (write_complex_part, read_complex_part): New.
(emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
emit_move_complex_push, emit_move_complex, emit_move_ccmode,
emit_move_multi_word): Split out from ...
(emit_move_insn_1): ... here.
(expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
<REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
* function.c (assign_parm_setup_reg): Hard-code transformations
instead of using gen_realpart/gen_imagpart.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91571 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r-- | gcc/expmed.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c index fe0db062b56..c6c8058cc9e 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -1611,28 +1611,6 @@ extract_bit_field (rtx str_rtx, unsigned HOST_WIDE_INT bitsize, return spec_target; if (GET_MODE (target) != tmode && GET_MODE (target) != mode) { - /* If the target mode is complex, then extract the two scalar elements - from the value now. Creating (subreg:SC (reg:DI) 0), as we would do - with the clause below, will cause gen_realpart or gen_imagpart to - fail, since those functions must return lvalues. */ - if (COMPLEX_MODE_P (tmode)) - { - rtx realpart, imagpart; - enum machine_mode itmode = GET_MODE_INNER (tmode); - - target = convert_to_mode (mode_for_size (GET_MODE_BITSIZE (tmode), - MODE_INT, 0), - target, unsignedp); - - realpart = extract_bit_field (target, GET_MODE_BITSIZE (itmode), 0, - unsignedp, NULL, itmode, itmode); - imagpart = extract_bit_field (target, GET_MODE_BITSIZE (itmode), - GET_MODE_BITSIZE (itmode), unsignedp, - NULL, itmode, itmode); - - return gen_rtx_CONCAT (tmode, realpart, imagpart); - } - /* If the target mode is not a scalar integral, first convert to the integer mode of that size and then access it as a floating-point value via a SUBREG. */ |