diff options
author | Steve Ellcey <sje@cup.hp.com> | 2002-11-20 21:52:59 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2002-11-20 21:52:59 +0000 |
commit | 27e58a706fa38f55d87610ed6424523c0ea50bd4 (patch) | |
tree | 8b9fd59b5bdc34852b403b5487274127ef1bd390 /gcc/optabs.c | |
parent | 964b104aba78fdc347d4b9550707653076820b62 (diff) | |
download | gcc-27e58a706fa38f55d87610ed6424523c0ea50bd4.zip gcc-27e58a706fa38f55d87610ed6424523c0ea50bd4.tar.gz gcc-27e58a706fa38f55d87610ed6424523c0ea50bd4.tar.bz2 |
emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type to component type using GET_MODE_INNER.
* emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type
to component type using GET_MODE_INNER.
* expr.c (emit_move_insn_1): Ditto.
* optabs.c (expand_binop): Ditto.
(expand_unop): Ditto.
(expand_complex_abs): Ditto.
From-SVN: r59317
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 1551ff8..9da95e1 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -1531,10 +1531,7 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods) int ok = 0; /* Find the correct mode for the real and imaginary parts */ - enum machine_mode submode - = mode_for_size (GET_MODE_UNIT_SIZE (mode) * BITS_PER_UNIT, - class == MODE_COMPLEX_INT ? MODE_INT : MODE_FLOAT, - 0); + enum machine_mode submode = GET_MODE_INNER(mode); if (submode == BLKmode) abort (); @@ -2484,10 +2481,7 @@ expand_unop (mode, unoptab, op0, target, unsignedp) rtx seq; /* Find the correct mode for the real and imaginary parts */ - enum machine_mode submode - = mode_for_size (GET_MODE_UNIT_SIZE (mode) * BITS_PER_UNIT, - class == MODE_COMPLEX_INT ? MODE_INT : MODE_FLOAT, - 0); + enum machine_mode submode = GET_MODE_INNER (mode); if (submode == BLKmode) abort (); @@ -2731,10 +2725,7 @@ expand_complex_abs (mode, op0, target, unsignedp) optab this_abs_optab; /* Find the correct mode for the real and imaginary parts. */ - enum machine_mode submode - = mode_for_size (GET_MODE_UNIT_SIZE (mode) * BITS_PER_UNIT, - class == MODE_COMPLEX_INT ? MODE_INT : MODE_FLOAT, - 0); + enum machine_mode submode = GET_MODE_INNER (mode); if (submode == BLKmode) abort (); |