[flang] Add an entry to the intrinsics table for dimag.

Also, document extensions dconjg and dimag.

Original-commit: flang-compiler/f18@21535280ee
Reviewed-on: https://github.com/flang-compiler/f18/pull/654
This commit is contained in:
Steve Scalpone 2019-08-13 07:31:50 -07:00
parent 3d09841326
commit 465393f40f
2 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,7 @@ Extensions, deletions, and legacy features supported by default
we allow distinct types to be used, promoting
the arguments as if they were operands to an intrinsic `+` operator,
and defining the result type accordingly.
* DOUBLE COMPLEX intrinsics DCONJG and DIMAG.
Extensions supported when enabled by options
--------------------------------------------

View File

@ -778,6 +778,8 @@ static const SpecificIntrinsicInterface specificIntrinsicFunction[]{
{{"ddim", {{"x", DoublePrecision}, {"y", DoublePrecision}},
DoublePrecision},
"dim"},
{{"dimag", {{"a", DoublePrecisionComplex}}, DoublePrecision},
"aimag"},
{{"dexp", {{"x", DoublePrecision}}, DoublePrecision}, "exp"},
{{"dim", {{"x", DefaultReal}, {"y", DefaultReal}}, DefaultReal}},
{{"dint", {{"a", DoublePrecision}}, DoublePrecision}, "aint"},