diff options
author | Yi Wu <yi.wu2@arm.com> | 2024-02-05 11:41:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 11:41:14 +0000 |
commit | 1d3d8936baf9f15e23603bbb1cfe0a5610d458d3 (patch) | |
tree | 142b1cf1b208076d36e4b6b66c6e7ba0a8d59a12 /flang/lib/Evaluate/intrinsics.cpp | |
parent | 1ee315ae7964c8433b772e0b5d667834994ba753 (diff) | |
download | llvm-1d3d8936baf9f15e23603bbb1cfe0a5610d458d3.zip llvm-1d3d8936baf9f15e23603bbb1cfe0a5610d458d3.tar.gz llvm-1d3d8936baf9f15e23603bbb1cfe0a5610d458d3.tar.bz2 |
[flang] Fix for atand(Y,X), and implment atan2d(Y,X), atanpi(X), atanpi(Y,X), atan2pi(Y,X) (#79002)
Fix: https://github.com/llvm/llvm-project/issues/78568
---------
Co-authored-by: jeanPerier <jean.perier.polytechnique@gmail.com>
Diffstat (limited to 'flang/lib/Evaluate/intrinsics.cpp')
-rw-r--r-- | flang/lib/Evaluate/intrinsics.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/flang/lib/Evaluate/intrinsics.cpp b/flang/lib/Evaluate/intrinsics.cpp index b76ea47..61bf0f2 100644 --- a/flang/lib/Evaluate/intrinsics.cpp +++ b/flang/lib/Evaluate/intrinsics.cpp @@ -335,11 +335,14 @@ static const IntrinsicInterface genericIntrinsicFunction[]{ common::Intent::In, {ArgFlag::canBeNull}}}, DefaultLogical, Rank::elemental, IntrinsicClass::inquiryFunction}, {"atan", {{"x", SameFloating}}, SameFloating}, - {"atand", {{"x", SameFloating}}, SameFloating}, {"atan", {{"y", OperandReal}, {"x", OperandReal}}, OperandReal}, + {"atand", {{"x", SameFloating}}, SameFloating}, {"atand", {{"y", OperandReal}, {"x", OperandReal}}, OperandReal}, {"atan2", {{"y", OperandReal}, {"x", OperandReal}}, OperandReal}, {"atan2d", {{"y", OperandReal}, {"x", OperandReal}}, OperandReal}, + {"atanpi", {{"x", SameFloating}}, SameFloating}, + {"atanpi", {{"y", OperandReal}, {"x", OperandReal}}, OperandReal}, + {"atan2pi", {{"y", OperandReal}, {"x", OperandReal}}, OperandReal}, {"atanh", {{"x", SameFloating}}, SameFloating}, {"bessel_j0", {{"x", SameReal}}, SameReal}, {"bessel_j1", {{"x", SameReal}}, SameReal}, |