optabs.c (expand_cmplxdiv_wide): Use expand_abs to get the absolute values.
* optabs.c (expand_cmplxdiv_wide): Use expand_abs to get the absolute values. From-SVN: r27426
This commit is contained in:
parent
b9a2a89962
commit
a59a536cdd
@ -1,3 +1,8 @@
|
|||||||
|
Tue Jun 8 05:47:48 1999 Richard Earnshaw (rearnsha@arm.com)
|
||||||
|
|
||||||
|
* optabs.c (expand_cmplxdiv_wide): Use expand_abs to get the absolute
|
||||||
|
values.
|
||||||
|
|
||||||
Mon Jun 7 22:30:37 1999 Jeffrey A Law (law@cygnus.com)
|
Mon Jun 7 22:30:37 1999 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* fixinc/inclhack.def (avoid_bool): Also catch
|
* fixinc/inclhack.def (avoid_bool): Also catch
|
||||||
|
16
gcc/optabs.c
16
gcc/optabs.c
@ -504,11 +504,17 @@ expand_cmplxdiv_wide (real0, real1, imag0, imag1, realr, imagr, submode,
|
|||||||
|
|
||||||
imag1 = force_reg (submode, imag1);
|
imag1 = force_reg (submode, imag1);
|
||||||
|
|
||||||
temp1 = expand_unop (submode, abs_optab, real1, NULL_RTX,
|
/* XXX What's an "unsigned" complex number? */
|
||||||
unsignedp);
|
if (unsignedp)
|
||||||
|
{
|
||||||
temp2 = expand_unop (submode, abs_optab, imag1, NULL_RTX,
|
temp1 = real1;
|
||||||
unsignedp);
|
temp2 = imag1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
temp1 = expand_abs (submode, real1, NULL_RTX, 1);
|
||||||
|
temp2 = expand_abs (submode, imag1, NULL_RTX, 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (temp1 == 0 || temp2 == 0)
|
if (temp1 == 0 || temp2 == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user