Lower the power operation for real, integer
and complex.
The power operation is lowered to library calls.
This patch is part of the upstreaming effort from fir-dev branch.
Depends on D120403
Paths
| Differential D120556
[flang] Lower power operations ClosedPublic Authored by clementval on Feb 25 2022, 5:28 AM.
Details Summary Lower the power operation for real, integer The power operation is lowered to library calls. This patch is part of the upstreaming effort from fir-dev branch. Depends on D120403
Diff Detail
Event TimelineComment Actions Shouldn't you also have tests for real :: x, y, z and real(8) :: x, y, z? You don't seem to be covering llvm.pow.f32 and llvm.pow.f64. Also, what happens when you mix real and real(8) base and exponents?
This revision is now accepted and ready to land.Feb 25 2022, 8:37 AM clementval removed a parent revision: D120403: Lower Fortran intrinsic to a runtime call/llvm intrinsic.Feb 28 2022, 4:24 AM Closed by commit rG43c071fa4cb7: [flang] Lower power operations (authored by clementval). · Explain WhyFeb 28 2022, 5:49 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 411785 flang/include/flang/Lower/IntrinsicCall.h
flang/lib/Lower/ConvertExpr.cpp
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/llvm-math.f90
flang/test/Lower/power-operator.f90
|