Commit 9061e4cd by Richard Kenner

(expand_complex_abs): Replace some erroneous uses of MODE with

SUBMODE.

From-SVN: r6118
parent 2dd484ed
...@@ -2030,12 +2030,15 @@ expand_complex_abs (mode, op0, target, unsignedp) ...@@ -2030,12 +2030,15 @@ expand_complex_abs (mode, op0, target, unsignedp)
real = gen_realpart (submode, op0); real = gen_realpart (submode, op0);
imag = gen_imagpart (submode, op0); imag = gen_imagpart (submode, op0);
/* Square both parts. */ /* Square both parts. */
real = expand_mult (mode, real, real, NULL_RTX, 0); real = expand_mult (submode, real, real, NULL_RTX, 0);
imag = expand_mult (mode, imag, imag, NULL_RTX, 0); imag = expand_mult (submode, imag, imag, NULL_RTX, 0);
/* Sum the parts. */ /* Sum the parts. */
total = expand_binop (submode, add_optab, real, imag, 0, total = expand_binop (submode, add_optab, real, imag, 0,
0, OPTAB_LIB_WIDEN); 0, OPTAB_LIB_WIDEN);
/* Get sqrt in TARGET. Set TARGET to where the result is. */ /* Get sqrt in TARGET. Set TARGET to where the result is. */
target = expand_unop (submode, sqrt_optab, total, target, 0); target = expand_unop (submode, sqrt_optab, total, target, 0);
if (target == 0) if (target == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment